Re: what MIB defines icmp.27 and icmp.28?

2010-10-19 Thread Dave Shield
On 19 October 2010 19:23, Fulko Hew wrote: > I've browsed a Microsoft Windows Server 2008 system running > Net-SNMP v5.5 (with DLL support) and I see the following > variables [icmp 27 & 28] returned.  Can anyone enlighten me > on what MIB defines these? > > I found RFC-2011 had originally defined

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   I've found the source of the bug.  As all bug, it was a silly mistake.   Initially, I've set the RowIndex on Table2 to OctetString while studying the data_set.c source code.  I've decided to change it to Integer32 which is more practical.   by DEBUGMSGTL, the code ends while executin

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   I've found the source of the bug.  As all bug, it was a silly mistake.   Initially, I've set the RowIndex on Table2 to OctetString while studying the data_set.c source code.  I've decided to change it to Integer32 which is more practical.   by DEBUGMSGTL, the code ends while executing

what MIB defines icmp.27 and icmp.28?

2010-10-19 Thread Fulko Hew
I've browsed a Microsoft Windows Server 2008 system running Net-SNMP v5.5 (with DLL support) and I see the following variables returned. Can anyone enlighten me on what MIB defines these? I found RFC-2011 had originally defined icmp.27 and .28, but its been deprecated for a while, and the indexes

scalar set question

2010-10-19 Thread Kathy McLeod
Hi - I asked this awhile back but didn't get a reply - several questions in that note so you may have missed it. For tables, I switched to using mib2c.table_data.conf and I really like the way you pass a structure in on the sets so that the plugin does not have to save the old value in static s

Net-SNMP 5.3.2.2 returns zeroes for hrStorageTable values

2010-10-19 Thread Ray Van Dolson
Running Net-SNMP 5.3.2.2 on RHEL 5.5 (POWER). The machine is also running Red Hat Cluster services and a GFS2 filesystem. And snmpwalk on the storage portion of HOST-RESOURCES is resulting in zeroes for sizes: HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Memory Buffers HOST-RESOURCES-MIB::hrSt

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:42, Leo Lin wrote: > you are correct, table.c is not the source of the problem. >  However, I don't understand why snmpd hangs on AlarmDescription.2 on conf.c It doesn't. The client application (snmpwalk or snmpgetnext) issues a GETNEXT request on alarmDescription.2.The

How to query host ip using net-snmp.

2010-10-19 Thread Benix Samuel Vincent Theogaraj
Hi, I am a newbie, just installed net-snmp on my fedora 8 laptop. How to query a host mib through net-snmp command? Benix. -- Born to explore ; Coding to live : But not for a while !! -- Download new Adobe(R) Flash(R) B

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   you are correct, table.c is not the source of the problem.  However, I don't understand why snmpd hangs on AlarmDescription.2 on conf.c   the MODE_GET handler in conf.c is similar to what I have on table.c.   Let me DEBUGMSGTL this section to see what is really going on...   Thanks!   L

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 16:07, Leo Lin wrote: > snmpwalk –v1 –cprivate localhost AlarmDateTime // works OK > snmpwalk –v1 –cprivate localhost AlarmType    // works OK > snmpwalk –v1 –cprivate localhost AlarmDescription // hangs @ > AlarmDescription.2 You're thinking of this in the wrong way. It'

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   This is part of my MIB output using snmptranslate     MyTables | Table1     | Table1Entry     |   |---   Index:   RowIndex     |   |       |   |    Iteger32    RowIndex   

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 13:20, Leo Lin wrote: > Actually I have 2 tables, and on both it behaves differently. What are the root OIDs of each table? What other objects are defined between the two? > On both tables, if I perform snmpgetnext, it works fine. That's a bit vague. What OIDs are you runnin

Re: Understanding snmpwalk

2010-10-19 Thread Leo Lin
Hi Dave,   Actually I have 2 tables, and on both it behaves differently.   Let's say on Table1, snmpwalk displays all the contents of the table without problems, once the last field is displayed, snmpd hangs in there without response, and then it shuts down.   On Table2, snmpwalk command will not

RE: Using MTA-MIB

2010-10-19 Thread Hampton, Michael
Or this snmpwalk -v2c -c asp localhost 1.3.6.1.2.1.28.1.1.1 -Original Message- From: Titl Erich [mailto:erich.t...@ruf.ch] Sent: 18 October 2010 14:34 To: net-snmp-users@lists.sourceforge.net Subject: Using MTA-MIB Hi Folks I have been using net-snmp for a while, but just accessing th

RE: Using MTA-MIB

2010-10-19 Thread Hampton, Michael
Use this... snmpwalk -v2c -c asp localhost mtaReceivedMessages -Original Message- From: Titl Erich [mailto:erich.t...@ruf.ch] Sent: 18 October 2010 14:34 To: net-snmp-users@lists.sourceforge.net Subject: Using MTA-MIB Hi Folks I have been using net-snmp for a while, but just accessing

RE: Using MTA-MIB

2010-10-19 Thread Titl Erich
Michael Did that before, just for your reference administra...@mta1:~> snmpwalk -v2c -c asp localhost mtaReceivedMessages MTA-MIB::mtaReceivedMessages = No Such Object available on this agent at this OID administra...@mta1:~> snmpwalk -v2c -c asp localhost mtaReceivedMessages MTA-MIB::mtaReceive

Re: snmpget gives No Such Object available on this agent at this OID

2010-10-19 Thread Boula Lemonia
One more question: Should I do something more than make and make install? I cannot see where (in which file) and when the new agent registration/initialization is performed. Boula Lemonia wrote: OK, I deleted the lines you told me and executed "/etc/init.d/snmpd restart". However, the pro

Re: How to send broadcast with net-snmp 5.4.1.2

2010-10-19 Thread Reinhold Kainhofer
Am Dienstag, 19. Oktober 2010, um 09:53:47 schrieb Xia, Arandar: > Dear All, > > I am using net-snmp-5.4.1.2 and I want to develop an application for > sending broadcast. The code is like: [...] > It fails with "Failure in sendto". > Is it possible for 5.4.1.2 to send UDPv4 broadcast and how? Not

How to send broadcast with net-snmp 5.4.1.2

2010-10-19 Thread Xia, Arandar
Dear All, I am using net-snmp-5.4.1.2 and I want to develop an application for sending broadcast. The code is like: struct snmp_session sess_template; snmp_sess_init(&sess_template); ... sess_template.peername = strdup("255.255.255.255"); ... sess_template.callback = asynch_response; ... It f

Re: snmpget gives No Such Object available on this agent at this OID

2010-10-19 Thread Boula Lemonia
OK, I deleted the lines you told me and executed "/etc/init.d/snmpd restart". However, the problem still exists. Should I configure my system otherwise? Should I define users, groups, views, etc in my snmpd.conf file? BR, Lenia. -

Re: Not getting specific trap

2010-10-19 Thread Dave Shield
On 18 October 2010 09:06, yogesh m wrote: > In this i am trying to generate my Trap for first system status of first > row. > /** Initializes the telecrbt module */ > void init_telecrbt(void) > { >     initialize_table_teleSysResourceTable(); >     send_mySysDown_trap(); > } I wouldn't

Re: Understanding snmpwalk

2010-10-19 Thread Dave Shield
On 19 October 2010 01:44, Leo Lin wrote: > if I issue snmpwalk like so > $snmpwalk -v1 -cprivate localhost MyTable > the agent displays the contents of the table, but it hangs for a while, and > later I get > Timeout: No response from localhost > then the snmpd shutsdown. > > Is this norm

Net-snmp and 802.11

2010-10-19 Thread Queenie de Melo
Dear All, Where can i find the Net-SNMP mib modules in C for 802.11 interface?? Please help. Thanks! -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R