- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2020 08:46 AM
On a sub-question is this Sandbox router virtualized or is it the same for anyone?
Say for instance 100 users access it at the same time and create the same Loopback interfaces, will it create conflicts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2020 09:14 AM
Pretty sure its virtualised .. everyone accesses the same box.
More than one user configuring at the same time ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2020 10:10 AM
Connect with me https://bigevilbeard.github.io
