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

Ansible Print IOS output on string match

I'm trying to use Ansible to hit a bunch (100+) Cisco Catalyst switches and check if they have a certain line card installed. Via SSH, this can be done with the "sh mod" command. I want to parse the output of that command in a playbook and then show…
Ross
  • 173
  • 1
  • 2
  • 12
0
votes
1 answer

Remote access using python 2.7

I'm using a python script to access to cisco switch using SSH or telnet .. I'm using module pexpect .. the connection done. My problem that, when I want to show all the configuration using telconn.sendline("sh run " + "\r") I can't see all the…
Tariq
  • 101
  • 1
  • 1
  • 10
0
votes
1 answer

Backup router config using python

Im using python and paramiko. Im trying to backup a network device router using python. Below is my script. However im getting error import paramiko import sys import time HOST = "10.11.214.143" USER = "admin" PASS =…
NJones
  • 11
  • 2
  • 5
0
votes
2 answers

Cisco Monitor Destination Port

Using the command of session monitor on CISCO 3750 switch: monitor session 1 destination interface fastethernet / Can we redirect the needed traffic to an interface which is already having live traffic for a live service? or the destination port…
Joe
  • 9
  • 2
0
votes
1 answer

Ansible ios_command module is failing

I am trying to to use the Ansible ios_command module in order to retrieve the router's version. This is the playbook that I am running: --- - name: POC playbook hosts: testlab gather_facts: no gather_subset: no tasks: - name: Show router…
jonatzin
  • 922
  • 1
  • 13
  • 30
0
votes
2 answers

Paramiko session times out, but i need to execute a lot of commands

I'm working on a script (python 2.7) that is wotking with a remote device running Cisco IOS, so I need to execute a lot of commands through ssh. Few commands have no output and some of them have, and I want to recieve the output. It goes something…
Miri Adj
  • 21
  • 4
0
votes
1 answer

Simple "expect" script to log in and issue CLI commands to a cisco router only lasts two expects long

this is my script" #!/usr/bin/expect -f set USERNAME "user" set PASSWORD "password" set ENABLEPSW "enable-password" set HOST "host-fqdn" spawn ssh -o StrictHostKeyChecking=no $USERNAME@$host-fqdn expect "Password: " send "$PASSWORD\n" expect "*#…
ds3010
  • 1
  • 1
  • 1
0
votes
1 answer

ansible-doc ios_command not found

The Ansible docs state that the ios_command module is a core module. However, if I look for docs on this I get: $ ansible-doc ios_command module ios_command not found in /usr/share/ansible:... Any idea why?
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
0
votes
1 answer

Cisco to Alcatel Config Converter

I am having a CISCO config file which needs to be converted to corresponding ALCATEL config ,can someone suggest something .
beingmanish
  • 1,040
  • 8
  • 21
0
votes
4 answers

Configuring Ports on a Cisco Switch

I am very new to Cisco networking (haven't done any course either). I have been trying to learn a bit of networking myself and had no trouble in doing some of the basic stuff which i needed for my personal work. But i am planning to buy a new Cisco…
rv_k
  • 2,383
  • 7
  • 39
  • 52
0
votes
1 answer

Ansible 2.2 cisco ios modules are failing with message "Failed to connect to the host via ssh"

I'm not able to run ios_command module in Ansible 2.1 for executing commands on my cisco routers. I've written a playbook for testing ios_command module on cisco routers. Following is the playbook I wrote --- - hosts: router2 tasks: -…
mattdave
  • 37
  • 9
0
votes
1 answer

how to check user permissions in snmpv3

we have a cisco router, which configured with SNMP v3 and username is testAdmin. Is there any command to identify, whether this user has read-only permission or read-write? Regards, Sumesh.
iamsumesh
  • 646
  • 4
  • 8
  • 22
0
votes
1 answer

DHCP Server Port-Based Address Allocation on Cisco switch 2960-x

I am trying to configure DHCP Server on a Cisco 2960-x Switch to achieve port-based address allocation. I would like the ip address assigned to any device connected to that port to be the same every time. I have used the following guide to achieve…
0
votes
1 answer

Expect script help - capturing data from send command

I wrote a script that sends IOS files to my cisco device if there is enough free space, if there isn't enough free space- delete a file until there is. this works all fine and dandy unless the IOS happens to be in a directory. pseudo code: send…
genx1mx6
  • 425
  • 1
  • 6
  • 12
0
votes
1 answer

Perl - Repeat expect() until input is accepted

I'm using Perl to automate a script on some Cisco routers. The basic implementation is that it connects to a given list of routers, one after the other and collects the needed information. Each time the script connects to a new router it requests a…
DJDMorrison
  • 1,302
  • 2
  • 17
  • 34