|[Date Prev] [Date Next]||[Thread Prev] [Thread Next]||[Date Index] [Thread Index]|
Re: [snips-users] snmpmon-collector and cisco for uptime
On Fri, Apr 22, 2005 at 11:05:39AM -0400, Allan P. Magmanlac wrote: > Hello, > I'm trying to query our dialup terminal access server using snmp > packages that comes with snips. > It works from the command line. > server# ./snmpget dts.fakedomain.ca fakecommunity system.sysUpTime.0 > Name: system.sysUpTime.0 -> Timeticks: (34057798) 3 days, 22:36:17 > > [...] > > I modified a little bit the snmpmon-collector... > $MIBENTERPRISE = ".iso.org.dod.internet.private.enterprises" > In the "sub init_system" I specified > my $prefix = "$MIBENTERPRISE" > > [...] > > My question is what is the full correct identifier for system.sysUpTime.0. Well, assuming you're trying to query: SNMPv2-MIB::sysUpTime.0 ...that should be: .iso.org.dod.internet.mgmt.mib-2.system.sysUpTime.0 AKA .188.8.131.52.184.108.40.206.0 The "private enterprises" tree (eg. ucdavis, netsnmp, etc) does not come with an "uptime" equivalent that I know of... though you have things like swap and cpu in there, along with a couple other IO data points. (you can always do an snmpwalk of MIBs... though it's best that you redirect that to a file for later perusing... *wink*) snmpwalk -c community -O f host.domain.tld . Hope that helps... Russell -- Russell M. Van Tassell russell at loosenut com All power corrupts, but we need electricity.