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

Discovering a Cisco Network with CDP (Part 1)

If you have ever been dropped face first into an undocumented Cisco network with little Cisco experience you may have found yourself overwhelmed. Fortunately for admins who have no desire to tone cables or read long mac address tables there is a simple way to map out a network like this. The Cisco Discovery Protocol (CDP) is the answer. There are a few prerequisites but overall the process is fairly simple. First, CDP must be enabled on all of the devices and ports you would like to discover. This typically is the case as CDP is enabled by default on … Continue reading

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

Remote Cisco Router Change Safty Net

In the networking world you have a lot of opportunity to break things and take down entire buildings, WAN links, etc. Even less risky changes can result in a short break in connectivity while routing protocols re converge and so on. Because we often don’t have physical access to both sites while we are making WAN changes there has to be some type of worst case scenario prevention method. This is it: When making changes to WAN links in particular I always like to make the change to the far side first and obviously have to if there will be … Continue reading

Posted in Networking | Tagged , , | Leave a comment

MySQL Date Time Filename Backup

I recently setup a system to manage our companies IP addresses. This was an open source PHP application that ran in Apache and used MySQL for its database. Since I typically don’t have time to manually run a backup (and why would I want to do something the hard way anyhow?) I decided it was time to automate the task. The first issue was what to name the backup files. I wanted at least a few weeks history worth of backups in case something bad was done in the database… Obviously, I could not have 30 files with the same … Continue reading

Posted in Shell | Tagged , , | Leave a comment