Hi,
I'm fairly new at this....I'm trying to push a configuration onto a Juno OS device that has come from the factory. I'm on a mgmt server trying to connect the the Juno OS device via Cisco OOB Serial Server. This is my script:
from jnpr.junos import Device
from jnpr.junos.utils.config import Config
with Device(host='host', user='name', password='password', mode='telnet', port='28', gather_facts=True) as dev:
cu = Config(dev)
cu.load(path='/var/tmp/qfx5100-sv.conf', format='text, overwrite=True)
print "Configuration Committed:", cu.commit()
I'm getting the following when trying to run the script:
No handlers could be found for logger "jnpr.junos.console"
Traceback (most recent call last):
File "initialconf.py", line 4, in <module>
with Device(host='host', user='name', password='password', mode='telnet', port='28', gather_facts=True) as dev:
File "/usr/lib/python2.7/site-packages/jnpr/junos/console.py", line 302, in __enter__
self._conn = self.open()
File "/usr/lib/python2.7/site-packages/jnpr/junos/console.py", line 195, in open
raise err
RuntimeError: open_fail: port not ready
Any help would greatly be appreciated!
No comments:
Post a Comment