Re: Net::SNMP

2017-04-23 Thread lee
henticated via the acl. He doesn't need a password. Net::SNMP gives an error message that password must be specified while snmpget works without one. What's behind that, and why didn't the acl apply to requests made with snmpget? (Maybe it applies to the given user only when a pas

Re: Net::SNMP

2017-04-23 Thread Илья Рассадин
Hi! It looks like the password issue, maybe password is incorrect or not set properly? This value (16) can be stored on the device. Did you try to reboot host.example.com and see the value of usmStatsWrongDigest counter? 23.04.17 6:30, lee пишет: Hi, Net::SNMP only gives a useless

Net::SNMP

2017-04-22 Thread lee
Hi, Net::SNMP only gives a useless error message "ERROR: Received usmStatsWrongDigests.0 Report-PDU with value 16 during synchronization." with the number (16) increasing by 1 every time I run the program? What is this supposed to tell me? How is it possible for the number to be incr

net::snmp and fetching extend data

2011-02-09 Thread Joseph L. Casale
I am trying to write a script that takes the extend name as an arg and retrieves the output for further processing. I am not sure how to do this, get_request() needs a numeric oid, is there a way around this or is get_request() not the best way to do this? Thanks for any help, jlc -- To unsubscr

Re: Net::SNMP OID doubt

2009-11-18 Thread Venkat Saranathan
; Is it correct ?. Can i replace the string with this decimal values ?. > > Shammi > > > > - Original Message > > From: Shameem Ahamed > > To: beginners@perl.org > > Sent: Wed, November 18, 2009 6:36:42 PM > > Subject: Net::SNMP OID doubt > >

Re: Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
Hi, Thanks for the replies. I asked in this list, because initially i thought it was a problem with the Net::SNMP module. Sorry for the same. I have one more doubt. Is there any tool, which i can use for automatically converting this strings to OIDs. Regards, Shammi - Original Message

RE: Net::SNMP OID doubt

2009-11-18 Thread Hack, Gabi (ext)
> From: Shameem Ahamed [mailto:shameem.aha...@yahoo.com] > > SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 > > Is it correct ?. Can i replace the string with this decimal values ?. > It's the wrong list for your question, but yes, you can substitute all names with the corresponding OIDs (

Re: Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
November 18, 2009 6:36:42 PM > Subject: Net::SNMP OID doubt > > Hi All, > > I am trying to create a script to get the logical disk status using Net::SNMP. > > My snmpget query is > > snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 > SNMPv2-SMI::enterpri

Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In this , OID part is SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In the Net::SNMP

Re: Retrieving Bit-Field/Hex-String with Perl/Net-SNMP

2009-01-05 Thread Peter Daum
Again: this is _not_ referring to the "Net::SNMP" module (http://search.cpan.org/~dtown/Net-SNMP-5.2.0/lib/Net/SNMP.pm) but to Net-SNMP (the corresponding Perl module is just "SNMP") (http://net-snmp.sourceforge.net/docs/perl-SNMP-README.html) (The similar names certainly cau

Re: Retrieving Bit-Field/Hex-String with Perl/Net-SNMP

2009-01-05 Thread Rob Dixon
Peter Daum wrote: > > I am trying to retrieve a bit vector containing the error status of > a printer with the Net-SNMP module. > > With the command line snmpget program, this works: > > # snmpget -v1 -cpublic printer .1.3.6.1.2.1.25.3.5.1.2.1 > HOST-RESOURCES-MIB::hrPri

Retrieving Bit-Field/Hex-String with Perl/Net-SNMP

2009-01-05 Thread Peter Daum
Hi, I am trying to retrieve a bit vector containing the error status of a printer with the Net-SNMP module. With the command line snmpget program, this works: # snmpget -v1 -cpublic printer .1.3.6.1.2.1.25.3.5.1.2.1 HOST-RESOURCES-MIB::hrPrinterDetectedErrorState.1 = Hex-STRING: 00 With the

RE: Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Bobby Jafari
e: Problems with set-request NET::SNMP - retransmited On Oct 5, Bobby Jafari said: > 1 $result = $session->set_request ( > 2 -varbindlist => [ "${secPvcBulkModeOid}.${nextVcatIndex}" , > INTEGER, "1", [...] > 9# "${secPvcUpdate

Re: Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Jay Savage
re hour and minutes in Hex format. My guess is > > that the set-request is expecting a string but somehow PERL is passing > > it as ASCI characters or ... > > Try sending it as "# 10 1" and see if it works. The Net::SNMP docs only > show ONE example of using OCTET_ST

Re: Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Jeff 'japhy' Pinyan
ording to the MIB definition, it should be in the form of # 0xHH 0xMM Where HH and MM are hour and minutes in Hex format. My guess is that the set-request is expecting a string but somehow PERL is passing it as ASCI characters or ... Try sending it as "# 10 1" and see if it works. T

Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Bobby Jafari
Hello All, I have a rather strange problem. I am doing the following: 1 $result = $session->set_request ( 2 -varbindlist => [ "${secPvcBulkModeOid}.${nextVcatIndex}" , INTEGER, "1", 3 "${secPvcActionTypeOid}.${nextVcatIndex}" , INTEGER, "$actionType", 4

Problems with set-request NET::SNMP

2005-10-05 Thread Bobby Jafari
Hello All, I have a rather strange problem. I am doing the following: 1 $result = $session->set_request ( 2 -varbindlist => [ "${secPvcBulkModeOid}.${nextVcatIndex}" , INTEGER, "1", 3"${secPvcActionTypeOid}.${nextVcatIndex}" , INTEGER, "$actionType", 4

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Chris Devers
On Wed, 8 Sep 2004, Geetha B wrote: But I want to write this as a package/interface file . Please could you guide/direct me to writing a simple/sample perl package (sample.pm) & then testing it. Sorry, I'm afraid I can't do that. This list exists to help people get past the obstacles of learning

Re: Net::SNMP session creating problem : develop this as a pakage file

2004-09-08 Thread Geetha B
) SNMPgetResult = $snmpInstance->snmpget(arguments) Please do guide Thanks, Geetha On Tue, 2004-09-07 at 19:50, Chris Devers wrote: > On Tue, 7 Sep 2004, Geetha B wrote: > > > ($session, $error) = Net::SNMP->session( > > -hostname => shift || 'loc

Re: Net::SNMP session creating problem

2004-09-07 Thread Chris Devers
On Tue, 7 Sep 2004, Geetha B wrote: ($session, $error) = Net::SNMP->session( -hostname => shift || 'localhost', -community => shift || 'public', -port => shift || 161 ); It may be a dead end, but it may help to define these items as temp vari

Net::SNMP session creating problem

2004-09-06 Thread Geetha B
Hi , I'm using NET::SNMP perl package to send do SNMP operations. This requires establishing snmp session. upon calling create session , I'm getting error "ERROR: Unknown error creating socket." The code which gives the above

Performance of Net::SNMP

2003-01-16 Thread Wim
Hi all! I'm some writing scripts using the module Net::SNMP. Is this module a performant one, or are there faster ones available? I tried the SNMP module that uses Net_SNMP, but the last version is from 2000 and I could get it installed... Thanx! Wim -- To unsubscribe, e-mail: [

Re: Feeling a bit 'trapped' by Net::SNMP

2002-12-23 Thread Rob Dixon
ge [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > I hope my question isn't too specific for this list. I'm still learning > the basic concepts of SNMP, but I need my current script to send an SNMP > trap to a host here upon failure. I am hoping to use

Feeling a bit 'trapped' by Net::SNMP

2002-12-23 Thread Ian Zapczynski
Hello all, I hope my question isn't too specific for this list. I'm still learning the basic concepts of SNMP, but I need my current script to send an SNMP trap to a host here upon failure. I am hoping to use Net::SNMP to do so, but I think I'm unclear of the syntax due to my

Net::Snmp example help

2002-05-02 Thread Winchester, Derek S (Derek)
-ALL I am actually new (couple of months) to Perl and find it difficult to edit this example of a Net::Snmp script for snmpwalk. The desired result is to have the script do a walk and print to either the console or log file. When I run it I dont know why or if the script is actually running the

Re: Net::SNMP module example failing

2002-04-26 Thread Ted Hajduk
Tim, Just an FYI. Upgraded the Net::SNMP module to 4.0.1 from 3.6 and everything works. Regards Ted --- Tim Musson <[EMAIL PROTECTED]> wrote: > Hey Ted, > > My MUA believes you used (X-Mailer not set) > to write the following on Wednesday, April 24, 2002 > at 9:

Re: Net::SNMP module example failing

2002-04-25 Thread Ted Hajduk
ey Ted, > > My MUA believes you used (X-Mailer not set) > to write the following on Wednesday, April 24, 2002 > at 9:56:09 PM. > TH> Hello, > > TH> I'm executing the 1st example (get sysUpTime) in > the > TH> Net::SNMP module at > > TH> > http

Re: Net::SNMP module example failing

2002-04-25 Thread Tim Musson
Hey Ted, My MUA believes you used (X-Mailer not set) to write the following on Wednesday, April 24, 2002 at 9:56:09 PM. TH> Hello, TH> I'm executing the 1st example (get sysUpTime) in the TH> Net::SNMP module at TH> http://search.cpan.org/doc/DTOWN/Net-SNMP-4.0.1/lib/Net

Net::SNMP module example failing

2002-04-24 Thread Ted Hajduk
Hello, I'm executing the 1st example (get sysUpTime) in the Net::SNMP module at http://search.cpan.org/doc/DTOWN/Net-SNMP-4.0.1/lib/Net/SNMP.pm The example is failing with the error ERROR: Expected OBJECT IDENTIFIER in dotted notation this is occurring because the $result is undefined.

Re: snmpwalk with net::snmp

2002-02-08 Thread Elaine -HFB- Ashton
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth: *>i've gotten to be somewhat comfortable using net::snmp. at the very least *>i've used its get_request and set_request methods. however an oid used by *>cisco seems to need to be called using 'snmpwalk' rather than a get

snmpwalk with net::snmp

2002-02-06 Thread charles
i've gotten to be somewhat comfortable using net::snmp. at the very least i've used its get_request and set_request methods. however an oid used by cisco seems to need to be called using 'snmpwalk' rather than a get or set request. net::snmp has a get_next_request and

snmpset works, but net::snmp syntax does not.

2001-10-05 Thread charles
I have a peculiar problem coming up with a command i am issueing through net::snmp When I issue the following command using snmpset from a unix shell, the remote host responds correctly: snmpset -c private router .1.3.6.1.4.1.9.9.96.1.1.1.1.14.667 i 4 however, the same command issued through a

net::snmp and get_table

2001-06-08 Thread P lerenard
Hi, I try to get all the description from all interfaces of one router. I think oid is ifdesc??? how do you read the answer from the get_table? Thank you Pierre _ Get Your Private, Free E-mail from MSN Hotmail at http://ww

Net::SNMP question

2001-06-05 Thread Elias_Haddad
Hi Excuse my email, I do realise this might not be a beginner's question but I thought I'd give it a shot. I'm using Net::SNMP 3.6, I think this is the latest version. My problem is that I need to use a value of type octetstringhex, but I can not seem to find this type in the modu