Tag Archives: networking

Cisco Configuration “Expect” Backup Script

I was recently tasked with backing up switch configurations automatically. No problem, right? Wrong. There was nothing to spend on this project so it was up to me and whatever I could do with a script. I had made a telnet script in the past but was not crazy about passwords flying around in plain text. I really have very little scripting experience so many of you will find this very easy to understand and follow since there is nothing complicated about my scripting skills.
Continue reading

Posted in Networking, Scripts, Shell | Tagged , , , , , | 3 Comments

Parsing Cisco Show Command Output

If you have done even the basics in networking you have probably used a “show” command at some point on a Cisco networking device. Show commands give us insight into the configuration, performance and issues that face that device. One issue with show commands, however, is that they can be very verbose. Many commands give you way more information than you are looking for and are difficult to get through quickly. Luckily for you and I there are output modifiers to help us parse the output.
I will attempt to teach this short lesson with an example. Say you want to look at all interfaces and see what access lists are applied to them. You could do “show run” and read all of the output until you find what you are looking for.
Continue reading

Posted in Networking | Tagged , , , , | 1 Comment

Discovering a Cisco Network with CDP (Part 3)

This is part 3 of the series on network discovery using CDP. If you have not read the first or second parts you can find them HERE and HERE. So far we have looked at mapping the infrastructure with CDP as well as actually mapping hosts (by MAC address) to switch ports. I wanted to take the opportunity, in this write up, to step away from the Cisco command line and look at another product that leverages CDP: VMware. As you already know CDP is simply a packet emitted from physical ports of Cisco devices. Anything that cares to listen … Continue reading

Posted in Networking | Tagged , , , | Leave a comment

Discovering a Cisco Network with CDP (Part 2)

Part one of this two part series talked about walking out your network with CDP. This is useful when all you need to know is the topology of the network equipment its self. The next step in the process is to map out where servers or other hosts are located. The first way of doing this would be to log onto the host, capture packets, and look for a CDP packet that indicates the switch name and port that the host is connected to. This would require packet capture software on each system and is really not practical. The second … Continue reading

Posted in Networking | Tagged , , , | Leave a comment