Questions tagged [cisco-ios]

Cisco IOS (Internetwork Operating System) is the name of the operating system that is run by virtually all enterprise-class Cisco switches and routers, as well as in certain other Cisco networking products.

Cisco IOS is an embedded operating system for Cisco networking products. It is found in nearly all of Cisco's enterprise-class switches and routers.

Cisco IOS is a monolithic-kernel OS with no GUI. It is designed to perform some of its functions in software, and to delegate others to specialized hardware. For example, routing and other protocols run as IOS processes and contribute to the Routing Information Base (RIB). The RIB is processed to generate the final IP forwarding table (FIB, Forwarding Information Base), which is used by the forwarding function of the router. However, in routers with hardware-based forwarding, such as the Cisco 12000 series, IOS computes the FIB in software and loads it into the forwarding hardware (such as an ASIC or network processor), which performs the actual packet forwarding function.

Cisco releases and supports several versions of the IOS software, roughly parallel to the stable/unstable/nightly versions of open source projects. Cisco calls these versions "trains," and it releases several of them. The mainline and T trains are the most common, and the rest are specialized for specific groups of customers.

  • The mainline train is designed to be the most stable release the company can offer, and its feature set never expands during its lifetime. Updates are released only to address bugs in the product.
  • The T is the Technology train, gets new features and bug fixes throughout its life, and is therefore potentially less stable than the mainline. The T train, once mature, becomes the basis for the next version of the mainline train.
  • The S is the Service Provider train, runs only on Cisco's core router products and is heavily customized for Service Provider customers.
  • The E is the Enterprise train, customized for implementation in enterprise environments.
  • The B is the broadband train, meant to support broadband features.
  • The X* trains (e.g. XA, XB) are a series of speciality trains and are not widely available.
238 questions
3
votes
2 answers

Ansible: ios upgrade router: check "spacefree_kb" prior to image copy

I'm writing a playbook for ios upgrade of multiple switches and have most pieces working with exception of the flash free check. Basically, I want to check if there is enough flash space free prior to copying the image. I tried using the gather…
3
votes
1 answer

XML validation No matching global declaration available for the validation root

I have an XML schema provided by Cisco for an IOS XE router. When running the command 'show ip access-list test | format' in the router's cli, it spits out an XML fragment that should validate against this schema. However it does not. Instead I get…
Chris
  • 617
  • 2
  • 6
  • 18
3
votes
3 answers

telnetlib python read_all() not working(hangs)

I am trying to read from a cisco router using telnetlib import telnetlib tn = telnetlib.Telnet(’10.106.218.50’, 17280) cmd1=”enable” cmd2=”show run” #session.write("command".encode('ascii') + b"\r") tn.write(cmd1.encode('ascii') +…
fsociety
  • 977
  • 3
  • 12
  • 23
2
votes
1 answer

Cisco CSR user-data bootstrap to allow multiline in banner

The user data format for the IOS appliance uses the following: ios-config-0001="hostname test-csr-deployment-001" ios-config-0002="banner exec |Hostname: test-csr-deployment-001\r\nRegion: eu-west-2|" The commands are accepted, but the returned…
itChi
  • 642
  • 6
  • 19
2
votes
2 answers

How can I parse metadata from show version (cisco ios) using ansible

Here is my playbook The return of output.stdout is a list that's why I call it by index of 0 - name: "GENERATE VERSION REPORT" hosts: all gather_facts: false roles: - ansible-network.network-engine tasks: - name: CAPTURE SHOW…
2
votes
1 answer

Ansible - Reduce on screen outputs

I have below task in my playbook, which generates lots of outputs on the screen. Is there a way to hide those lines (e.g. ok: [LAB_RT03] => (item=show runn) on-screen? Items in the file are list of show commands to run on network devices. In reality…
har83
  • 33
  • 1
  • 8
2
votes
1 answer

Netmiko: AttributeError: 'NoneType' object has no attribute 'recv_ready'

I am trying to connect to Cisco Router to pull some information and I am receiving the following error when I run my code: Traceback (most recent call last): File "./cisco_auto_back_up_v4.py", line 72, in redispatch(net_connect,…
daquezada
  • 1,017
  • 2
  • 10
  • 15
2
votes
2 answers

How can i get telnet output printed line by line?

I have implemented a script that connects to a Cisco device and collects the show run output. The script is: import getpass import telnetlib import time HOST = "10.62.149.9" user = input("Enter your remote account: ") password =…
AlexCCIE
  • 51
  • 1
  • 5
2
votes
1 answer

NETCONF - IOS XE - 16.04.01 cli-config-data throws error

I am trying to execute CLI commands using NETONF RPC in IOS XE 16.04.01. I got the schema for the NETCONF RPC from the device CLI "show netconf schema". Below is the schema specific to edit-config, [0, 1] required 1…
vishnukumar
  • 399
  • 1
  • 3
  • 11
2
votes
1 answer

How to describe scopes in EBNF?

I'm trying to write a parser for Cisco IOS and ASA configurations, using Grako and Python. I'm trying to figure out how to represent 'scoped' keywords in EBNF - for example, the 'description' keyword must appear inside an interface scope, but there…
AnotherHowie
  • 818
  • 1
  • 11
  • 28
2
votes
5 answers

How to parse Cisco IOS output into an object or JSON

Right now, I can get nearly what I want with a simple re.split("\n([^\s])", data) as shown below, but the problem is that the resulting list contains the single non-whitespace character match as it's own item in the list. Example output below…
Kevin
  • 1,489
  • 2
  • 20
  • 30
2
votes
1 answer

Expect Script - Starting logging from a certain point, and stop at a certain point

Hope you're all well! I've recently begun putting together a little utility for a few our of network engineers to use. It's function is to retrieve circuit information which is then parsed and outputted in a nice format. Of course, part of this…
Hugh
  • 193
  • 1
  • 1
  • 11
2
votes
1 answer

Am I missing the target with exp_continue?

I'm trying to write an expect script that allows me to ssh into a switch, look for a certain set of software in flash, then delete it. I would like to say that if you see result "A" do action "B", and if you see result "C" do action "B". All of…
bjforesthowell
  • 67
  • 1
  • 10
2
votes
1 answer

Perl SSH into Device

I am having a strange problem and I want to get to the bottom of this: I have a list of more than 1000 CISCO devices that I need to ssh into and run some commands. So in Perl, I have the following code: my $scon =…
BlueChips23
  • 1,861
  • 5
  • 34
  • 53
2
votes
1 answer

How can I handle timeouts when spawning ssh or telnet connections?

I've made an expect/bash script to retrieve cisco devices configuration; it's simple copy cisco running-configuration and save it using tftp. #!/bin/bash while read line; do device=$line; expect << EOF spawn telnet $device expect "Username:" …
Marco
  • 10,283
  • 4
  • 23
  • 22
1
2 3
15 16