05-25-2020 07:09 AM
Hello everyone,
I'm following different labs about network automation.
I went through the NETCONF/YAML lab with the Always-On Sandbox router, worked like a charm.
I also used netmiko to do basic operations like get running config and it worked well.
However, I can't seem to edit configuration with send_config_set on this router.
Code example :
from netmiko import Netmiko from getpass import getpass net_connect = Netmiko( "sbx-iosxr-mgmt.cisco.com", username="admin", port="8181", password=getpass(), device_type="cisco_ios", ) print(net_connect.find_prompt()) commands = ["logging history size 500"] net_connect.send_config_set(commands) net_connect.disconnect()
But I get a socket timeout exception. Is this router configured to block these kind of calls?
Am I doing something wrong?
Thankfully
Solved! Go to Solution.
05-25-2020 08:03 AM - edited 05-25-2020 08:10 AM
Hi
device_type="cisco_xr"
commands = ["logging history size 500", 'commit']
and it should work
05-25-2020 08:03 AM - edited 05-25-2020 08:10 AM
Hi
device_type="cisco_xr"
commands = ["logging history size 500", 'commit']
and it should work
05-25-2020 08:46 AM
05-25-2020 09:14 AM
Pretty sure its virtualised .. everyone accesses the same box.
More than one user configuring at the same time ..
05-25-2020 10:10 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide