Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@Node1:/opt/noc# ./noc script --debug --pretty get_interfaces "apcFA0D7A"
- 2018-03-24 05:21:20,635 [noc.core.dcs.base] Resolve near service postgres
- 2018-03-24 05:21:20,637 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-03-24 05:21:20,640 [noc.core.http.client] HTTP Response 200
- 2018-03-24 05:21:20,641 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
- 2018-03-24 05:21:21,494 [noc.core.dcs.base] Running resolver for service mongo
- 2018-03-24 05:21:21,495 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-03-24 05:21:21,495 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-03-24 05:21:21,496 [noc.core.http.client] HTTP Response 200
- 2018-03-24 05:21:21,497 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
- 2018-03-24 05:21:21,497 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=459984&passing=1
- 2018-03-24 05:21:21,498 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@10.220.21.122:27017/noc', 'password': '********'}
- 2018-03-24 05:21:21,557 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-03-24 05:21:21,621 [noc.main.models.doccategory] Registering Capability
- 2018-03-24 05:21:21,622 [noc.main.models.doccategory] Registering MetricType
- 2018-03-24 05:21:21,665 [noc.main.models.doccategory] Registering ConnectionType
- 2018-03-24 05:21:21,669 [noc.main.models.doccategory] Registering ObjectModel
- 2018-03-24 05:21:21,680 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-03-24 05:21:21,696 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-03-24 05:21:21,699 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-03-24 05:21:21,703 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-03-24 05:21:21,707 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-03-24 05:21:21,754 [noc.core.script.loader] Loading script APC.AOS.get_interfaces
- 2018-03-24 05:21:21,755 [noc.core.mib] Loading compiled MIBs
- 2018-03-24 05:21:21,756 [noc.core.mib] Loading compiled MIBs from 'cmibs'
- 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: ENTITY-STATE-MIB
- 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: SNMPv2-MIB
- 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: CISCO-PPPOE-MIB
- 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: RMON2-MIB
- 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: IF-MIB
- 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: RFC1213-MIB
- 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: BRIDGE-MIB
- 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: EtherLike-MIB
- 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: ENTITY-MIB
- 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: IP-MIB
- 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: ENTITY-SENSOR-MIB
- 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: CISCO-VPDN-MGMT-MIB
- 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: LLDP-MIB
- 2018-03-24 05:21:21,767 [noc.core.profile.loader] Loading profile APC.AOS
- 2018-03-24 05:21:21,767 [script] [APC.AOS.get_interfaces|10.20.50.50] Running. Input arguments: {}, timeout 3600
- 2018-03-24 05:21:21,767 [noc.core.script.loader] Loading script APC.AOS.get_ifindexes
- 2018-03-24 05:21:21,768 [script] [Generic.get_ifindexes|10.20.50.50] Running. Input arguments: {}, timeout 3600
- 2018-03-24 05:21:21,768 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Creating IOLoop
- 2018-03-24 05:21:21,768 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Create UDP socket
- 2018-03-24 05:21:21,768 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.2
- 2018-03-24 05:21:22,053 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.2.1', 'LOOPBACK'), ('1.3.6.1.2.1.2.2.1.2.2', 'vmac0')]
- 2018-03-24 05:21:22,054 [script] [Generic.get_ifindexes|10.20.50.50] Result: {'vmac0': 2, 'LOOPBACK': 1}
- 2018-03-24 05:21:22,054 [script] [Generic.get_ifindexes|10.20.50.50] Complete (286.11ms)
- 2018-03-24 05:21:22,054 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.7
- 2018-03-24 05:21:22,249 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.7.1', 1), ('1.3.6.1.2.1.2.2.1.7.2', 1)]
- 2018-03-24 05:21:22,249 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.8
- 2018-03-24 05:21:22,440 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.8.1', 1), ('1.3.6.1.2.1.2.2.1.8.2', 1)]
- 2018-03-24 05:21:22,441 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.6
- 2018-03-24 05:21:22,605 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.6.1', ''), ('1.3.6.1.2.1.2.2.1.6.2', '\x00\xc0\xb7\xfa\rz')]
- 2018-03-24 05:21:22,605 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.3
- 2018-03-24 05:21:22,884 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.3.1', 24), ('1.3.6.1.2.1.2.2.1.3.2', 6)]
- 2018-03-24 05:21:22,884 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.5
- 2018-03-24 05:21:23,165 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.5.1', 0), ('1.3.6.1.2.1.2.2.1.5.2', 100000000)]
- 2018-03-24 05:21:23,165 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.4
- 2018-03-24 05:21:23,466 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.2.2.1.4.1', 1500), ('1.3.6.1.2.1.2.2.1.4.2', 1500)]
- 2018-03-24 05:21:23,466 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.31.1.1.1.18
- 2018-03-24 05:21:23,647 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: []
- 2018-03-24 05:21:23,648 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.4.20.1.2
- 2018-03-24 05:21:23,863 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.4.20.1.2.10.20.50.50', 2), ('1.3.6.1.2.1.4.20.1.2.127.0.0.1', 1)]
- 2018-03-24 05:21:23,863 [noc.core.ioloop.snmp] [10.20.50.50] SNMP GETNEXT 1.3.6.1.2.1.4.20.1.3
- 2018-03-24 05:21:24,095 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: [('1.3.6.1.2.1.4.20.1.3.10.20.50.50', '255.255.255.0'), ('1.3.6.1.2.1.4.20.1.3.127.0.0.1', '255.255.255.255')]
- 2018-03-24 05:21:24,096 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Closing UDP socket
- 2018-03-24 05:21:24,096 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Closing IOLoop
- 2018-03-24 05:21:24,097 [script] [APC.AOS.get_interfaces|10.20.50.50] Result: [{'interfaces': [{'snmp_ifindex': 1, 'name': 'LOOPBACK', 'subinterfaces': [{'snmp_ifindex': 1, 'description': '', 'enabled_afi': [], 'admin_status': True, 'oper_status': True, 'type': 'SVI', 'name': 'LOOPBACK'}], 'admin_status': True, 'oper_status': True, 'type': 'loopback', 'description': ''}, {'oper_status': True, 'snmp_ifindex': 2, 'name': 'vmac0', 'subinterfaces': [{'snmp_ifindex': 2, 'description': '', 'enabled_afi': ['BRIDGE'], 'admin_status': True, 'oper_status': True, 'type': 'SVI', 'name': 'vmac0'}], 'admin_status': True, 'mac': '00:C0:B7:FA:0D:7A', 'type': 'physical', 'description': ''}], 'type': 'ip', 'forwarding_instance': 'default'}]
- 2018-03-24 05:21:24,097 [script] [APC.AOS.get_interfaces|10.20.50.50] Complete (2329.55ms)
- [{'forwarding_instance': 'default',
- 'interfaces': [{'admin_status': True,
- 'description': '',
- 'name': 'LOOPBACK',
- 'oper_status': True,
- 'snmp_ifindex': 1,
- 'subinterfaces': [{'admin_status': True,
- 'description': '',
- 'enabled_afi': [],
- 'name': 'LOOPBACK',
- 'oper_status': True,
- 'snmp_ifindex': 1,
- 'type': 'SVI'}],
- 'type': 'loopback'},
- {'admin_status': True,
- 'description': '',
- 'mac': '00:C0:B7:FA:0D:7A',
- 'name': 'vmac0',
- 'oper_status': True,
- 'snmp_ifindex': 2,
- 'subinterfaces': [{'admin_status': True,
- 'description': '',
- 'enabled_afi': ['BRIDGE'],
- 'name': 'vmac0',
- 'oper_status': True,
- 'snmp_ifindex': 2,
- 'type': 'SVI'}],
- 'type': 'physical'}],
- 'type': 'ip'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement