NolanPL has asked for the wisdom of the Perl Monks concerning the following question:
Server, Login, Pass all X'd Out for privacy reasons Also, the SNMP Session is created correctly, and I have been able to do a simple get request to retrieve the uptime of the remote system. So I believe that it is not a problem with the SNMP creation.($session, $error) = Net::SNMP->session( -hostname => $ip, -port => $port, -version => $version, -timeout => $seconds, -retries => $retry, -username => $username, -authpassword => $authpasswd, -authprotocol => $authproto, -privpassword => $privpasswd, -privprotocol => $privproto, ); die "Problem creating SNMP \n $error" if($error); #MIB Objects my $TransferServerOID = '.1.3.6.1.4.1.576.25.1.2.2.1'; my $TransferLoginNameOID = '.1.3.6.1.4.1.576.25.1.2.2.2'; my $TransferPasswordOID = '.1.3.6.1.4.1.576.25.1.2.2.3'; my $TransferCommandOID= '.1.3.6.1.4.1.576.25.1.2.2.7'; my $TransferManifestOID= '.1.3.6.1.4.1.576.25.1.2.2.8'; #Values to assign to MIB OBjects my $TransferServer = 'XXXXXX' ; my $TransferLogin = 'XXXXXX'; my $TransferPass = 'XXXXXXX'; my $TransferCommand = 1; #Set MIB Objects my $result = $session->set_request( -varbindlist =>[ ($TransferServerOID,OCTET_STRING,$T +ransferServer), ($TransferLoginNameOID,OCTET_STRING +,$TransferLogin), ($TransferPasswordOID,OCTET_STRING, +$TransferPass), ($TransferCommandOID,'HmsSysCommand +Type',$TransferCommand), ($TransferManifestOID,OCTET_STRING, +$wamfile), ]); die "SNMP Failure... $!" unless (defined($result));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SNMP Problem
by NetWallah (Canon) on Jul 02, 2008 at 18:33 UTC | |
|
Re: Net::SNMP Problem
by monarch (Priest) on Jul 02, 2008 at 22:37 UTC | |
by monarch (Priest) on Jul 02, 2008 at 22:44 UTC | |
|
Re: Net::SNMP Problem
by glide (Pilgrim) on Jul 04, 2008 at 17:20 UTC |