cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1351
Views
0
Helpful
2
Replies

Cannot access any of SLB OIDs on the router agent.

abdel_n
Level 1
Level 1

I need to retrieve SLB MIB variables from a router agent:

The snmpwalk  snmpwalk -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 works

 

$ snmpwalk -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 

SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(24)T2, RELEASE SOFTWARE(fc2)
...

 

But I can access neither tables through snmptable nor columnar object inside table through snmpget nor scalar objects of any SLB MIB.

 

I have tried both named and numerical OIDs:

 

snmpget -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 CISCO-SLB-MIB::slbStatsCreatedConnections
CISCO-SLB-MIB::slbStatsCreatedConnections = No Such Object available on this agent at this OID

other examples:

slbStatsTable

snmptranslate -On CISCO-SLB-MIB::slbStatsTable
.1.3.6.1.4.1.9.9.161.1.1.1
snmptable -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 .1.3.6.1.4.1.9.9.161.1.1.1
Was that a table? SNMPv2-SMI::enterprises.9.9.161.1.1.1

 

slbStatsCreatedConnections

snmptranslate -On CISCO-SLB-MIB::slbStatsCreatedConnections
.1.3.6.1.4.1.9.9.161.1.1.1.1.6
snmpget -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 .1.3.6.1.4.1.9.9.161.1.1.1.1.6
SNMPv2-SMI::enterprises.9.9.161.1.1.1.1.6 = No Such Object available on this agent at this OID

- If downloaded MIB files are only supposed to describe the data base controlled by the SNMP agent,

ls /usr/share/mibs/*SLB*.mib
/usr/share/mibs/CISCO-ENHANCED-SLB-CAPABILITY.mib     /usr/share/mibs/CISCO-GSLB-TC-MIB.mib
/usr/share/mibs/CISCO-ENHANCED-SLB-MIB.mib            /usr/share/mibs/CISCO-SLB-CAPABILITY.mib
/usr/share/mibs/CISCO-GSLB-DNS-CAPABILITY.mib         /usr/share/mibs/CISCO-SLB-DFP-MIB.mib
/usr/share/mibs/CISCO-GSLB-DNS-MIB.mib                /usr/share/mibs/CISCO-SLB-EXT-CAPABILITY.mib
/usr/share/mibs/CISCO-GSLB-HEALTH-MON-CAPABILITY.mib  /usr/share/mibs/CISCO-SLB-EXT-MIB.mib
/usr/share/mibs/CISCO-GSLB-HEALTH-MON-MIB.mib         /usr/share/mibs/CISCO-SLB-HEALTH-MON-CAPABILITY.mib
/usr/share/mibs/CISCO-GSLB-SYSTEM-CAPABILITY.mib      /usr/share/mibs/CISCO-SLB-HEALTH-MON-MIB.mib
/usr/share/mibs/CISCO-GSLB-SYSTEM-MIB.mib             /usr/share/mibs/CISCO-SLB-MIB.mib

so why I cannot find them when I snmpwalk the router?

$ snmpwalk -u v3user -A v3authpass -a SHA -l authPriv -X v3authpass 192.168.5.202 -v3 

SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 12.4(24)T2, RELEASE SOFTWARE(fc2)
...

I cannot see such OID .1.3.6.1.4.1.9.9.161.1.1.1.1.6 from the output below, not any of the SLB OIDs.

 

I am missing something crucial here.

Any ideas?

 

Thanks in advance.

2 Replies 2

Vinod Arya
Cisco Employee
Cisco Employee

Try to poll the device the first of the tree of SLB-MIB OID # ciscoSlbMIB (1.3.6.1.4.1.9.9.161) and see if it brings anything inside SLB-MIB.

Along with this MIB try using CISCO-SLB-EXT-MIB. This MIB extends the SLB management functionality in the CISCO-SLB-MIB. The Cisco Content Switching Module (CSM) product is the first SLB product to support this MIB.

Also, using CISCO-ENHANCED-SLB-MIB can be helpful. This MIB extends the tables that are defined in CISCO-SLB-MIB and CISCO-SLB-EXT-MIB and supports the following server load-balancing functions:
•A real server configuration with a real server that is identified by a name.

•The current state of the real server (for example, OPERATIONAL, OUT-OF-SERVICE, PROBE-FAILED).

•A real server configuration in a server farm.

•Real server locality (UNKNOWN, LOCAL, or REMOTE) for the dynamic capacity expansion feature (cesRserverLocality).

•A health probe configuration in a real server and server farm.

•Health probe statistics for each real server.

•A sticky configuration for an HTTP header, an HTTP cookie and client IP address, and Secure Socket Layer (SSL). The slbEntity Index used in the table is the slot number of the ACE.

The cesRserverProbeTable table in the CISCO-ENHANCED-SLB-MIB provides details about the real server probe statistics available in the show probe detail command output. The cesServerFarmRserverTable and cesRserverTable tables in the CISCO-ENHANCED-SLB-MIB provide details about the data available in the show rserver command output.

-Thanks

Vinod

 

-Thanks Vinod **Rating Encourages contributors, and its really free. **

Thanks Vinod for your reply.

 

I switched to snmpv2, looks like help the GUI browser to get some scalab objects, but still cannot retrieve any table through snmptables (0 row)

 

From CLI snmp:

 

  • Can get any scalar variables

  • tables and their tabular objects return the ame result:

 

cesServerFarmName

 

 

$ snmpbulkget -m + -v 2c -c cisco 192.168.5.202 CISCO-ENHANCED-SLB-MIB::cesServerFarmRserverTable 

CISCO-SMI::ciscoMgmt.484.1.1.1.0 = Gauge32: 1

CISCO-SMI::ciscoMgmt.484.1.1.2.0 = INTEGER: 1

CISCO-SMI::ciscoMgmt.484.1.1.3.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.4.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.5.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.6.0 = INTEGER: 3

CISCO-SMI::ciscoMgmt.484.1.1.7.0 = Gauge32: 21862

CISCO-SMI::ciscoMgmt.484.1.1.8.0 = Gauge32: 20

CISCO-SMI::ciscoMgmt.484.1.1.9.0 = Gauge32: 60

CISCO-SMI::ciscoMgmt.484.1.1.10.0 = Gauge32: 180


$ snmpbulkget -m + -v 2c -c cisco 192.168.5.202 CISCO-ENHANCED-SLB-MIB::cesServerFarmName 

CISCO-SMI::ciscoMgmt.484.1.1.1.0 = Gauge32: 1

CISCO-SMI::ciscoMgmt.484.1.1.2.0 = INTEGER: 1

CISCO-SMI::ciscoMgmt.484.1.1.3.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.4.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.5.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.6.0 = INTEGER: 3

CISCO-SMI::ciscoMgmt.484.1.1.7.0 = Gauge32: 21862

CISCO-SMI::ciscoMgmt.484.1.1.8.0 = Gauge32: 20

CISCO-SMI::ciscoMgmt.484.1.1.9.0 = Gauge32: 60

CISCO-SMI::ciscoMgmt.484.1.1.10.0 = Gauge32: 180


cesRserverProbeTable


$ snmpbulkget -m + -v 2c -c cisco 192.168.5.202 CISCO-ENHANCED-SLB-MIB::cesRserverProbeTable 

CISCO-SMI::ciscoMgmt.484.1.1.1.0 = Gauge32: 1

CISCO-SMI::ciscoMgmt.484.1.1.2.0 = INTEGER: 1

CISCO-SMI::ciscoMgmt.484.1.1.3.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.4.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.5.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.6.0 = INTEGER: 3

CISCO-SMI::ciscoMgmt.484.1.1.7.0 = Gauge32: 21862

CISCO-SMI::ciscoMgmt.484.1.1.8.0 = Gauge32: 20

CISCO-SMI::ciscoMgmt.484.1.1.9.0 = Gauge32: 60

CISCO-SMI::ciscoMgmt.484.1.1.10.0 = Gauge32: 180


$ snmptable -m + -v 2c -c cisco 192.168.5.202 CISCO-ENHANCED-SLB-MIB::cesRserverProbeTable 

CISCO-ENHANCED-SLB-MIB::cesRserverProbeTable: No entries


$ snmpbulkget -m + -v 2c -c cisco 192.168.5.202 CISCO-ENHANCED-SLB-MIB::cesRserverProbeTable 

CISCO-SMI::ciscoMgmt.484.1.1.1.0 = Gauge32: 1

CISCO-SMI::ciscoMgmt.484.1.1.2.0 = INTEGER: 1

CISCO-SMI::ciscoMgmt.484.1.1.3.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.4.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.5.0 = INTEGER: 2

CISCO-SMI::ciscoMgmt.484.1.1.6.0 = INTEGER: 3

CISCO-SMI::ciscoMgmt.484.1.1.7.0 = Gauge32: 21862

CISCO-SMI::ciscoMgmt.484.1.1.8.0 = Gauge32: 20

CISCO-SMI::ciscoMgmt.484.1.1.9.0 = Gauge32: 60

CISCO-SMI::ciscoMgmt.484.1.1.10.0 = Gauge32: 180

 

 

SNMP browser

 

  • Can get any scalar variables

  • But not any tabular objects inside tables, all tables return 0 row

 

From SNMP walk I can see some inf. Related to real servers (10.0.0.X) like their IP, ARP, but nothing related to server farms, statistics or connections:

 

IP-MIB::ipNetToMediaIfIndex.2.10.0.0.1 = INTEGER: 2

IP-MIB::ipNetToMediaIfIndex.2.10.0.0.2 = INTEGER: 2

IP-MIB::ipNetToMediaIfIndex.2.10.0.0.3 = INTEGER: 2

…

IP-MIB::ipNetToMediaPhysAddress.2.10.0.0.1 = STRING: 5a:4a:ef:ae:c1:77

IP-MIB::ipNetToMediaPhysAddress.2.10.0.0.2 = STRING: 1e:71:d6:34:b8:42

IP-MIB::ipNetToMediaPhysAddress.2.10.0.0.3 = STRING: 6a:f7:ba:e4:93:ae

…

IP-MIB::ipNetToMediaNetAddress.2.10.0.0.1 = IpAddress: 10.0.0.1

IP-MIB::ipNetToMediaNetAddress.2.10.0.0.2 = IpAddress: 10.0.0.2

IP-MIB::ipNetToMediaNetAddress.2.10.0.0.3 = IpAddress: 10.0.0.3

 

and these hex-string, that I cannot decode:

 

 

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.1 = Hex-STRING: 5A 4A EF AE C1 77

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.2 = Hex-STRING: 1E 71 D6 34 B8 42

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.3 = Hex-STRING: 6A F7 BA E4 93 AE

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.4 = Hex-STRING: 9A 8E 94 BA 18 F2

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.5 = Hex-STRING: 22 3A 5A 8B 14 1B

SNMPv2-SMI::mib-2.3.1.1.2.2.1.10.0.0.6 = Hex-STRING: 3A 10 B0 6C B8 35

...

 

From GUI snmp browser:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

cannot get tabular objects because there is no rows (instances) :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Though everything works fine on the router

 

SLB#show ip slb reals 


real server farm weight state conns

-------------------------------------------------------------------

10.0.0.1 DCFARM 8 OPERATIONAL 9

10.0.0.2 DCFARM 8 OPERATIONAL 8

10.0.0.3 DCFARM 8 OPERATIONAL 9

...



SLB#show ip slb stats

Pkts via normal switching: 2922

Pkts via special switching: 0

Connections Created: 1406

Connections Established: 0

Connections Destroyed: 1049

Connections Reassigned: 0

Zombie Count: 0


SLB#show ip slb vservers 


slb vserver prot virtual state conns

-------------------------------------------------------------------

VSRVNAME UDP 66.66.66.66:5555 INSERVICE 1295


SLB#show ip slb serverfarms 


server farm predictor nat reals bind id

---------------------------------------------------

DCFARM ROUNDROBIN S 50 0

SLB#show ip slb conns


vserver prot client real state nat

-------------------------------------------------------------------------------

VSRVNAME UDP 172.97.223.198:53 10.0.0.46 ESTAB S

VSRVNAME UDP 115.37.222.25:53 10.0.0.45 ESTAB S

VSRVNAME UDP 101.37.222.117:53 10.0.0.28 ESTAB S

VSRVNAME UDP 33.241.217.78:53 10.0.0.24 ESTAB S

...

SLB#

 

(N.B. client IP are randomly generated)