Advertisement
openmsk

get_chassis_id

Jul 27th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.42 KB | None | 0 0
  1. [root@noc noc]# /opt/noc/noc script --loglevel debug --pretty get_chassis_id wt-len-al2
  2. 2017-07-27 13:23:18,262 [noc.core.dcs.base] Running resolver for service pgbouncer
  3. 2017-07-27 13:23:18,264 [noc.core.dcs.base] [pgbouncer] Starting resolver
  4. 2017-07-27 13:23:18,264 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/pgbouncer?passing=1
  5. 2017-07-27 13:23:18,266 [noc.core.http.client] HTTP Response 200
  6. 2017-07-27 13:23:18,267 [noc.core.dcs.base] [pgbouncer] Set active services to: pgbouncer: 10.0.4.111:6432
  7. 2017-07-27 13:23:18,267 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/pgbouncer?index=3214103&passing=1
  8. 2017-07-27 13:23:18,336 [root] Loading PeriodicRegistry
  9. 2017-07-27 13:23:18,400 [noc.core.dcs.base] Running resolver for service nsqdhttp
  10. 2017-07-27 13:23:18,402 [noc.core.dcs.base] [nsqdhttp] Starting resolver
  11. 2017-07-27 13:23:18,402 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/nsqdhttp?passing=1
  12. 2017-07-27 13:23:18,404 [noc.core.http.client] HTTP Response 200
  13. 2017-07-27 13:23:18,404 [noc.core.dcs.base] [nsqdhttp] Set active services to: nsqdhttp: 10.0.4.111:4151
  14. 2017-07-27 13:23:18,405 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/nsqdhttp?index=3214103&passing=1
  15. 2017-07-27 13:23:18,480 [noc.core.dcs.base] Running resolver for service mongo
  16. 2017-07-27 13:23:18,481 [noc.core.dcs.base] [mongo] Starting resolver
  17. 2017-07-27 13:23:18,481 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  18. 2017-07-27 13:23:18,483 [noc.core.http.client] HTTP Response 200
  19. 2017-07-27 13:23:18,483 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.0.4.111:27017
  20. 2017-07-27 13:23:18,483 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=3214103&passing=1
  21. 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}
  22. 2017-07-27 13:23:18,541 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  23. 2017-07-27 13:23:18,599 [noc.main.models.doccategory] Registering Capability
  24. 2017-07-27 13:23:18,600 [noc.main.models.doccategory] Registering MetricType
  25. 2017-07-27 13:23:18,684 [noc.main.models.doccategory] Registering ConnectionType
  26. 2017-07-27 13:23:18,689 [noc.main.models.doccategory] Registering ObjectModel
  27. 2017-07-27 13:23:18,711 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  28. 2017-07-27 13:23:18,745 [noc.main.models.textindex] Adding FTS index for ip.vrf
  29. 2017-07-27 13:23:18,752 [noc.main.models.textindex] Adding FTS index for vc.vc
  30. 2017-07-27 13:23:18,757 [noc.main.models.textindex] Adding FTS index for ip.prefix
  31. 2017-07-27 13:23:18,759 [noc.main.models.textindex] Adding FTS index for ip.address
  32. 2017-07-27 13:23:18,802 [noc.core.script.loader] Loading script HP.1910.get_chassis_id
  33. 2017-07-27 13:23:18,827 [noc.core.profile.loader] Loading profile HP.1910
  34. 2017-07-27 13:23:18,828 [script] [HP.1910.get_chassis_id|192.168.0.110] Running. Input arguments: {}, timeout 3600
  35. 2017-07-27 13:23:18,828 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Creating IOLoop
  36. 2017-07-27 13:23:18,829 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Create UDP socket
  37. 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
  38. 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')]
  39. 2017-07-27 13:23:19,261 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Closing UDP socket
  40. 2017-07-27 13:23:19,261 [script] [HP.1910.get_chassis_id|192.168.0.110] [snmp] Closing IOLoop
  41. 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'}]
  42. 2017-07-27 13:23:19,262 [script] [HP.1910.get_chassis_id|192.168.0.110] Complete (433.94ms)
  43. [{'first_chassis_mac': '00:00:00:00:00:00',
  44.   'last_chassis_mac': 'E8:F7:24:87:18:42'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement