Hi,
We have Steelhead SH and EX on our network. Script works perfectly with Steelhead SH and doesnt work with EX, because the difference of the product OID. Steelhead SH product OID is 1.3.6.1.4.1.17163.1.1 and EX is 1.3.6.1.4.1.17163.1.51.
So, I did some changes in the script to allow query our EX appliances and other changes:
- I reversed the variables in|out lan|wan (ex.: inlan --> outlan), because they are different from MIB objects (OIDs match, but object names doesnt match):
'outlan' => RB_OID . 1.3.6.1.4.1.17163.1.1.5.3.1.1.0 snmpwalk -v2c -c xxx x.x.x.x STEELHEAD-MIB::bwAggInLan.0 -On .1.3.6.1.4.1.17163.1.1.5.3.1.1.0 = Counter32: 1596998214
'outwan' => RB_OID . 1.3.6.1.4.1.17163.1.1.5.3.1.2.0
snmpwalk -v2c -c xxx x.x.x.x STEELHEAD-MIB::bwAggInWan.0 -On
.1.3.6.1.4.1.17163.1.1.5.3.1.2.0 = Counter32: 3418500597
'inlan' => RB_OID . 1.3.6.1.4.1.17163.1.1.5.3.1.3.0
snmpwalk -v2c -c xxx x.x.x.x STEELHEAD-MIB::bwAggOutLan.0 -On
.1.3.6.1.4.1.17163.1.1.5.3.1.3.0 = Counter32: 3080052720
'inwan' => RB_OID . 1.3.6.1.4.1.17163.1.1.5.3.1.4.0
snmpwalk -v2c -c xxx x.x.x.x STEELHEAD-MIB::bwAggOutWan.0 -On
.1.3.6.1.4.1.17163.1.1.5.3.1.4.0 = Counter32: 2321425969
I reversed the variables peers_ip and peers_host, same as previous change
'peers_ip' => RB_OID . '.2.6.1.1.2'(returns peerHostName, not an IP)
snmpwalk -v2c -c xxx x.x.x.x 1.3.6.1.4.1.17163.1.1.2.6.1.1.2
STEELHEAD-MIB::peerHostname.1 = STRING: "xxxxx"
'peers_host' => RB_OID . '.2.6.1.1.4'(returns peerAddress, not a hostname)
snmpwalk -v2c -c xxx x.x.x.x 1.3.6.1.4.1.17163.1.1.2.6.1.1.4
STEELHEAD-MIB::peerAddress.1 = IpAddress: x.x.x.x"
So, 'peers_ip' => RB_OID . '.2.6.1.1.4' and 'peers_host' => RB_OID . '.2.6.1.1.2 '
- I included Steelhead EX OIDs into RB_OID constant 'ex' => '1.3.6.1.4.1.17163.1.51'
- I included "-m" option to choose appliance model. Available models are sh (default) and ex
Thats all... Thanks for this project
Ricardo
- check_riverbed_status.patch 1.85KB
Status: New
Labels:
Type-Defect
Priority-Medium