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
0
votes
1 answer

PySerial with cisco devices only answers sometimes

I'm having some trouble with talking to a cisco device over serial using pyserial. I'm getting the response I expect some times, but not always, and I have no idea what I'm doing wrong. Sometimes I just get empty responses multiple times in a row.…
Filip Haglund
  • 13,919
  • 13
  • 64
  • 113
0
votes
1 answer

Redirect stdout to a file in tcl

I know this has been asked before. But hear me out once.. I'm working on a Cisco router (IOS). I have to write a script which executes some commands and redirect their output to a file. But instead of using tee for every command, I want to open a…
oak1208
  • 303
  • 7
  • 16
0
votes
0 answers

Sending multiple lines of configuration to IOS with pexpect

I am trying to use pexpect to dump long ACLs to Cisco IOS router, the ACL contents are in a string, which has about 100 lines of ACL entries, I used the following code: for aclstr_line in aclstr.split('\n\r'): ssh_session.sendline('%s' %…
0
votes
1 answer

Exscript control cisco execute 'reload' command

I'm ultimately trying to create some basic functions to control my cisco test lab devices using Exscript. Exscript has done everything perfectly for me up to this point and I'm just pulling a few functions for example. What I'm having trouble with…
0
votes
3 answers

Delete lines between and including two patterns

I have a scalar variable that contains some information inside of a file. My goal is to strip that variable (or file) of any multi-line entry containing the words "Administratively down." The format is similar to this: Ethernet2/3 is up ... see…
jyaworski
  • 89
  • 3
  • 13
0
votes
1 answer

How can I send XML to a TCP port and have a conversation there using php?

I'm trying to use the XML API for Cisco IOS XR (Docs: Cisco IOS XR XML API Guide, Cisco IOS XR Release 4.1) but I'm not sure what library to use in PHP (simpleXML?) to just open a TCP connection to a port on a device and start reading and writing…
Aaron
  • 148
  • 11
0
votes
1 answer

Expect with catch statement in Tcl

My code : spawn telnet $ip expect "Password: " exp_send "$paswd\r" expect "Router>" exp_send "en\r" expect "Password: " exp_send "$paswd\r" expect "Router#" exp_send "\r" expect "Router#" exp_send "\r" expect "Router#" exp_send "\r" expect…
0
votes
2 answers

How can I know the operating system of a device

If I know the device's model or vendor. Is there any direct way by which I can know the operating system of this device (e.g through the device driver or something like that? ). For example, I will quote an answer for a previous question I asked in:…
0
votes
2 answers

TCL: How do I group log messages to together based on date stamps

I'm fairly new to TCL and need some assistance grouping log messages together based on date stamps from a Cisco router. UPDATED: change in sample log. have discovered that there is an extra space when the DD is a single digit. e.g " 1" Samplelog :…
onxx
  • 1,435
  • 3
  • 13
  • 22
0
votes
1 answer

debug *spanning-tree events* not showing up on 2960 router?

Doing my ccna3 on lab 5.5.1 in packet tracer. question asks to do a debug spanning-tree events command on the 2960 router. this does not work. all routers have STP on. the image below is a capture of the switch with the root bridge. this command…
Mark.S
  • 169
  • 1
  • 5
  • 23
0
votes
2 answers

Regex to retrieve firmware version number from Cisco IOS `show version`

I need help getting the firmware version from the output of the Cisco "show version" command The following is the first line of the show version output (where "12.4(21a)JA1" is the firmware version): Cisco IOS Software, C1240 Software…
atomicluis
  • 127
  • 2
  • 13
-1
votes
2 answers

Translate router CLI commands into sequence of MIB operations

In the design of the management API of a network element, we often include support for the commonly used CLIs like the CISCO style CLI and Juniper style CLI. But to support those commands, we need to know the breakdown of the commands issued into…
Anshul
  • 746
  • 9
  • 22
-1
votes
1 answer

IS-IS Protocol Configuration on Router does not seem Possible

On the image below, IS-IS does not appear in "router ?" commands. However, configuration guides on YT videos and other sources would always proceed to "router isis" command, but it is just not available on my end. Screenshot of "router ?" I tried…
-1
votes
1 answer

How to automate Cisco ios switch running-config backup to tftp server using ansible

I have tried ios_command module to run command "copy running-config tftp" Next I have to provide ip of tftp server. Followed by destination file name. I have tftp server running and I have ip address of it. But to provide the ip address and file…
-1
votes
1 answer

Cisco ios command to know L2 and L3 device

Looking at IOS / IOS XE v15.x+ devices and trying to figure out a command that helps to understand whether it is an L2 or L3 device. There are various options but those are not the most optimum ones like checking if the device supports vlans or lacp…