Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- noc@noc:/opt/noc$ ./noc debug-script get_version asw2-72-eng
- 2015-07-31 09:22:04,538 Using JSON library: cjson
- 2015-07-31 09:22:04,551 SSH: Using gmpy
- 2015-07-31 09:22:04,664 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:22:04,759 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:22:04,768 Loading PeriodicRegistry
- 2015-07-31 09:22:04,780 Registering MetricType
- 2015-07-31 09:22:04,788 Loading compiled MIBs
- 2015-07-31 09:22:04,788 Loading compiled MIBs from 'cmibs'
- 2015-07-31 09:22:04,788 Loading MIB: CISCO-PPPOE-MIB
- 2015-07-31 09:22:04,789 Loading MIB: SNMPv2-MIB
- 2015-07-31 09:22:04,789 Loading MIB: IP-MIB
- 2015-07-31 09:22:04,789 Loading MIB: RFC1213-MIB
- 2015-07-31 09:22:04,790 Loading MIB: IF-MIB
- 2015-07-31 09:22:04,790 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-07-31 09:22:04,799 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:22:04,800 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:22:04,802 Loading DownloaderRegistry
- 2015-07-31 09:22:04,832 Loading ProfileRegistry
- 2015-07-31 09:22:06,546 Loading ScriptRegistry
- 2015-07-31 09:22:06,657 Adding FTS index for sa.managedobject
- 2015-07-31 09:22:06,678 Registering ConnectionType
- 2015-07-31 09:22:06,683 Registering ObjectModel
- 2015-07-31 09:22:06,686 Registering Capability
- 2015-07-31 09:22:06,696 Adding FTS index for vc.vc
- 2015-07-31 09:22:06,719 Adding FTS index for ip.vrf
- 2015-07-31 09:22:06,722 Adding FTS index for ip.prefix
- 2015-07-31 09:22:06,725 Adding FTS index for ip.address
- Error: Object not found: asw2-72-eng
- -----------
- noc@noc:/opt/noc$ ./noc debug-script commands sx8-pu76 'commands=["show ver","show module","show int brief"]'
- 2015-07-31 09:22:39,221 Using JSON library: cjson
- 2015-07-31 09:22:39,226 SSH: Using gmpy
- 2015-07-31 09:22:39,283 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:22:39,335 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:22:39,340 Loading PeriodicRegistry
- 2015-07-31 09:22:39,349 Registering MetricType
- 2015-07-31 09:22:39,352 Loading compiled MIBs
- 2015-07-31 09:22:39,352 Loading compiled MIBs from 'cmibs'
- 2015-07-31 09:22:39,352 Loading MIB: CISCO-PPPOE-MIB
- 2015-07-31 09:22:39,353 Loading MIB: SNMPv2-MIB
- 2015-07-31 09:22:39,353 Loading MIB: IP-MIB
- 2015-07-31 09:22:39,353 Loading MIB: RFC1213-MIB
- 2015-07-31 09:22:39,353 Loading MIB: IF-MIB
- 2015-07-31 09:22:39,353 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-07-31 09:22:39,358 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:22:39,358 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:22:39,359 Loading DownloaderRegistry
- 2015-07-31 09:22:39,375 Loading ProfileRegistry
- 2015-07-31 09:22:40,541 Loading ScriptRegistry
- 2015-07-31 09:22:40,676 Adding FTS index for sa.managedobject
- 2015-07-31 09:22:40,704 Registering ConnectionType
- 2015-07-31 09:22:40,712 Registering ObjectModel
- 2015-07-31 09:22:40,714 Registering Capability
- 2015-07-31 09:22:40,731 Adding FTS index for vc.vc
- 2015-07-31 09:22:40,751 Adding FTS index for ip.vrf
- 2015-07-31 09:22:40,754 Adding FTS index for ip.prefix
- 2015-07-31 09:22:40,756 Adding FTS index for ip.address
- Error: Object not found: sx8-pu76
- ----------
- noc@noc:/opt/noc$ ./noc debug-script add_vlan vlan_id=111 name="test" tagged_ports=['1','2'] 10.0.0.1./noc
- 2015-07-31 09:23:11,017 Using JSON library: cjson
- 2015-07-31 09:23:11,036 SSH: Using gmpy
- 2015-07-31 09:23:11,191 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:23:11,330 Connecting to MongoDB {'username': 'noc', 'password': '********', 'db': 'noc'}
- 2015-07-31 09:23:11,354 Loading PeriodicRegistry
- 2015-07-31 09:23:11,370 Registering MetricType
- 2015-07-31 09:23:11,380 Loading compiled MIBs
- 2015-07-31 09:23:11,380 Loading compiled MIBs from 'cmibs'
- 2015-07-31 09:23:11,382 Loading MIB: CISCO-PPPOE-MIB
- 2015-07-31 09:23:11,383 Loading MIB: SNMPv2-MIB
- 2015-07-31 09:23:11,383 Loading MIB: IP-MIB
- 2015-07-31 09:23:11,384 Loading MIB: RFC1213-MIB
- 2015-07-31 09:23:11,384 Loading MIB: IF-MIB
- 2015-07-31 09:23:11,384 Loading MIB: CISCO-VPDN-MGMT-MIB
- 2015-07-31 09:23:11,390 Configuring metric mappings sa.managedobject -> object.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:23:11,391 Configuring metric mappings inv.interface -> object.{{object.managed_object.name|qm}}.interface.{{object.name|qm}}.{{metric_type|qm}}
- 2015-07-31 09:23:11,395 Loading DownloaderRegistry
- 2015-07-31 09:23:11,449 Loading ProfileRegistry
- 2015-07-31 09:23:13,410 Loading ScriptRegistry
- 2015-07-31 09:23:13,509 Adding FTS index for sa.managedobject
- 2015-07-31 09:23:13,521 Registering ConnectionType
- 2015-07-31 09:23:13,524 Registering ObjectModel
- 2015-07-31 09:23:13,525 Registering Capability
- 2015-07-31 09:23:13,528 Adding FTS index for vc.vc
- 2015-07-31 09:23:13,538 Adding FTS index for ip.vrf
- 2015-07-31 09:23:13,540 Adding FTS index for ip.prefix
- 2015-07-31 09:23:13,541 Adding FTS index for ip.address
- Traceback (most recent call last):
- File "manage.py", line 45, in <module>
- execute_from_command_line(sys.argv)
- File "/opt/noc/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
- utility.execute()
- File "/opt/noc/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
- self.fetch_command(subcommand).run_from_argv(self.argv)
- File "/opt/noc/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
- self.execute(*args, **options.__dict__)
- File "/opt/noc/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
- output = self.handle(*args, **options)
- File "/opt/noc/sa/management/commands/debug-script.py", line 429, in handle
- v = cPickle.dumps(eval(v, {}, {}))
- File "<string>", line 1, in <module>
- NameError: name 'test' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement