The usual IT babble
Posts tagged Cisco
Nagios: Integrating Cisco switches
Feb 13th
Well, as I wrote recently, we received a new BladeCenter a few weeks back. Now, as we slowly take it into service I was interested in watching the utilization of the back planes as well as the CPU utilization of the Cisco Catalyst 3012 network switches.
The first mistake I made, was to trust Cisco with their guide about how to get the utilization from the device using SNMP. They stated some OID’s, which I tried with snmpwalk and got a result from.
snmpwalk -v1 -c public -O n 10.0.0.35 .1.3.6.1.4.1.9.5.1.1.8 .1.3.6.1.4.1.9.5.1.1.8.0 = INTEGER: 0
Now, as I tried retrieving the SNMP data by means of the check_snmp plugin, I got some flaky results:
/usr/lib/nagios/plugins/check_snmp -H 10.0.0.35 -C public \ .1.3.6.1.4.1.9.5.1.1.8 SNMP problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 10.0.0.35:161
Those of you, who read the excerpts carefully will notice the difference between snmpwalk and the OID I passed on to check_snmp.
The point being, the OID’s Cisco gave in their Design tech notes are either old, or just not accurate at all. After passing on the .0 to each value given by Cisco, the check_snmp is all honky dory and integrated into Nagios.
As usual, the Nagios definitions are further down, for those interested. More >
Setting up the BladeCenter H
Jan 28th
Well, we finally had our maintenance window today, in which we planned the hardware exchange for our current Dell Blade Chassis (don’t ask!). The exchange went fine, but as we started exploring the components (like the IBM BladeCenter SAN switches — which are in fact Cisco MDS 9100) we hit a few road blocks.
First, the default user name/password combo for the Cisco MDS 9100 for the BladeCenter is USERID/PASSW0RD (just as the rest of the password combinations).
Next, we started tinkering around with the Catalyst Switch modules. A hint to myself:
Whenever setting up the switch via the WebGUI, make sure you setup both passwords. The password for the switch itself (when prompted by the WebGUI, enter “admin” as well as the password you just entered.
Now, you should be able to connect to the switch with telnet and be able to access the EXEC mode (and unlike me who struggled ~30 minutes till one of my trainees told me to enter a switch password — out of curiosity).
Now, here the list of commands I needed to setup the switch’s “basics”:
service password-encryption username admin privilege 15 password 0 <password> clock timezone CET 1 clock summer-time CET recurring last Sun Mar 2:00 last Sun Oct 3:00 ip domain-name home.barfoo.org ip name-server 10.0.0.2 ip name-server 10.0.0.1 line con 0 login local line vty 0 4 password <password> login local line vty 5 15 password <password> login ntp server 160.45.10.8