root@noc-node-01:/opt/noc# ./noc script --debug ./sa/profiles/BDCOM/xPON/get_interfaces.py BDCOM-test
2021-08-20 05:26:02,928 [py.warnings] /opt/noc/core/profile/
base.py:72: UserWarning: None: 'pattern_more' '^---MORE---' pattern must be of binary type. Support for text values will be removed in NOC 20.2
warnings.warn(
2021-08-20 12:26:04,180 [noc.core.ioloop.util] Setting up asyncio event loop policy
2021-08-20 12:26:04,180 [noc.core.ioloop.util] Setting up default event loop
2021-08-20 12:26:04,181 [asyncio] Using selector: EpollSelector
2021-08-20 12:26:04,181 [root] Starting DCS runner thread
2021-08-20 12:26:04,182 [asyncio] Using selector: EpollSelector
2021-08-20 12:26:04,182 [root] DCS runner thread is ready
2021-08-20 12:26:04,182 [root] Starting DCS consul://consul:8500/noc
2021-08-20 12:26:04,534 [noc.core.dcs.base] Resolve near service postgres
2021-08-20 12:26:04,535 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
2021-08-20 12:26:04,562 [noc.core.http.client] HTTP Response 200
2021-08-20 12:26:04,563 [noc.core.dcs.base] Resolved near service postgres to ['
100.64.0.15:5432']
2021-08-20 12:26:05,587 [noc.main.models.textindex] Adding FTS index for ip.vrf
2021-08-20 12:26:05,768 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
2021-08-20 12:26:05,866 [noc.main.models.doccategory] Registering Capability
2021-08-20 12:26:05,867 [noc.main.models.doccategory] Registering MetricType
2021-08-20 12:26:06,030 [noc.main.models.doccategory] Registering ConnectionType
2021-08-20 12:26:06,043 [noc.main.models.doccategory] Registering ObjectModel
2021-08-20 12:26:06,139 [noc.main.models.textindex] Adding FTS index for sa.managedobject
2021-08-20 12:26:06,168 [asyncio] Using selector: EpollSelector
2021-08-20 12:26:06,169 [noc.core.dcs.base] [mongo] Starting resolver (near=False)
2021-08-20 12:26:06,169 [noc.core.dcs.base] [mongo] Requesting changes from index 0
2021-08-20 12:26:06,170 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
2021-08-20 12:26:06,173 [noc.core.http.client] HTTP Response 200
2021-08-20 12:26:06,173 [noc.core.dcs.base] [mongo] Index changed 0 -> 17066. Applying changes
2021-08-20 12:26:06,174 [noc.core.dcs.base] [mongo] Set active services to: mongo:
100.64.0.15:270172021-08-20 12:26:06,174 [noc.core.dcs.base] [mongo] Stopping resolver
2021-08-20 12:26:06,175 [noc.core.mongo.connection] Connecting to MongoDB {'db': 'noc', 'username': 'noc', 'password': '********', 'authentication_source': 'noc', 'replicaSet': 'noc', 'readPreference': 'secondaryPreferred', 'maxIdleTimeMS': 60000, 'host': 'mongodb://noc:********@100.64.0.15:27017/noc'}
2021-08-20 12:26:06,343 [noc.core.loader.base] [script] Loading script ./sa/profiles/BDCOM/xPON/get_interfaces.py
2021-08-20 12:26:06,381 [noc.core.loader.base] [script] Failed to load script ./sa/profiles/BDCOM/xPON/get_interfaces.py: No module named '
noc.sa.profiles.Generic.py'
Failed to load script None
root@noc-node-01:/opt/noc#