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