Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./noc script --debug --pretty get_version 19
- 2018-05-09 11:00:28,627 [noc.core.dcs.base] Resolve near service postgres
- 2018-05-09 11:00:28,627 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/postgres?passing=1&near=_agent
- 2018-05-09 11:00:28,629 [noc.core.http.client] HTTP Response 200
- 2018-05-09 11:00:28,630 [noc.core.dcs.base] Resolved near service postgres to ['192.168.90.19:5432']
- 2018-05-09 11:00:28,804 [noc.core.dcs.base] Running resolver for service mongo
- 2018-05-09 11:00:28,804 [noc.core.dcs.base] [mongo] Starting resolver
- 2018-05-09 11:00:28,805 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?passing=1
- 2018-05-09 11:00:28,806 [noc.core.http.client] HTTP Response 200
- 2018-05-09 11:00:28,807 [noc.core.dcs.base] [mongo] Set active services to: mongo: 192.168.90.19:27017
- 2018-05-09 11:00:28,807 [noc.core.http.client] HTTP GET http://consul:8500/v1/health/service/mongo?index=61817&passing=1
- 2018-05-09 11:00:28,808 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'readPreference': 'secondaryPreferred', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:********@192.168.90.19:27017/noc', 'password': '********'}
- 2018-05-09 11:00:28,857 [noc.core.cache.base] Using cache backend: noc.core.cache.mongo.MongoCache
- 2018-05-09 11:00:28,917 [noc.main.models.doccategory] Registering Capability
- 2018-05-09 11:00:28,918 [noc.main.models.doccategory] Registering MetricType
- 2018-05-09 11:00:28,981 [noc.main.models.doccategory] Registering ConnectionType
- 2018-05-09 11:00:28,984 [noc.main.models.doccategory] Registering ObjectModel
- 2018-05-09 11:00:28,994 [noc.main.models.textindex] Adding FTS index for sa.managedobject
- 2018-05-09 11:00:29,009 [noc.main.models.textindex] Adding FTS index for ip.vrf
- 2018-05-09 11:00:29,012 [noc.main.models.textindex] Adding FTS index for vc.vc
- 2018-05-09 11:00:29,014 [noc.main.models.textindex] Adding FTS index for ip.prefix
- 2018-05-09 11:00:29,019 [noc.main.models.textindex] Adding FTS index for ip.address
- 2018-05-09 11:00:29,079 [noc.core.script.loader] Loading script Huawei.VRP.get_version
- 2018-05-09 11:00:29,125 [noc.core.profile.loader] Loading profile Huawei.VRP
- 2018-05-09 11:00:29,126 [script] [Huawei.VRP.get_version|172.27.1.2] Running. Input arguments: {}, timeout 3600
- 2018-05-09 11:00:29,127 [script] [Huawei.VRP.get_version|172.27.1.2] [snmp] Creating IOLoop
- 2018-05-09 11:00:29,127 [script] [Huawei.VRP.get_version|172.27.1.2] [snmp] Create UDP socket
- 2018-05-09 11:00:29,127 [noc.core.ioloop.snmp] [172.27.1.2] SNMP GET ['1.3.6.1.2.1.1.1.0']
- 2018-05-09 11:00:29,131 [noc.core.ioloop.snmp] [172.27.1.2] GET result: ' HUAWEI Eudemon8000E-X3 ,Huawei Versatile Routing Platform Software,\r\nSoftware Version:VRP (R) Software, Version 5.160 (Eudemon8000E-X3 V500R002C00SPC100)\r\nCopyright (C) 2007-2016 Huawei Technologies Co., Ltd. All rights reserved.\r\n'
- 2018-05-09 11:00:29,132 [script] [Huawei.VRP.get_version|172.27.1.2] [snmp] Closing UDP socket
- 2018-05-09 11:00:29,132 [script] [Huawei.VRP.get_version|172.27.1.2] [snmp] Closing IOLoop
- 2018-05-09 11:00:29,132 [script] [Huawei.VRP.get_version|172.27.1.2] Result: {'platform': 'Technologies', 'version': '5.160', 'vendor': 'Huawei'}
- 2018-05-09 11:00:29,132 [script] [Huawei.VRP.get_version|172.27.1.2] Complete (5.39ms)
- {'platform': 'Technologies', 'vendor': 'Huawei', 'version': '5.160'}
Advertisement
Add Comment
Please, Sign In to add comment