06-06-2005 11:30 AM
Is there a way to associate the OIDs for real server IP addresses witht he OID of the server farm that the servers belong to?
I was using snmpwalk to list the server farms and real IP addresses.
Thanks for any clue.
06-07-2005 06:37 AM
slbRealTableEntry OBJECT-TYPE
SYNTAX SlbRealTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION
"Information about a particular real server in a
particular server farm, served by a particular local
SLB entity. "
INDEX {
slbEntity,
slbRealServerFarmName,
slbRealIpAddress,
slbRealPort
}
::= { slbRealTable 1 }
Is this something you can use ?
Didn't try it myself but looks like realip and serverfarmname appear together.
Gilles.
06-07-2005 07:39 AM
As you can see from the attribute:
MAX-ACCESS not-accessible
this information about server farm name is not readable with snmpwalk.
I am looking for alternative method to find this information.
Thanks
Srinivas
06-07-2005 10:13 PM
Hi Srinivas,
this is normal behaviour as the OID Gilles mentioned is only the anchor for this table. In other words you'Ve to query something like:
1.3.6.1.4.1.9.9.161.1.3.1.1.2 which is
slbRealTable.slbRealTableEntry.slbRealIpAddress
Looking at the ASN.1 definiton of the MIB it shows you which objects you can access:
-- *************************************************************
-- * *
-- * SLB - Real Server Table *
-- * *
-- *************************************************************
slbRealTable OBJECT-TYPE
SYNTAX SEQUENCE OF SlbRealTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "A table of real servers. Columnar objects can be
modified when the row is 'active'. Rows can be created
and destroyed. Entries are added to this table via
slbRealRowStatus in accordance with the RowStatus
convention."
::= { slbRealServers 1 }
slbRealTableEntry OBJECT-TYPE
SYNTAX SlbRealTableEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION "Information about a particular real server in a
particular server farm, served by a particular local
SLB entity. "
INDEX {
slbEntity,
slbRealServerFarmName,
slbRealIpAddress,
slbRealPort
}
::= { slbRealTable 1 }
SlbRealTableEntry ::= SEQUENCE {
slbRealServerFarmName SlbServerString,
slbRealIpAddress IpAddress,
slbRealPort CiscoPort,
slbRealState SlbRealServerState,
slbRealNumberOfConnections Gauge32,
slbRealNumberOfDummyConnections Unsigned32,
slbRealMaxConnections Unsigned32,
slbRealAdminWeight Unsigned32,
slbRealOperWeight Gauge32,
slbRealMetric Gauge32,
slbRealReassign Unsigned32,
slbRealRetryInterval TimeInterval,
slbRealFailedConnections Unsigned32,
slbRealFailedClients Unsigned32,
slbRealConsecutiveFails Gauge32,
slbRealTotalFails Counter32,
slbRealRowStatus RowStatus,
slbRealTotalConnections Counter32,
slbRealHCTotalConnections Counter64
}
For more details have a look at http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=CISCO-SLB-MIB
Maybe you can find some more usefull OIDs in this MIB.
Kind Regards,
Joerg
06-08-2005 05:43 AM
that object, or the table works for me
snmpwalk -v 2c -c cisco 10.86.213.37 1.3.6.1.4.1.9.9.161.1.3.1
SNMPv2-SMI::enterprises.9.9.161.1.3.1.1.4.0.5.76.73.78.85.88.192.168.30.27.0 = INTEGER: 2
The ip address is 192.168.30.27 , the port is 0 [not set] and the serverfarm name is
76.73.78.85.88
L I N U X
Gilles.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide