Re: A problem with $session->set (fwd)

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 07/11/2007, Raul Miguel Nery Ferreira Sa <[email protected]> wrote:
> I'm using the module net-snmp-perl and i am trying to do a 'set' in a router
> using the '$session->set($variable)' function. The parameter that i pass to
> this function is a scalar $variable that contains something like this:
>
> $variable = "sysName.0, Raul de Sá";
>
>  The thing is everytime i do this it gives a wrongLength error.

The first question is to determine whether this is an issue
with the remote agent, or the perl processing.

Try running the equivalent "snmpset" command - i.e.

    snmpset  .... sysName.0 s "Raul de Sá"

Does that succeed or not?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.