Re: snmpwalk timeout

2022-05-11 Thread Wes Hardaker via Net-snmp-coders
Feroz writes: > For a given MIB, our container_load function takes 2 seconds, but > still the snmpwalk (v2) command times out with default values (5 > retries with 1 sec delay between each retry). The others have stated this already, but one additional point: it's not just the po

Re: snmpwalk timeout

2022-05-06 Thread Feroz
worked (Assuming the cache is loaded, refer part 2 below for query on cache). 8360:/home/admin# snmpwalk -v2c -c public localhost iso.3.6.1.2.1.4.24.7 12:10:21.516747 IP localhost.localdomain.39813 > localhost.localdomain.snmp: GetNextRequest(28) ip.24.7 12:10:22.517747 IP localhost.localdom

Re: snmpwalk timeout

2022-05-05 Thread Craig Small
; We have Agent-SubAgent model. > > For a given MIB, our container_load function takes 2 seconds, but still > the snmpwalk (v2) command times out with default values (5 retries with 1 > sec delay between each retry). > > My question is, why does it time out, though the container_

snmpwalk timeout

2022-05-05 Thread Feroz
Hi, We are using net-snmp 5.8. We have Agent-SubAgent model. For a given MIB, our container_load function takes 2 seconds, but still the snmpwalk (v2) command times out with default values (5 retries with 1 sec delay between each retry). My question is, why does it time out, though the

Re: snmpwalk: security service 3 error parsing ScopedPDU

2021-08-16 Thread Wes Hardaker via Net-snmp-coders
chandrasekharreddy chinnapareddygari writes: > variable-bindings: 1 item > RFC1213-MIB::mib-2.15.3.1.1.4.0.0.41.218 > (1.3.6.1.2.1.15.3.1.1.4.0.0.41.218): > Object Name: 1.3.6.1.2.1.15.3.1.1.4.0.0.41.218 > (RFC1

snmpwalk: security service 3 error parsing ScopedPDU

2021-08-09 Thread chandrasekharreddy chinnapareddygari
Hi , I am getting "snmpwalk: security service 3 error parsing ScopedPDU " and "Timeout: No Response from localhost" while doing snmpwalk on bgpI SNMPv2 walk --- snmpwalk -v2c -c public localhost 1.3.6.1.2.1.15.4 registered debug token recv, 1 recv:

Re: Re: snmpwalk snmpbulkwalk problems/bug??

2019-08-20 Thread Jose Roberto Fernandez Anahia
Jose Roberto Fernandez Anahia writes: > I observed that my funcion My_Get_Table(struct variable *vp, oid > *name, size_t *length, int exact, size_t *var_len, WriteMethod > **write_method) > is called much more than 5 (five) 5 times!!! The upper code doesn't know how many entries you have, so it

Re: snmpwalk snmpbulkwalk problems/bug??

2019-08-02 Thread Wes Hardaker via Net-snmp-coders
Jose Roberto Fernandez Anahia writes: > I observed that my funcion My_Get_Table(struct variable *vp, oid > *name, size_t *length, int exact, size_t *var_len, WriteMethod > **write_method) > is called much more than 5 (five) 5 times!!! The upper code doesn't know how many entries you have, so it

snmpwalk snmpbulkwalk problems/bug??

2019-07-23 Thread Jose Roberto Fernandez Anahia
following problem. I have a table in my MIB with 67 elements/objects (attributes/columns) .1.3.6.1.4.1.7585.1.1.1.5.31 There are 4 (four) entries (lines) in this table. When I call using snmpwalk, for instance, some of the 67, saying object "17" with .1.3.6.1.4.1.7585.1.1.1.5.31.1.17 snmp

snmpwalk/snmpbulkwalk possible problems

2019-07-11 Thread Jose Roberto Fernandez Anahia
Hello Net-SNMP fellows. Using 5.8 I'm observing the following "problem" I have a table in my MIB with 67 elements/objects (attributes) .1.3.6.1.4.1.7585.1.1.1.5.31.1 There are 4 (four) entries in this table. When I call with snmpwalk for instance some of the 67 saying

Re: Junk in snmpwalk output

2018-10-05 Thread Niels Baggesen via Net-snmp-coders
On Fri, Oct 05, 2018 at 09:52:07AM +0200, Gisle Vanem via Net-snmp-coders wrote: > >You should see similar data from IP-MIB in a more readable form. > > Perfect! But I have no idea what a "DISPLAY-HINT" should do. It will tell how the octets should be presented. Look at IP-MIB, you will get somet

Re: Junk in snmpwalk output

2018-10-05 Thread Gisle Vanem via Net-snmp-coders
n most cases is useful but fails miserably for IPv6 addresses which in the IPV6-MIB does not have a DISPLAY-HINT. Try doing snmpwalk with the -Ob option, then you will see something like this: ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.12 = INTEGER: true(1) You should see similar data

Re: Junk in snmpwalk output

2018-10-04 Thread Niels Baggesen via Net-snmp-coders
o show an OCTET STRING as a string, which in most cases is useful but fails miserably for IPv6 addresses which in the IPV6-MIB does not have a DISPLAY-HINT. Try doing snmpwalk with the -Ob option, then you will see something like this: ipv6NetToMediaValid.1.16.255.2.0.0.0.0.0.0.0.0.0.0.0.0.0.12 = I

Re: Junk in snmpwalk output

2018-10-04 Thread Bart Van Assche
On Fri, 2018-10-05 at 00:56 +0200, Gisle Vanem via Net-snmp-coders wrote: > With this command: >snmpwalk.exe -M mibs -m ALL -v1 -c public 10.0.0.21 > > I've getting lines with junk in the output: >IPV6-MIB::ipv6NetToMediaValid.1.''.12 = INTEGER: true(1) >IPV6-MIB::ipv6N

Junk in snmpwalk output

2018-10-04 Thread Gisle Vanem via Net-snmp-coders
With this command: snmpwalk.exe -M mibs -m ALL -v1 -c public 10.0.0.21 I've getting lines with junk in the output: IPV6-MIB::ipv6NetToMediaValid.1.''.12 = INTEGER: true(1) IPV6-MIB::ipv6NetToMediaValid.1.''.22 = INTEGER: true(1) IPV6-MIB::ipv6NetToMediaVali

Re: snmpwalk test.net-snmp.org

2018-09-30 Thread Lee
On 9/30/18, Bart Van Assche wrote: > On 9/30/18 1:26 PM, Mark Christiansen wrote: >> Lee, thanks for the sanity check. When I run the same command as you I >> get: >> >> $ /c/usr/bin/snmpwalk -v 2c -c demopublic test.net-snmp.org >> <http://test.net-snmp.org&

Re: snmpwalk test.net-snmp.org

2018-09-30 Thread Bart Van Assche
On 9/30/18 1:26 PM, Mark Christiansen wrote: Lee, thanks for the sanity check. When I run the same command as you I get: $ /c/usr/bin/snmpwalk -v 2c -c demopublic test.net-snmp.org <http://test.net-snmp.org> system Timeout: No Response from test.net-snmp.org <http://test.net-snmp.org

Re: snmpwalk test.net-snmp.org

2018-09-30 Thread Mark Christiansen
On Sat, Sep 29, 2018 at 1:36 PM Lee wrote: > On 9/28/18, Mark Christiansen wrote: > > What's going wrong? I get the following error: > > > > $ /c/usr/bin/snmpwalk test.net-snmp.org demopublic system > > demopublic: Unknown Object Identifier (Sub-id no

Re: snmpwalk test.net-snmp.org

2018-09-29 Thread Lee
On 9/28/18, Mark Christiansen wrote: > What's going wrong? I get the following error: > > $ /c/usr/bin/snmpwalk test.net-snmp.org demopublic system > demopublic: Unknown Object Identifier (Sub-id not found: (top) -> > demopublic) $ snmpwalk -v 2c -c demopublic test.net-

snmpwalk test.net-snmp.org

2018-09-28 Thread Mark Christiansen
What's going wrong? I get the following error: $ /c/usr/bin/snmpwalk test.net-snmp.org demopublic system demopublic: Unknown Object Identifier (Sub-id not found: (top) -> demopublic) I found that at: http://net-snmp.sourceforge.net/tutorial/tutorial-4/commands/snmpwalk.html Than

Re: snmpwalk - " Error in packet. Reason: (genError) A general failure occured "

2018-08-30 Thread Wes Hardaker via Net-snmp-coders
Simon Chamlian writes: > Issuing a snmpwalk on a table is getting the whole table and then finishes > with : >  " Error in packet. Reason: (genError) A general failure occured " > error. > > Is this a known bug? That sounds like a bug in the agent? You might ru

snmpwalk - " Error in packet. Reason: (genError) A general failure occured "

2018-08-29 Thread Simon Chamlian
Hi, Issuing a snmpwalk on a table is getting the whole table and then finishes with : " Error in packet. Reason: (genError) A general failure occured " error. Is this a known bug? Thanks, S -- Check out t

Looking for help to fix error: "snmpwalk: Unknown engine ID"

2016-10-20 Thread Pramod Patki
Hi, I have installed NET-SNMP version: 5.7.3 last month on Linux VM with #50-Ubuntu(per uname -a) on it. I was able to run snmpwalk -v2c using default community string on some network devices and it worked fine. For one device though I was getting: Error in packet. Reason: authorizationError

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-10-10 Thread Sam Tannous
Tue, Sep 20, 2016 at 12:56 PM, Sam Tannous wrote: >>> >>> No message in the logsand increasing the timeout doesn't help. >>> The daemon is off in la-la land... >>> >>> My forwarding file is empty: >>> >>> >>> root@debi

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-10-04 Thread Bill Fenner
.0 0.0.0.0 255.255.255.0 U 0 0 0 >> eth0 >> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 >> eth0 >> root@debian-stable:/home/stannous# >> -- >> >> The problem seems to be only in the implem

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-09-21 Thread Sam Tannous
ibgroup/mibII/at.c. > > Thanks, > > > On Tue, Sep 20, 2016 at 8:52 AM, Robert Story wrote: > >> On Wed, 7 Sep 2016 14:07:42 -0400 Sam wrote: >> ST> Any ideas on how to resolve this? The problem seems to be >> ST> in "transitioning" from one mib to t

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-09-20 Thread Sam Tannous
16 at 4:32 PM, Sam Tannous > wrote: > ST> > ST> > -- > ST> > > ST> > * [bugs:#2693] <http://sourceforge.net/p/net-snmp/bugs/2693/> > snmpwalk > ST> > causes snmpd hang and CPU spike* > ST> > > ST> > On latest debian (Jessie, snmpd 5.7.

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-09-20 Thread Robert Story
T> > ST> > * [bugs:#2693] <http://sourceforge.net/p/net-snmp/bugs/2693/> snmpwalk ST> > causes snmpd hang and CPU spike* ST> > ST> > On latest debian (Jessie, snmpd 5.7.2.1, also seen on 5.7.3) we noticed a ST> > nasty bug where the snmpd ST> > CPU spike

Re: [net-snmp:bugs] #2693 snmpwalk causes snmpd hang and CPU spike

2016-09-07 Thread Sam Tannous
Any ideas on how to resolve this? The problem seems to be in "transitioning" from one mib to the next. Thanks, On Mon, Jan 25, 2016 at 4:32 PM, Sam Tannous wrote: > -- > > * [bugs:#2693] <http://sourceforge.net/p/net-snmp/bugs/2693/> snm

Re: an issue about snmpwalk

2015-08-10 Thread Fedor Sumkin
, make snmpget/snmpgetnext for each of the exported oid and check that results are correct. Regards, Fedor On Wed, Jul 29, 2015 at 4:48 AM, LI Zhigang A < [email protected]> wrote: > Dear all, > > > > When we run snmpwalk command, we found an issue,

an issue about snmpwalk

2015-08-10 Thread LI Zhigang A
Dear all, When we run snmpwalk command, we found an issue, which is as following: $ snmpwalk -v2c -c public 135.249.23.230 enterprises.637.61.1.40.12.4.1.1 SNMPv2-SMI::enterprises.637.61.1.40.12.4.1.1.1853751296 = INTEGER: 1853751296 SNMPv2-SMI::enterprises.637.61.1.40.12.4.1.1.283246592

Re: objects marked not-accessible returned by snmpwalk

2015-07-08 Thread Robert Story
On Wed, 29 Apr 2015 08:52:12 +0100 Tim wrote: TC> But then how can I check if an object is ‘not-accessible’ from my code? You shouldn't need to, as this is something that doesn't change. If the index is marked not-accessible in the MIB, then mib2c should indicate that and will not generate a get

RE: objects marked not-accessible returned by snmpwalk

2015-04-29 Thread Tim Culhane
by snmpwalk On Tue, Apr 28, 2015 at 7:33 AM, Tim Culhane mailto:[email protected]> > wrote: Does anybody know if it is possible to get the ‘MAX-ACCESS’ value for an oid from a request via the net-snmp API? mib2c has access to it (and in theory it's in charge of getting tha

Re: objects marked not-accessible returned by snmpwalk

2015-04-28 Thread Bill Fenner
On Tue, Apr 28, 2015 at 7:33 AM, Tim Culhane wrote: > Does anybody know if it is possible to get the ‘MAX-ACCESS’ value for an > oid from a request via the net-snmp API? > mib2c has access to it (and in theory it's in charge of getting that info into the code). There's no access to this info fr

RE: objects marked not-accessible returned by snmpwalk

2015-04-28 Thread Tim Culhane
ubject: RE: objects marked not-accessible returned by snmpwalk Hi Bill, I generated my files using the mfd (mib for dummies) option to mib2c and chose the caching option. Its not using the table iterator, just the “normal” table helper … I think. Tim From: Bill Fenner [mail

RE: objects marked not-accessible returned by snmpwalk

2015-04-28 Thread Tim Culhane
: Net-SNMP Coders; [email protected] Subject: Re: objects marked not-accessible returned by snmpwalk You don't mention which helper you're using, but if you're using the table_iterator, is the not-accessible column in your column_info->details.list?

Re: objects marked not-accessible returned by snmpwalk

2015-04-27 Thread Bill Fenner
< > (rowreq_ctx->tbl_idx.razorgateSmtpIPAddress_len * > sizeof(rowreq_ctx->tbl_idx.razorgateSmtpIPAddress[0]))) { > var->val.string = > malloc(rowreq_ctx->tbl_idx.razorgateSmtpIPAddress_len * > sizeof(rowreq_ctx->tbl_idx. > razorgateSmtpIPAddress[0])); > } > var->val_len

objects marked not-accessible returned by snmpwalk

2015-04-27 Thread Tim Culhane
azorgateSmtpIPAddress[0]))) { var->val.string = malloc(rowreq_ctx->tbl_idx.razorgateSmtpIPAddress_len * sizeof(rowreq_ctx->tbl_idx. razorgateSmtpIPAddress[0])); } var->val_len = rowreq_ctx->tbl_idx.razorgateSmtpIPAddress_len * sizeof(rowreq_ctx->tbl_idx.razorgateSmtpIPAddress[0]); memcpy(var

Re: UCD-SNMP-MIB - snmpwalk fails

2014-12-08 Thread Robert Story
; want to poll some performance data using the OIDs which are included in AA> the UCD-SNMP-MIB. Whenever I try to snmpwalk on 1.3.6.1.4.1.2021 AA> specifically (snmpwalk -v1 -cpublic 127.0.0.1 1.3.6.1.4.1.2021), I get no AA> response (it produces no output, it just skips to the next

UCD-SNMP-MIB - snmpwalk fails

2014-08-01 Thread Apostolidis, Alexandros
Hello everyone, I would like to make a question regarding net-snmp: Currently I am working on a Linux machine running SUSE LES v10 32bit and I want to poll some performance data using the OIDs which are included in the UCD-SNMP-MIB. Whenever I try to snmpwalk on 1.3.6.1.4.1.2021 specifically

Re: error showing SNMPWALK on the last table of a view

2014-07-07 Thread Bill Fenner
xtending your timeouts is a workaround, but, > IMHO... it shouldn't have to be that slow. > > > > On Wed, Jul 2, 2014 at 10:50 AM, sarath azad > wrote: > > Hello, > > > > Thanks for the replies and inputs. > > The problem was that the table being of

Re: error showing SNMPWALK on the last table of a view

2014-07-02 Thread Fulko Hew
azad wrote: > Hello, > > Thanks for the replies and inputs. > The problem was that the table being of very large size, SNMPWALK was taking > more time to finish. > When we configured the view to contain only a single column of the table, > and then doing SMNPWALK on that column

Re: error showing SNMPWALK on the last table of a view

2014-07-02 Thread sarath azad
Hello, Thanks for the replies and inputs.  The problem was that the table being of very large size, SNMPWALK was taking more time to finish.  When we configured the view to contain only a single column of the table, and then doing SMNPWALK on that column of the table, we were getting the data

error showing SNMPWALK on the last table of a view

2014-06-24 Thread sarath azad
Hello, Could you please help in resolving the below problem? If we are configuring a view containing a single MIB table and do a SNMPWALK on it, it is showing all the data on the table and at the end of the table it is showing a message: "No more variables left in this MIB View (It is pas

RE: Error in packet. Reason: Unknown Error with snmpwalk

2014-05-21 Thread Gefei Jiang
; [email protected] Subject: Re: Error in packet. Reason: Unknown Error with snmpwalk Den 15-04-2014 19:35, Gefei Jiang skrev: > PS: Below is my captures for both version: > > 5.7.2.1 version: > > [gjiang@Gefei-PC ~]$ snmpwalk -v 2c -c myCode 10.219.101.161

Re: Error in packet. Reason: Unknown Error with snmpwalk

2014-04-22 Thread Niels Baggesen
Den 15-04-2014 19:35, Gefei Jiang skrev: > PS: Below is my captures for both version: > > 5.7.2.1 version: > > [gjiang@Gefei-PC ~]$ snmpwalk -v 2c -c myCode 10.219.101.161 > NETOPTICS-MIB-DIRECTOR::ntpTable > NETOPTICS-MIB-DIRECTOR::ntpIndex.0.0 = INTEGER: 0 > NETOPTICS

Error in packet. Reason: Unknown Error with snmpwalk

2014-04-16 Thread Gefei Jiang
Hi Everyone, Is there anyone who has a solution to the issue below: When I do snmpwalk on one of my table (ntpTable) it displays Error in packet. Reason: Unknown Error I just upgraded my snmp agent (snmpd) from 5.4.2 to 5.7.2.1. Before the upgrade I had no issue at all. I

Re: snmpwalk of Net Snmp throws the error " Wrong Type (should be Counter64): INTEGER: 27344896"

2013-11-18 Thread Niels Baggesen
following queries > > 1.How data type of object is determined? snmpwalk looks in the MIB file, the agent does what it was coded to do. > 2.What information is fetched by snmpwalk from emanate snmp agents? I don't understand the question /Niels -- Niels Baggesen - @hom

snmpwalk of Net Snmp throws the error " Wrong Type (should be Counter64): INTEGER: 27344896"

2013-11-18 Thread Padmaja Sridharan
Hi , We run snmpwalk of net-SNMP 5.7.2 with Emanate SNMP agents on HPUX 11.31 ia64 We have customized MIB that has OID configuration(mounted filesystems) with fileSystemBlock defined as Counter64. When run snmpwalk with that OID, it gives the following message. # snmpwalk -m HP-UNIX -v2c

Re: Response to snmpwalk

2013-06-21 Thread Niels Baggesen
Den 21-06-2013 11:28, santosh skrev: > Can we configure snmpd agent to not provide entire MIB tree for a > request coming from snmpwalk command? Have a look at the view and access statements in snmpd.conf /Niels -- Niels Baggesen - @home - Århus - Denmark - [email protected]

Response to snmpwalk

2013-06-21 Thread santosh
Hi, Can we configure snmpd agent to not provide entire MIB tree for a request coming from snmpwalk command? Thanks, Santosh -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu

snmpwalk returning value for only the first OID

2013-06-14 Thread Rathod, Nitin
Hello, I'm facing some issues in execution of the snmpwalk cli on a Solaris Sparc machine. Following is the command I'm trying to execute: snmpwalk -v1 -Cc -c 10.82.130.22:8161 .1.3.6.1.4.1.1031.1.1.1.6.1.1 Once I execute this command , it is returning : SNMPv2-SMI::e

RE: SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
Found the solution of it... Added "agentxTimeout 10" in snmpd.conf in my pooltable.h file I have changed cache value as below... #define poolTABLE_TIMEOUT10 Now what should be the proper values ?? as my "time" command shows for SnmpWalk is 9 to 9.7 se

SNMPWALK gives Error in packet:Reason (genError)A general failure occurred

2012-10-31 Thread Jatin Bodarya
use SNMPWALK if the data presents about 4000-7000 lines only(with 3 columns) it reads properly, If I increase data SNMPWALK gives "Error in packet. Reason (genError)A general failure occurred Faild Object :XXX-MIB::yyy If I decrease column 3 to 1, It reads up to 21000 rows.. I am not sur

RE: snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Katia S.
Then, using the FillDaTable() code I have provided you with, create a new row in your table, at the end of the initialization. All you have to do, just to be sure it works, is just pass an index to your table and fill up the first column. Then snmpwalk the value of the first column at the first

RE: snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Jatin Bodarya
ubject: Re: snmpwalk :No such Instance currently exist at this OID It's me again. Lets say that both this code and the subagent are working fine. You are creating a table. When initialized, the table is empty, so the 1.3.6.1.4.1.XXX.4.2.1 (index = 1 therefore row = 1) does not exist (no rows in you

Re: snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Katia S.
d now try to walk through the table to see if the same error occurs snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.XXX.4.2.1 See how that goes.. > Below is my mib2c generated code.... while I m trying SNMPWALK on > > 1.3.6.1.4.1.XXX.4.2.1 it shows :: No such Instance currently exist at

snmpwalk :No such Instance currently exist at this OID

2012-10-18 Thread Jatin Bodarya
Below is my mib2c generated code while I m trying SNMPWALK on 1.3.6.1.4.1.XXX.4.2.1 it shows :: No such Instance currently exist at this OID Can anyone help me where it is going wrong ?? Thanks in advance. /* * Note: this file originally auto-generated by mib2c using

RE: snmpwalk - Alternative SNMP port not available

2012-10-15 Thread Glenn Gagné
Hi Dave, Thank you for the information ! I can see in manpage for snmpcmd that your version in the fact is true... and with someone working on the project I'm sure of the best answer ;) May be, it could be a good update to add this information in specific manpage of snmpwalk or/and i

Re: snmpwalk - Alternative SNMP port not available

2012-10-09 Thread Dave Shield
On 9 October 2012 14:02, Glenn Gagné wrote: > May be, it could be a good update to add this information in specific > manpage of snmpwalk $ man snmpwalk OPTIONS [snip] In addition to these options, snmpwalk takes the common options described in the snmpcmd(1)

Re: snmpwalk - Alternative SNMP port not available

2012-10-08 Thread Dave Shield
On 5 October 2012 15:55, Glenn Gagné wrote: > But I have a problem with some equipments due to the lack of using an > alternative UDP port (non-standard UDP/161). I searched on the Internet to > known how to use an alternative port with snmpwalk and the answer was : This > option wa

snmpwalk - Alternative SNMP port not available

2012-10-08 Thread Glenn Gagné
Hi, I’m using snmpwalk since few weeks to easly scan equipments on my network (over 300 computers, switches, SAN, VMWare Center, etc.) before add them on a monitoring tool like MRTG, Cacti or PA Server Monitor… and I found that a great and easy tool ! But I have a problem with some

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-08-01 Thread Madhu Sudhana Rao
; > Yes - that sounds reasonable. > > > > only problem is with snmpwalk and getnext > > I see from your code that you are using the iterator helper. > This is designed to walk through the list of rows (using > your 'get_first/get_next' hook routines), identify the

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-08-01 Thread Dave Shield
On 1 August 2012 07:23, Madhu Sudhana Rao wrote: > I think table is registering correctly, as I am getting snmpget output looks > correct Yes - that sounds reasonable. > only problem is with snmpwalk and getnext I see from your code that you are using the iterator helper. This is

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Madhu Sudhana Rao
t; > properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but > in > > latest version only snmpget is working but snmpwalk is giving "no such > > object". I didn't change anything related to .c and .h files. > > Hmmm > > Things to

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
On 31 July 2012 13:14, Madhu Sudhana Rao wrote: > It is not part of the standard agent, I added this proprietary table. > > Copied .c and .h files of myifTable from (agent/mibgroup), which is working > properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Madhu Sudhana Rao
rt of the standard agent? > It is not part of the standard agent, I added this proprietary table. Copied .c and .h files of myifTable from (agent/mibgroup), which is working properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in latest version only snmpget is working

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
snmpget command is working > fine but > snmpwalk command is giving " NO SUCH OBJECT ON THIS OID" and for snmptable I > am getting "No entries. What does 'snmpgetnext' report? Dave -- Live

snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-30 Thread Madhu Sudhana Rao
Hi, I replaced net-snmp version 5.2.1 to 5.6.2 which is working on all the tables but for one of the table, snmpget command is working fine but snmpwalk command is giving " NO SUCH OBJECT ON THIS OID" and for snmptable I am getting "No entries. I wrote few snmp_log messages and de

Re: Question About Net-SNMP Version 5.3.2.2 (FW: SMS snmpWalk)

2012-04-06 Thread Dave Shield
I got the command in the email below, > to do an snmp walk, but the information it has given us is not useful. Your message truncated the output during the error from the bare "snmpwalk" command, so I assume there was nothing important after that. The information you are getting the

Question About Net-SNMP Version 5.3.2.2 (FW: SMS snmpWalk)

2012-04-05 Thread Kathleen Brown
ish. John Quincy Adams -Original Message- From: Marybeth Krzyston Sent: Thursday, April 05, 2012 10:13 AM To: Kathleen Brown Subject: SMS snmpWalk smsanselm SMS=> snmpwalk -v 2c -c bradford 10.3.1.92 SNMPv2-MIB::sysDescr.0 = STRING: SMS smsanselm 1950-noswap 3.3.0.10182.2 SN

snmpwalk

2012-03-28 Thread Durga Sree
r my query commands root@newuser-desktop:/home/newuser# snmpwalk -v 2c -c public localhost IP-MIB::ipAdEntIfIndex IP-MIB::ipAdEntIfIndex = No more variables left in this MIB View (It is past the end of the MIB tree) root@newuser-desktop:/home/newuser# Thanks & Regards, Durgashree 9740390576 L

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-21 Thread David Howland
On 3/20/2012 12:58 PM, Charlie Martin wrote: ... > Ah, hell. You know, trying to figure this stuff out from a standing > start is like spending two months reading stereo instructions. > Amen to that. I'm in the same boat over here. It seems an order of magnitude more complex than it should be.

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-20 Thread Dave Shield
On 20 March 2012 16:58, Charlie Martin wrote: > Ah, hell.  You know, trying to figure this stuff out from a standing start > is like spending two months reading stereo instructions. Which is why I tend to encourage people to walk for a while (use the existing SNMP agent, and get a feel for how it

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-20 Thread Charlie Martin
On 03/19/2012 02:46 AM, Dave Shield wrote: > Though I'm not convinced that the MIB you are walking is valid. > If these are a series of scalar objects, then the OIDs should all end in .0 > If they are part of a table, then all the values for a particular column > object should be of the same type.

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-19 Thread Dave Shield
On 16 March 2012 22:03, Charlie Martin wrote: >  Now I try an snmpwalk > > 1006 $ snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1.2 > .1.3.6.1.4.1.59.1.5.3.1.1.2 = STRING: "91" > > Observe that it gets back only one reply Yes - that is correct. Snmpw

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-18 Thread Vincent Bernat
Le 19.03.2012 00:12, Charlie Martin a écrit : > Okay, one more case I want to be sure of. Let's assume that > 1.3.6.1.4.1.59.1.5.3.1.1.10 is the numerically (as opposed to > lexicographically) highest OID in the 1.3.6.1.4.1.59.1.5.3.1.1 > subgroup. How should the agent respond

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-18 Thread Charlie Martin
Okay, one more case I want to be sure of. Let's assume that 1.3.6.1.4.1.59.1.5.3.1.1.10 is the numerically (as opposed to lexicographically) highest OID in the 1.3.6.1.4.1.59.1.5.3.1.1 subgroup. How should the agent respond to $ snmpwalk /*args*/ 1.3.6.1.4.1.59.1.5.3.1.1.10

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-18 Thread Charlie Martin
Yup, I think that is it, merci beaucoup! On 03/17/2012 03:24 AM, Vincent Bernat wrote: >> snmpgetnext -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 > You should get 1.3.6.1.4.1.59.1.5.3.1.1.1 = 9 (if I remember correctly) > > Maybe you don't handle this last bit in your pass_persist script:

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-17 Thread Vincent Bernat
OoO En cette nuit nuageuse du samedi 17 mars 2012, vers 00:02, Charlie Martin disait : >> Use: >> snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 > 1020 $ snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 > .1.3.6.1.4.1.59.1.5.3.1.1 = No Such Instanc

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-16 Thread Charlie Martin
On 03/16/2012 04:52 PM, Vincent Bernat wrote: > Use: > snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 1020 $ snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1 .1.3.6.1.4.1.59.1.5.3.1.1 = No Such Instance currently exists at this OID Which actually corresponds

Re: pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-16 Thread Vincent Bernat
.1.3.6.1.4.1.59.1.5.3.1.1.2 = STRING: "91" > 1005 $ snmpgetnext -On -v 2c -c xxx dev1 1.3.6.1.4.1.59.1.5.3.1.1.2 > .1.3.6.1.4.1.59.1.5.3.1.1.3 = STRING: "42" > As I say, the types and values for those responses appear to be > correct. Now I try an

pass_persist agent doesn't work with snmpwalk (probable noob question)

2012-03-16 Thread Charlie Martin
"42" As I say, the types and values for those responses appear to be correct. Now I try an snmpwalk 1006 $ snmpwalk -On -v 2c -c copan psmdev1 1.3.6.1.4.1.59.1.5.3.1.1.2 .1.3.6.1.4.1.59.1.5.3.1.1.2 = STRING: "91" Observe that it gets back only one reply, which is unex

RE: snmpwalk: Decryption error

2012-02-01 Thread Krishnan . (krish2)
- From: NetSNMP Mailbox [mailto:[email protected]] On Behalf Of Robert Story Sent: Monday, January 30, 2012 11:55 PM To: Krishnan . (krish2) Cc: [email protected] Subject: Re: snmpwalk: Decryption error On Fri, 27 Jan 2012 14:56:54 +0530 Krishnan wrote: K(> n uname

Re: snmpwalk: Decryption error

2012-01-30 Thread Robert Story
On Fri, 27 Jan 2012 14:56:54 +0530 Krishnan wrote: K(> n uname -a = Linux Unknown 2.6.16.12 #1 Fri Dec 30 02:06:07 IST 2011 K(> exported armv5tejl GNU/Linux K(> K(> Problem Description: K(> K(> n The moment an event is generated, and v3 traps are configured for K(> use,

snmpwalk: Decryption error

2012-01-30 Thread Krishnan . (krish2)
s work. n V2C traps work fine and all varbinds seen correctly. n The moment an event is generated, and v3 traps are configured for use, "snmpwalk: Decryption error" shows up during the next v3 walk. V2C walk continues to work fine. n Able to recover from the error only when "sn

snmpwalk: Decryption error

2012-01-09 Thread Krishnan . (krish2)
s work. n V2C traps work fine and all varbinds seen correctly. n The moment an event is generated, and v3 traps are configured for use, "snmpwalk: Decryption error" shows up during the next v3 walk. V2C walk continues to work fine. n Able to recover from the error only when "sn

snmpwalk: Decryption error

2011-12-30 Thread Krishnan . (krish2)
s work. n V2C traps work fine and all varbinds seen correctly. n The moment an event is generated, and v3 traps are configured for use, "snmpwalk: Decryption error" shows up during the next v3 walk. V2C walk continues to work fine. n Able to recover from the error only when "sn

Re: Snmpget or snmpwalk timeout error

2011-11-29 Thread Dave Shield
On 20 October 2011 08:15, Franco, Battista wrote: > I want to get info from my UPS. > I copied XUPS-mib.txt (file attached) into folder C:\usr\share\snmp\mibs > But when I ran snmpget or snmpwalk (see attached error.jpg) there’s timeout > error. Have you tried specifying the versi

Re: mib by dlmod not shown in snmpwalk

2011-11-07 Thread Niels Baggesen
Den 08-11-2011 01:28, Nguyen Dinh Phong skrev: > snmpwalk -v 2c -c public 127.0.0.1 > I only see some of the standard mibs, but not the two mibs that I linked in. > Also, I found the same behavior on UCD-SNMP-MIB, i.e. > snmpwalk -v 2c -c public 127.0.0.1 1.3.6.1.4.1.2021 would sh

mib by dlmod not shown in snmpwalk

2011-11-07 Thread Nguyen Dinh Phong
Hi, I have two mibs that I are extended with "dlmod xxx" in the snmpd.conf. I could display those two mibs if specifying them directly on the command line. However, if I do a snmpwalk like: snmpwalk -v 2c -c public 127.0.0.1 I only see some of the standard mibs, but not the two m

Re: snmpwalk requests timing out / returning errors in middle of walk

2011-09-14 Thread Wes Hardaker
> On Wed, 7 Sep 2011 10:06:04 -0700, "Hay, Joshua A" > said: HJA> Whenever try to walk the table, it'll output some of the table rows, HJA> but after some time, it will either timeout with a 'No Response from HJA> x.x.x.x' message or 'Error in packet. Reason: (genError) A general HJA> f

snmpwalk requests timing out / returning errors in middle of walk

2011-09-07 Thread Hay, Joshua A
Hi, I am trying to embed mib code for a table into an external application. I put the agent_check_and_process function into the applications main loop. Whenever try to walk the table, it'll output some of the table rows, but after some time, it will either timeout with a 'No Response from x.x

Re: Idea to save snmpwalk o/p in to database ?

2011-08-18 Thread Wes Hardaker
> On Wed, 17 Aug 2011 06:50:42 +0100, Dave Shield > said: DS> The simplest way to do that (though not the most efficient) would DS> probably be to clear the database table completely, and walk the MIB DS> table in its entireity. But there are better ways to handle this, DS> without thro

Re: Idea to save snmpwalk o/p in to database ?

2011-08-17 Thread sujata patra
Thank you sir.I need to relook before I ask something. --- On Wed, 8/17/11, Dave Shield wrote: From: Dave Shield Subject: Re: Idea to save snmpwalk o/p in to database ? To: "sujata patra" Cc: "net-snmp-coders" Date: Wednesday, August 17, 2011, 11:20 AM On 17 August 2011

Re: Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread Dave Shield
On 17 August 2011 05:29, sujata patra wrote: > Let me explain with an example . > Let's say there is an ABC table and abcIndex is key OK - so you've got a MIB table 'abcTable', defined with "INDEX {abdIndex}" You've also got an SQL table 'abcTable' with primary key 'abcIndex' With you so far.

Re: Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread sujata patra
surely I will look into snmptrapd_sql.c> Problems is the keys. Parent table index and  child table index makes the key for the child table. I'm sorry - I don't understand what you mean by this. SNMP doesn't have a concept of "parent tables" and "child tables". A table is a table is a table. Sorr

Re: Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread Dave Shield
On 16 August 2011 11:09, sujata patra wrote: > As far as I know , SNMP datas are in ASN.1 format . No. SNMP uses ASN.1 to define the structure of data (in MIB files), and to transfer that data between the agent and the management application. But all of this is handled automatically at a fairl

Idea to save snmpwalk o/p in to database ?

2011-08-16 Thread sujata patra
Hi, As far as I know , SNMP datas are in ASN.1 format . How can I save the data in database ? Problems is the keys. Parent table index and  child table index makes the key for the child table. It is not guranteed that the  same index will be always be there for dynmic table/ dynamic rows. How c

Re: Wireshirk: net-snmp 5.4.3: table snmpwalk without using GETNEXT?

2011-04-12 Thread Dave Shield
On 12 April 2011 15:54, Dave Shield wrote: > On 12 April 2011 15:38, Zimmer Hu wrote: >> Could you tell me which way is the right way to make such a change? > > Not unless you send the header files I asked for. Oops! Sorry - I've just spotted the later message that included them. OK - I'll try

  1   2   3   4   >