Re: sysUpTimeInstance vs sysUpTime.0

2009-05-09 Thread Peter Hicks
Dave Shield wrote: > 2009/5/7 Peter Hicks : > >> What I did was to check for an instance in the returned VarBind, and if >> there's no instance, convert the OID to numeric format, lop off the last >> element (in this case, "0") and use that as the instance, then convert >> the OID back to text. >

Re: sysUpTimeInstance vs sysUpTime.0

2009-05-08 Thread Dave Shield
2009/5/7 Peter Hicks : > What I did was to check for an instance in the returned VarBind, and if > there's no instance, convert the OID to numeric format, lop off the last > element (in this case, "0") and use that as the instance, then convert > the OID back to text. Another possibility would be

Re: sysUpTimeInstance vs sysUpTime.0

2009-05-07 Thread Peter Hicks
Mike Ayers wrote: >> From: Peter Hicks [mailto:peter.hi...@poggs.co.uk] >> Sent: Thursday, May 07, 2009 5:53 AM > >> DISMAN-EVENT-MIB defines sysUpTime.0 as sysUpTimeInstance, >> which appears to confuse SNMP.pm, returning a VarBind without >> an instance... >> >> [snip] >> >> Is this inten

RE: sysUpTimeInstance vs sysUpTime.0

2009-05-07 Thread Mike Ayers
> From: Peter Hicks [mailto:peter.hi...@poggs.co.uk] > Sent: Thursday, May 07, 2009 5:53 AM > DISMAN-EVENT-MIB defines sysUpTime.0 as sysUpTimeInstance, > which appears > to confuse SNMP.pm, returning a VarBind without an instance: > > $VAR1 = bless( [ > 'sysUpTimeInstance', >