
E_zombie
21.02.2017
08:15:21
тоесть у меня неправильные настройки конфига супервизора ?
discovery-default:discovery-default-009 RUNNING pid 8235, uptime 1:30:42
escalator RUNNING pid 973, uptime 1:51:03
mrt:mrt-000 RUNNING pid 1004, uptime 1:51:03
omap:omap-000 RUNNING pid 12690, uptime 1:02:59
ping-default:ping-default-000 RUNNING pid 983, uptime 1:51:03

Nikolay
21.02.2017
08:53:39
— поставь
./noc script —debug —pretty get_version "Campus-str-С-l3-sw-1"
2017-02-21 11:51:42,236 [root] Loading PeriodicRegistry
2017-02-21 11:51:42,376 [noc.lib.nosql] Connecting to MongoDB {'username': 'noc', 'authentication_source': 'noc', 'replicaSet': 'noc', 'db': 'noc', 'socketKeepAlive': True, 'host': 'mongodb://noc:noc@10.117.2.33:27017/noc', 'password': '********', 'slave_okay': True}
2017-02-21 11:51:42,405 [noc.core.cache.base] Using cache backend: noc.core.cache.memcached.MemcachedCache
2017-02-21 11:51:42,412 [noc.core.cache.memcached] Starting memcached pool: hosts=10.117.2.33:11211, pool size=8
2017-02-21 11:51:42,456 [noc.main.models.doccategory] Registering Capability
2017-02-21 11:51:42,457 [noc.main.models.doccategory] Registering MetricType
2017-02-21 11:51:42,789 [noc.main.models.doccategory] Registering ConnectionType
2017-02-21 11:51:42,793 [noc.main.models.doccategory] Registering ObjectModel
2017-02-21 11:51:42,817 [noc.main.models.textindex] Adding FTS index for sa.managedobject
2017-02-21 11:51:42,849 [noc.main.models.textindex] Adding FTS index for ip.vrf
2017-02-21 11:51:42,856 [noc.main.models.textindex] Adding FTS index for vc.vc
2017-02-21 11:51:42,862 [noc.main.models.textindex] Adding FTS index for ip.prefix
2017-02-21 11:51:42,864 [noc.main.models.textindex] Adding FTS index for ip.address
2017-02-21 11:51:42,906 [noc.core.script.loader] Loading script Cisco.IOS.get_version
2017-02-21 11:51:42,974 [noc.core.profile.loader] Loading profile Cisco.IOS
2017-02-21 11:51:42,976 [script] [Cisco.IOS.get_version|10.117.1.161] Running. Input arguments: {}, timeout 3600
2017-02-21 11:51:42,976 [script] [Cisco.IOS.get_version|10.117.1.161] [snmp] Creating IOLoop
2017-02-21 11:51:42,983 [noc.core.ioloop.snmp] [10.117.1.161] SNMP GET ['1.3.6.1.2.1.1.1.0']
2017-02-21 11:51:53,000 [script] [Cisco.IOS.get_version|10.117.1.161] Open ssh CLI
2017-02-21 11:51:53,112 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Setup session
2017-02-21 11:51:53,112 [script] [Cisco.IOS.get_version|10.117.1.161] Disable paging
2017-02-21 11:51:53,112 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Creating IOLoop
2017-02-21 11:51:53,116 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Connecting (u'10.117.1.161', 22)
2017-02-21 11:51:53,119 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Connected
2017-02-21 11:51:53,120 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Startup ssh session for user 'lenn'
2017-02-21 11:51:54,716 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Connected. Host fingerprint is a31b669f1a0475db
2017-02-21 11:51:54,720 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Supported authentication methods: publickey, keyboard-interactive, password
2017-02-21 11:51:54,720 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Trying publickey authentication
2017-02-21 11:51:54,720 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] public_key=var/etc/ssh/default/id_rsa.pub private_key=var/etc/ssh/default/id_rsa
2017-02-21 11:51:54,721 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Failed: Unable to open public key file (Code: -16)
2017-02-21 11:51:54,721 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Trying keyboard-interactive
2017-02-21 11:51:54,752 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Success
2017-02-21 11:51:54,752 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] User is authenticated
2017-02-21 11:51:54,753 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Open channel
2017-02-21 11:51:54,799 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] State: <START>
2017-02-21 11:51:54,799 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Setting timeout: 60s
2017-02-21 11:51:54,807 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: '\r\nCampus-str-C-l3-sw1#'
2017-02-21 11:51:54,808 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Match: ^(?P<hostname>[a-zA-Z0-9/.]\S{0,35})(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
2017-02-21 11:51:54,808 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] State: <PROMT>
— поставь
2017-02-21 11:51:54,809 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Refining pattern prompt to '^Campus\\-str\\-C\\-l3\\-sw1(?:[-_\\d\\w]+)?(?:\\(config[^\\)]*\\))?#'
2017-02-21 11:51:54,810 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Resetting timeouts
2017-02-21 11:51:54,811 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Send: 'terminal length 0\n'
2017-02-21 11:51:54,816 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 't'
2017-02-21 11:51:54,818 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'e'
2017-02-21 11:51:54,818 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'r'
2017-02-21 11:51:54,819 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'm'
2017-02-21 11:51:54,820 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'i'
2017-02-21 11:51:54,820 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'n'
2017-02-21 11:51:54,821 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'a'
2017-02-21 11:51:54,823 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'l'
2017-02-21 11:51:54,834 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: ' '
2017-02-21 11:51:54,834 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'l'
2017-02-21 11:51:54,836 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'e'
2017-02-21 11:51:54,837 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'n'
2017-02-21 11:51:54,838 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'g'
2017-02-21 11:51:54,840 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 't'
2017-02-21 11:51:54,841 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'h'
2017-02-21 11:51:54,842 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: ' '
2017-02-21 11:51:54,843 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: '0'
2017-02-21 11:51:54,844 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: '\r\n'
2017-02-21 11:51:54,847 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'Campus-str-C-l3-sw1#'
2017-02-21 11:51:54,847 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Match: ^Campus\-str\-C\-l3\-sw1(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
2017-02-21 11:51:54,848 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] State: <PROMT>
2017-02-21 11:51:54,848 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Command: terminal length 0
terminal length 0
— поставь
2017-02-21 11:51:54,849 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Send: 'show version\n'
2017-02-21 11:51:54,887 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 's'
2017-02-21 11:51:54,889 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'h'
2017-02-21 11:51:54,890 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'o'
2017-02-21 11:51:54,890 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'w'
2017-02-21 11:51:54,892 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: ' '
2017-02-21 11:51:54,893 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'v'
2017-02-21 11:51:54,894 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'e'
2017-02-21 11:51:54,895 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'r'
2017-02-21 11:51:54,896 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 's'
2017-02-21 11:51:54,898 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'io'
2017-02-21 11:51:54,906 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'n'
2017-02-21 11:51:54,908 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: '\r\n'
2017-02-21 11:51:54,932 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Received: 'Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)\r\nTechnical Support: http://www.cisco.com/techsupport\r\nCopyright (c) 1986-2013 by Cisco Systems, Inc.\r\nCompiled Wed 26-Jun-13 02:28 by prod_rel_team\r\n\r\nROM: Bootstrap program is C3560 boot loader\r\nBOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)\r\n\r\nCampus-str-C-l3-sw1 uptime is 8 weeks, 2 days, 32 minutes\r\nSystem returned to ROM by power-on\r\nSystem image file is "flash:/c3560-ipservicesk9-mz.150-2.SE4/c3560-ipservicesk9-mz.150-2.SE4.bin"\r\n\r\n\r\nThis product contains cryptographic features and is subject to United\r\nStates and local country laws governing import, export, transfer and\r\nuse. Delivery of Cisco cryptographic products does not imply\r\nthird-party authority to import, export, distribute or use encryption.\r\nImporters, exporters, distributors and users are responsible for\r\ncompliance with U.S. and local country laws. By using this product you\r\nagree to comply with applicable laws and regulations. If you are unable\r\nto comply with U.S. and local laws, return this product immediately.\r\n\r\nA summary of U.S. laws governing Cisco cryptographic products may be found at:\r\nhttp://www.cisco.com/wwl/export/crypto/tool/stqrg.html\r\n\r\nIf you require further assistance please contact us by sending email to\r\nexport@cisco.com.\r\n\r\ncisco WS-C3560G-48TS (PowerPC405) processor (revision D0) with 131072K bytes of memory.\r\nProcessor board ID FOC1229Y4W7\r\nLast reset from power-on\r\n2 Virtual Ethernet interfaces\r\n52 Gigabit Ethernet interfaces\r\nThe password-recovery mechanism is enabled.\r\n\r\n512K bytes of flash-simulated non-volatile configuration memory.\r\nBase ethernet MAC Address : 00:22:56:51:3D:80\r\nMotherboard assembly number : 73-10214-04\r\nPower supply part number : 341-0107-01\r\nMotherboard serial number : FOC122853RT\r\nPower supply serial number : AZS122806H4\r\nModel revision number : D0\r\nMotherboard revision number : B0\r\nModel number : WS-C3560G-48TS-S\r\nSystem serial number : FOC1229Y4W7\r\nTop Assembly Part Number : 800-26849-01\r\nTop Assembly Revision Number : B0\r\nVersion ID : V03\r\nCLEI Code Number : CNMWY00ARC\r\nHardware Board Revision Number : 0x09\r\n\r\n\r\nSwitch Ports Model SW Version SW Image \r\n------ —--- —--- —------— —------— \r\n* 1 52 WS-C3560G-48TS 15.0(2)SE4 C3560-IPSERVICESK9-M \r\n\r\n\r\nConfiguration register is 0xF\r\n\r\nCampus-str-C-l3-sw1#'
— поставь
2017-02-21 11:51:54,933 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Match: ^Campus\-str\-C\-l3\-sw1(?:[-_\d\w]+)?(?:\(config[^\)]*\))?#
2017-02-21 11:51:54,934 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] State: <PROMT>
2017-02-21 11:51:54,934 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Command: show version
show version
Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2013 by Cisco Systems, Inc.
Compiled Wed 26-Jun-13 02:28 by prod_rel_team
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)
Campus-str-C-l3-sw1 uptime is 8 weeks, 2 days, 32 minutes
System returned to ROM by power-on
System image file is "flash:/c3560-ipservicesk9-mz.150-2.SE4/c3560-ipservicesk9-mz.150-2.SE4.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
cisco WS-C3560G-48TS (PowerPC405) processor (revision D0) with 131072K bytes of memory.
Processor board ID FOC1229Y4W7
Last reset from power-on
2 Virtual Ethernet interfaces
52 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
512K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 00:22:56:51:3D:80
Motherboard assembly number : 73-10214-04
Power supply part number : 341-0107-01
Motherboard serial number : FOC122853RT
Power supply serial number : AZS122806H4
Model revision number : D0
Motherboard revision number : B0
Model number : WS-C3560G-48TS-S
System serial number : FOC1229Y4W7
Top Assembly Part Number : 800-26849-01
Top Assembly Revision Number : B0
Version ID : V03
CLEI Code Number : CNMWY00ARC
Hardware Board Revision Number : 0x09
Switch Ports Model SW Version SW Image
—---- —--- —--- —------— —------—
* 1 52 WS-C3560G-48TS 15.0(2)SE4 C3560-IPSERVICESK9-M
Configuration register is 0xF
2017-02-21 11:51:54,940 [script] [Cisco.IOS.get_version|10.117.1.161] [snmp] Closing IOLoop
2017-02-21 11:51:54,941 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Closing channel
2017-02-21 11:51:55,072 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Cannot close channel clearly: Unable to close the channel.
2017-02-21 11:51:55,073 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Closing ssh session
2017-02-21 11:51:55,074 [script] [Cisco.IOS.get_version|10.117.1.161] [ssh] Closing IOLoop
2017-02-21 11:51:55,074 [script] [Cisco.IOS.get_version|10.117.1.161] Result: {'platform': 'C3560', 'version': '15.0(2)SE4', 'vendor': 'Cisco', 'attributes': {'image': 'C3560-IPSERVICESK9-M'}}
2017-02-21 11:51:55,075 [script] [Cisco.IOS.get_version|10.117.1.161] Complete (12099.10ms)
{'attributes': {'image': 'C3560-IPSERVICESK9-M'},
'platform': 'C3560',
'vendor': 'Cisco',
'version': '15.0(2)SE4'}