Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@noc noc]# /opt/noc/noc script --loglevel debug --pretty get_chassis_id wt-len-al2
- 2017-07-27 13:23:18,262 [noc.core.dcs.base] Running resolver for service pgbouncer
- 2017-07-27 13:23:18,264 [noc.core.dcs.base] [pgbouncer] Starting resolver
- 2017-07-27 13:23:18,264 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/pgbouncer?passing=1
- 2017-07-27 13:23:18,266 [noc.core.http.client] HTTP Response 200
- 2017-07-27 13:23:18,267 [noc.core.dcs.base] [pgbouncer] Set active services to: pgbouncer: 10.0.4.111:6432
- 2017-07-27 13:23:18,267 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/pgbouncer?index=3214103&passing=1
- 2017-07-27 13:23:18,336 [root] Loading PeriodicRegistry
- 2017-07-27 13:23:18,400 [noc.core.dcs.base] Running resolver for service nsqdhttp
- 2017-07-27 13:23:18,402 [noc.core.dcs.base] [nsqdhttp] Starting resolver
- 2017-07-27 13:23:18,402 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/nsqdhttp?passing=1
- 2017-07-27 13:23:18,404 [noc.core.http.client] HTTP Response 200
- 2017-07-27 13:23:18,404 [noc.core.dcs.base] [nsqdhttp] Set active services to: nsqdhttp: 10.0.4.111:4151
- 2017-07-27 13:23:18,405 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/nsqdhttp?index=3214103&passing=1
- 2017-07-27 13:23:18,480 [noc.core.dcs.base] Running resolver for service mongo
- 2017-07-27 13:23:18,481 [noc.core.dcs.base] [mongo] Starting resolver
- 2017-07-27 13:23:18,481 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2017-07-27 13:23:18,483 [noc.core.http.client] HTTP Response 200
- 2017-07-27 13:23:18,483 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.0.4.111:27017
- 2017-07-27 13:23:18,483 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=3214103&passing=1
- 2017-07-27 13:23:18,485 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:noc@10.0.4.111:27017/noc', 'password': '********', 'slave_okay': True}
- 2017-07-27 13:23:18,541 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2017-07-27 13:23:18,599 [noc.main.models.doccategory] Registering Capability
- 2017-07-27 13:23:18,600 [noc.main.models.doccategory] Registering MetricType
- 2017-07-27 13:23:18,684 [noc.main.models.doccategory] Registering ConnectionType
- 2017-07-27 13:23:18,689 [noc.main.models.doccategory] Registering ObjectModel
- 2017-07-27 13:23:18,711 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2017-07-27 13:23:18,745 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2017-07-27 13:23:18,752 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2017-07-27 13:23:18,757 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2017-07-27 13:23:18,759 [noc.main.models.textindex] Adding FTS index for ip.address
- 2017-07-27 13:23:18,802 [noc.core.script.loader] Loading script HP.1910.get_chassis_id
- 2017-07-27 13:23:18,827 [noc.core.profile.loader] Loading profile HP.1910
- 2017-07-27 13:23:18,828 [script] [HP.1910.get_chassis_id|192.168.0.110] Running. Input arguments: {}, timeout 3600
- 2017-07-27 13:23:18,828 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Creating IOLoop
- 2017-07-27 13:23:18,829 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Create UDP socket
- 2017-07-27 13:23:18,829 [noc.core.ioloop.snmp] [192.168.0.110] SNMP GETNEXT 1.3.6.1.2.1.2.2.1.6
- 2017-07-27 13:23:19,260 [noc.core.ioloop.snmp] [192.168.0.110] GETNEXT result: [('1.3.6.1.2.1.2.2.1.6.1', '\xe8\xf7$\x87\x18)'), ('1.3.6.1.2.1.2.2.1.6.2', '\xe8\xf7$\x87\x18*'), ('1.3.6.1.2.1.2.2.1.6.3', '\xe8\xf7$\x87\x18+'), ('1.3.6.1.2.1.2.2.1.6.4', '\xe8\xf7$\x87\x18,'), ('1.3.6.1.2.1.2.2.1.6.5', '\xe8\xf7$\x87\x18-'), ('1.3.6.1.2.1.2.2.1.6.6', '\xe8\xf7$\x87\x18.'), ('1.3.6.1.2.1.2.2.1.6.7', '\xe8\xf7$\x87\x18/'), ('1.3.6.1.2.1.2.2.1.6.8', '\xe8\xf7$\x87\x180'), ('1.3.6.1.2.1.2.2.1.6.9', '\xe8\xf7$\x87\x181'), ('1.3.6.1.2.1.2.2.1.6.10', '\xe8\xf7$\x87\x182'), ('1.3.6.1.2.1.2.2.1.6.11', '\xe8\xf7$\x87\x183'), ('1.3.6.1.2.1.2.2.1.6.12', '\xe8\xf7$\x87\x184'), ('1.3.6.1.2.1.2.2.1.6.13', '\xe8\xf7$\x87\x185'), ('1.3.6.1.2.1.2.2.1.6.14', '\xe8\xf7$\x87\x186'), ('1.3.6.1.2.1.2.2.1.6.15', '\xe8\xf7$\x87\x187'), ('1.3.6.1.2.1.2.2.1.6.16', '\xe8\xf7$\x87\x188'), ('1.3.6.1.2.1.2.2.1.6.17', '\xe8\xf7$\x87\x189'), ('1.3.6.1.2.1.2.2.1.6.18', '\xe8\xf7$\x87\x18:'), ('1.3.6.1.2.1.2.2.1.6.19', '\xe8\xf7$\x87\x18;'), ('1.3.6.1.2.1.2.2.1.6.20', '\xe8\xf7$\x87\x18<'), ('1.3.6.1.2.1.2.2.1.6.21', '\xe8\xf7$\x87\x18='), ('1.3.6.1.2.1.2.2.1.6.22', '\xe8\xf7$\x87\x18>'), ('1.3.6.1.2.1.2.2.1.6.23', '\xe8\xf7$\x87\x18?'), ('1.3.6.1.2.1.2.2.1.6.24', '\xe8\xf7$\x87\x18@'), ('1.3.6.1.2.1.2.2.1.6.25', '\xe8\xf7$\x87\x18A'), ('1.3.6.1.2.1.2.2.1.6.26', '\xe8\xf7$\x87\x18B'), ('1.3.6.1.2.1.2.2.1.6.27', '\x00\x00\x00\x00\x00\x00'), ('1.3.6.1.2.1.2.2.1.6.28', '\x00\x00\x00\x00\x00\x00')]
- 2017-07-27 13:23:19,261 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Closing UDP socket
- 2017-07-27 13:23:19,261 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Closing IOLoop
- 2017-07-27 13:23:19,262 [script] [HP.1910.get_chassis_id|192.168.0.110] Result: [{'last_chassis_mac': 'E8:F7:24:87:18:42', 'first_chassis_mac': '00:00:00:00:00:00'}]
- 2017-07-27 13:23:19,262 [script] [HP.1910.get_chassis_id|192.168.0.110] Complete (433.94ms)
- [{'first_chassis_mac': '00:00:00:00:00:00',
- 'last_chassis_mac': 'E8:F7:24:87:18:42'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement