View difference between Paste ID: NXN5UL3c and 9zkwcWiz
SHOW: | | - or go back to the newest paste.
1-
# ./noc debug-script Cisco.IOS.get_chassis_id.py sw0549-ST1.mo.lesnoy.F14
1+
# ./noc debug-script get_interfaces.py sw0549-ST1.mo.lesnoy.F14
2-
2013-11-27 19:12:04,967 SSH: Using gmpy
2+
2013-11-27 19:22:46,764 SSH: Using gmpy
3-
2013-11-27 19:12:05,040 Using JSON library: cjson
3+
2013-11-27 19:22:46,836 Using JSON library: cjson
4-
2013-11-27 19:12:05,102 Loading PeriodicRegistry
4+
2013-11-27 19:22:46,896 Loading PeriodicRegistry
5-
2013-11-27 19:12:05,106 Loading DownloaderRegistry
5+
2013-11-27 19:22:46,900 Loading DownloaderRegistry
6-
2013-11-27 19:12:05,130 Loading ProfileRegistry
6+
2013-11-27 19:22:46,925 Loading ProfileRegistry
7-
2013-11-27 19:12:05,615 Loading ScriptRegistry
7+
2013-11-27 19:22:47,384 Loading ScriptRegistry
8-
2013-11-27 19:12:05,853 Setting up 'select' polling method
8+
Traceback (most recent call last):
9-
2013-11-27 19:12:05,853 Activating 'select' poller
9+
  File "manage.py", line 44, in <module>
10-
2013-11-27 19:12:05,854 Loading private ssh key from 'etc/ssh/id_rsa'
10+
    execute_from_command_line(sys.argv)
11-
2013-11-27 19:12:05,854 Loading public ssh key from 'etc/ssh/id_rsa.pub'
11+
  File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
12-
access_profile {
12+
    utility.execute()
13-
  profile: "Cisco.IOS"
13+
  File "/opt/noc/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
14-
  scheme: SSH
14+
    self.fetch_command(subcommand).run_from_argv(self.argv)
15-
  address: "172.16.130.4"
15+
  File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
16-
  port: 22
16+
    self.execute(*args, **options.__dict__)
17-
  user: "osp"
17+
  File "/opt/noc/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
18-
  password: "ххххххх"
18+
    output = self.handle(*args, **options)
19-
  attrs {
19+
  File "/opt/noc/sa/management/commands/debug-script.py", line 422, in handle
20-
    key: "image"
20+
    requests = [self.get_request(script_name, obj, snmp_ro_community, values) for obj in objects]
21-
    value: "C3750-ADVIPSERVICESK9-M"
21+
  File "/opt/noc/sa/management/commands/debug-script.py", line 340, in get_request
22-
  }
22+
    vendor, os_name, script = script.split(".", 2)
23-
  attrs {
23+
ValueError: need more than 2 values to unpack