Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@kovreng noc]# cd /opt/noc/
- [root@kovreng noc]# ./noc debug-script get_version -c public crt01-koz-ltc
- /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
- 2012-03-07 14:21:23,641 SSH: Using gmpy
- 2012-03-07 14:21:25,167 Using JSON library: cjson
- 2012-03-07 14:21:25,325 Loading PeriodicRegistry
- 2012-03-07 14:21:25,422 Loading DownloaderRegistry
- 2012-03-07 14:21:25,507 Loading ProfileRegistry
- 2012-03-07 14:21:27,145 Loading ScriptRegistry
- 2012-03-07 14:21:27,733 Setting up 'select' polling method
- 2012-03-07 14:21:27,733 Set up select() poller
- 2012-03-07 14:21:27,733 Loading private ssh key from 'etc/ssh/id_rsa'
- 2012-03-07 14:21:27,739 Loading public ssh key from 'etc/ssh/id_rsa.pub'
- access_profile {
- profile: "Cisco.IOS"
- scheme: TELNET
- address: "192.168.65.33"
- user: "+km"
- password: "gjikbdctyf[eq"
- super_password: "rere:tyth"
- snmp_ro: "public"
- attrs {
- key: "image"
- value: "C3745-ADVENTERPRISEK9-M"
- }
- attrs {
- key: "platform"
- value: "3700"
- }
- attrs {
- key: "vendor"
- value: "Cisco"
- }
- attrs {
- key: "version"
- value: "12.3(14)T7"
- }
- }
- script: "Cisco.IOS.get_version"
- 2012-03-07 14:21:27,747 Running script thread
- 2012-03-07 14:21:27,747 Running socket factory
- 2012-03-07 14:21:27,747 Creating transaction id=2039327636 method=None callback=None
- 2012-03-07 14:21:27,749 [script-192.168.65.33-Cisco.IOS.get_version] Running
- 2012-03-07 14:21:27,750 [script-192.168.65.33-Cisco.IOS.get_version] Running script: Cisco.IOS.get_version ({})
- 2012-03-07 14:21:27,750 register_socket(<noc.sa.script.snmp.SNMPGetSocket object at 0x9e376ac>,None)
- 2012-03-07 14:21:27,751 [script-192.168.65.33-Cisco.IOS.get_version] 192.168.65.33 SNMP GET 1.3.6.1.2.1.1.1.0
- 2012-03-07 14:21:28,749 Tick
- 2012-03-07 14:21:28,749 3 TICKS TO EXIT
- 2012-03-07 14:21:28,749 [SNMPGetSocket(0x9e376ac)] Initializing socket
- 2012-03-07 14:21:28,796 [script-192.168.65.33-Cisco.IOS.get_version] 192.168.65.33 SNMP GET REPLY: 1.3.6.1.2.1.1.1.0 0x436973636f20494f5320536f6674776172652c203337303020536f667477617265202843333734352d414456454e54455250524953454b392d4d292c2056657273696f6e2031322e332831342954372c2052454c4541534520534f465457415245202866633229da546563686e6963616c20537570706f72743a20687474703a2f2f7777772e636973636f2e636f6d2f74656368737570706f7274da436f707972696768742028632920313938362d3230303620627920436973636f2053797374656d732c20496e632eda436f6d70696c6564205468752032332d4d61722d30362030303a3237206279207077616465
- 2012-03-07 14:21:28,797 [script-192.168.65.33-Cisco.IOS.get_version] Script returns with result: {'platform': '3700', 'version': '12.3(14)T7', 'vendor': 'Cisco', 'attributes': {'image': 'C3745-ADVENTERPRISEK9-M'}}
- 2012-03-07 14:21:28,797 [script-192.168.65.33-Cisco.IOS.get_version] Closing
- 2012-03-07 14:21:28,798 unregister_socket(<noc.sa.script.snmp.SNMPGetSocket object at 0x9e376ac>)
- 2012-03-07 14:21:28,798 Resetting wait ticks
- 2012-03-07 14:21:29,800 Tick
- 2012-03-07 14:21:29,800 3 TICKS TO EXIT
- 2012-03-07 14:21:30,801 Tick
- 2012-03-07 14:21:30,802 2 TICKS TO EXIT
- 2012-03-07 14:21:31,803 Tick
- 2012-03-07 14:21:31,803 1 TICKS TO EXIT
- 2012-03-07 14:21:32,804 Tick
- 2012-03-07 14:21:32,805 EXIT
- 2012-03-07 14:21:32,806 SCRIPT RESULT: script-192.168.65.33-Cisco.IOS.get_version
- {'attributes': {'image': 'C3745-ADVENTERPRISEK9-M'},
- 'platform': '3700',
- 'vendor': 'Cisco',
- 'version': '12.3(14)T7'}
- 2012-03-07 14:21:32,806 Shutting down the factory
- 2012-03-07 14:21:32,806 0 TICKS TO EXIT
- [root@kovreng noc]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement