Re: sysUpTimeInstance vs sysUpTime.0

2009-05-09 Thread Peter Hicks
Dave Shield wrote: 2009/5/7 Peter Hicks peter.hi...@poggs.co.uk: 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

Re: sysUpTimeInstance vs sysUpTime.0

2009-05-08 Thread Dave Shield
2009/5/7 Peter Hicks peter.hi...@poggs.co.uk: 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

sysUpTimeInstance vs sysUpTime.0

2009-05-07 Thread Peter Hicks
Hello How should the retrieval of sysUpTime.0 be handled in SNMP.pm? DISMAN-EVENT-MIB defines sysUpTime.0 as sysUpTimeInstance, which appears to confuse SNMP.pm, returning a VarBind without an instance: $VAR1 = bless( [ 'sysUpTimeInstance', '',

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',

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 intended behaviour?