Advertisement
Guest User

interfaces

a guest
Mar 24th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 KB | None | 0 0
  1. root@Node1:/opt/noc# ./noc script --debug --pretty get_interfaces "apcFA0D7A"
  2. 2018-03-24 05:21:20,635 [noc.core.dcs.base] Resolve near service postgres
  3. 2018-03-24 05:21:20,637 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
  4. 2018-03-24 05:21:20,640 [noc.core.http.client] HTTP Response 200
  5. 2018-03-24 05:21:20,641 [noc.core.dcs.base] Resolved near service postgres to ['10.220.21.122:5432']
  6. 2018-03-24 05:21:21,494 [noc.core.dcs.base] Running resolver for service mongo
  7. 2018-03-24 05:21:21,495 [noc.core.dcs.base] [mongo] Starting resolver
  8. 2018-03-24 05:21:21,495 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
  9. 2018-03-24 05:21:21,496 [noc.core.http.client] HTTP Response 200
  10. 2018-03-24 05:21:21,497 [noc.core.dcs.base] [mongo] Set active services to: mongo: 10.220.21.122:27017
  11. 2018-03-24 05:21:21,497 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=459984&passing=1
  12. 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': '********'}
  13. 2018-03-24 05:21:21,557 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
  14. 2018-03-24 05:21:21,621 [noc.main.models.doccategory] Registering Capability
  15. 2018-03-24 05:21:21,622 [noc.main.models.doccategory] Registering MetricType
  16. 2018-03-24 05:21:21,665 [noc.main.models.doccategory] Registering ConnectionType
  17. 2018-03-24 05:21:21,669 [noc.main.models.doccategory] Registering ObjectModel
  18. 2018-03-24 05:21:21,680 [noc.main.models.textindex] Adding FTS index for sa.managedobject
  19. 2018-03-24 05:21:21,696 [noc.main.models.textindex] Adding FTS index for ip.vrf
  20. 2018-03-24 05:21:21,699 [noc.main.models.textindex] Adding FTS index for vc.vc
  21. 2018-03-24 05:21:21,703 [noc.main.models.textindex] Adding FTS index for ip.prefix
  22. 2018-03-24 05:21:21,707 [noc.main.models.textindex] Adding FTS index for ip.address
  23. 2018-03-24 05:21:21,754 [noc.core.script.loader] Loading script APC.AOS.get_interfaces
  24. 2018-03-24 05:21:21,755 [noc.core.mib] Loading compiled MIBs
  25. 2018-03-24 05:21:21,756 [noc.core.mib] Loading compiled MIBs from 'cmibs'
  26. 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: ENTITY-STATE-MIB
  27. 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: SNMPv2-MIB
  28. 2018-03-24 05:21:21,756 [noc.core.mib] Loading MIB: CISCO-PPPOE-MIB
  29. 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: RMON2-MIB
  30. 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: IF-MIB
  31. 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: RFC1213-MIB
  32. 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: BRIDGE-MIB
  33. 2018-03-24 05:21:21,757 [noc.core.mib] Loading MIB: EtherLike-MIB
  34. 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: ENTITY-MIB
  35. 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: IP-MIB
  36. 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: ENTITY-SENSOR-MIB
  37. 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: CISCO-VPDN-MGMT-MIB
  38. 2018-03-24 05:21:21,758 [noc.core.mib] Loading MIB: LLDP-MIB
  39. 2018-03-24 05:21:21,767 [noc.core.profile.loader] Loading profile APC.AOS
  40. 2018-03-24 05:21:21,767 [script] [APC.AOS.get_interfaces|10.20.50.50] Running. Input arguments: {}, timeout 3600
  41. 2018-03-24 05:21:21,767 [noc.core.script.loader] Loading script APC.AOS.get_ifindexes
  42. 2018-03-24 05:21:21,768 [script] [Generic.get_ifindexes|10.20.50.50] Running. Input arguments: {}, timeout 3600
  43. 2018-03-24 05:21:21,768 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Creating IOLoop
  44. 2018-03-24 05:21:21,768 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Create UDP socket
  45. 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
  46. 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')]
  47. 2018-03-24 05:21:22,054 [script] [Generic.get_ifindexes|10.20.50.50] Result: {'vmac0': 2, 'LOOPBACK': 1}
  48. 2018-03-24 05:21:22,054 [script] [Generic.get_ifindexes|10.20.50.50] Complete (286.11ms)
  49. 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
  50. 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)]
  51. 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
  52. 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)]
  53. 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
  54. 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')]
  55. 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
  56. 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)]
  57. 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
  58. 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)]
  59. 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
  60. 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)]
  61. 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
  62. 2018-03-24 05:21:23,647 [noc.core.ioloop.snmp] [10.20.50.50] GETNEXT result: []
  63. 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
  64. 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)]
  65. 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
  66. 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')]
  67. 2018-03-24 05:21:24,096 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Closing UDP socket
  68. 2018-03-24 05:21:24,096 [script] [APC.AOS.get_interfaces|10.20.50.50] [snmp] Closing IOLoop
  69. 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'}]
  70. 2018-03-24 05:21:24,097 [script] [APC.AOS.get_interfaces|10.20.50.50] Complete (2329.55ms)
  71. [{'forwarding_instance': 'default',
  72. 'interfaces': [{'admin_status': True,
  73. 'description': '',
  74. 'name': 'LOOPBACK',
  75. 'oper_status': True,
  76. 'snmp_ifindex': 1,
  77. 'subinterfaces': [{'admin_status': True,
  78. 'description': '',
  79. 'enabled_afi': [],
  80. 'name': 'LOOPBACK',
  81. 'oper_status': True,
  82. 'snmp_ifindex': 1,
  83. 'type': 'SVI'}],
  84. 'type': 'loopback'},
  85. {'admin_status': True,
  86. 'description': '',
  87. 'mac': '00:C0:B7:FA:0D:7A',
  88. 'name': 'vmac0',
  89. 'oper_status': True,
  90. 'snmp_ifindex': 2,
  91. 'subinterfaces': [{'admin_status': True,
  92. 'description': '',
  93. 'enabled_afi': ['BRIDGE'],
  94. 'name': 'vmac0',
  95. 'oper_status': True,
  96. 'snmp_ifindex': 2,
  97. 'type': 'SVI'}],
  98. 'type': 'physical'}],
  99. 'type': 'ip'}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement