perl snmp set does not work for certain OID
"michael kapelko" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I do:
my $var = new SNMP::Varbind(['1.3.6.1.4.1.43.10.22.1.1.6.1.10', 0, 3]);
my $var = new SNMP::Varbind(['1.3.6.1.4.1.43.10.22.1.1.6.1.10',
'1.3.6.1.4.1.43.10.22.1.1.6.1.10', 3]);
$session->set(var) or die "$session->{ErrorStr}";
(port MACs number for 3Com switch)
And perl only complains: 'Bad variable type at line where i do $session->set'.
The same string for oid '1.3.6.1.2.1.2.2.1.7.10' (port adm stat) works fine.
What is wrong?
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users