Managing SNMP
Simple Network Management Using Net-SNMP and ftlSNMP
8-23
Testing Ethernet Ports
You can test Ethernet ports for proper traps and changes to OIDs. On an ftServer
system running a supported Linux
distribution together with
Express Builder
, Ethernet
ports are
uniquely identified.
When testing cable pulls or bringdowns, the system should generate traps, and the
data that Express5800/
ftServer
MIB objects returned should reflect these changes.
One approach is to set up an
snmptrapd
on a Linux system to verify the traps as
they are generated (see
‘‘Verifying Traps’’ on page 8-146
) and to run
snmpwalk
on
the SRA-ftLinux-MIB file before and after a fault insertion to verify object data changes.
A
diff
of these two walks will reveal changes that Express5800/
ftServer
MIB objects
return.
Example: Testing Ethernet Ports
The following example demonstrates how to test Ethernet ports. The example assumes
dual-port 10/100/1000-Mbps Ethernet PCI adapters installed in slot 1 of both CPU-I/O
enclosures. First, determine the instance name of the Ethernet device and which slot it
is in:
1. Run an
snmpwalk
on
ftcEtherInstanceName
OID. This gives you a list of
EtherInstance
names mapped to Ethernet device names:
#
snmpwalk -v 1 -c private -t 40 localhost
ftcEtherInstanceName
SRA-ftLinux-MIB::ftcEtherInstanceName.1 = STRING: "lo"
SRA-ftLinux-MIB::ftcEtherInstanceName.2 = STRING: "sit0"
SRA-ftLinux-MIB::ftcEtherInstanceName.3 = STRING: "eth080010"
SRA-ftLinux-MIB::ftcEtherInstanceName.4 = STRING: "eth080011"
SRA-ftLinux-MIB::ftcEtherInstanceName.5 = STRING: "eth000010"
SRA-ftLinux-MIB::ftcEtherInstanceName.6 = STRING: "eth000011"
2. Run an
snmpwalk
on
ftcEtherDevPathID
OID. This gives you a list of
EtherDevPath
names mapped to
EtherInstance
names:
#
snmpwalk -v 1 -c private -t 40 localhost ftcEtherDevPathID
SRA-ftLinux-MIB::ftcEtherDevPathID.1 = STRING: "[unknown]"
SRA-ftLinux-MIB::ftcEtherDevPathID.2 = STRING: "[unknown]"
SRA-ftLinux-MIB::ftcEtherDevPathID.3 = STRING: "[10/5]"
SRA-ftLinux-MIB::ftcEtherDevPathID.4 = STRING: "[10/5]"
SRA-ftLinux-MIB::ftcEtherDevPathID.5 = STRING: "[11/5]"
SRA-ftLinux-MIB::ftcEtherDevPathID.6 = STRING: "[11/5]"