Snmpset with Perl problem

This is a discussion on Snmpset with Perl problem within the SNMP Coders forums, part of the Networking and Network Related category; This works with CISCO-VTP-MIB.my ->> rchadda@office1:~/mibs$ snmpset -v 1 -c public x.x.x....


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2005
rchadda@gmail.com
 
Posts: n/a
Default Snmpset with Perl problem

This works with CISCO-VTP-MIB.my ->>

rchadda@office1:~/mibs$ snmpset -v 1 -c public x.x.x.x
vtpVlanEditDot10Said.1.22 x 000186B6

But can't get the Perl Syntax right :((

$varbind = new
SNMP::Varbind(['vtpVlanEditDot10Said',1.22,'0x000186B6','x']);
$session->set($varbind);
if ($session->{'ErrorNum'}) {
print "DBG: SNMP error: " . $session->{'ErrorStr'} . "\n";

}

says:
DBG: SNMP error: (badValue) The value given has the wrong type or
length.

Please help.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:00 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0