in reply to SNMP from script conflicts with snmpwalk

The docs suggest that you want:

my $vars = new SNMP::VarList(['svPrintQName',0], ['svPrintQNumJobs',0], ['svShareComment',0]);

Specifically, the line that says "for scalar MIB objects use '0' "


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon

Replies are listed 'Best First'.
Re^2: SNMP from script conflicts with snmpwalk
by monarch (Priest) on Nov 14, 2005 at 22:47 UTC
    When taking the time to read the author's post, and browsing the MIB provided, it can be seen that the objects being requested are columnar, not scalar objects.

    Thus the author's code is correct, there should not be a .0 suffix when getnexting these columnar objects.

Re^2: SNMP from script conflicts with snmpwalk
by bowei_99 (Friar) on Nov 14, 2005 at 21:16 UTC
    > Specifically, the line that says "for scalar MIB objects use '0' "

    I tried that, still the same thing. I tried putting in 0 (as idsfa suggested), as well as '0', and 1, and same results.