snmpdemoapp "too long" error

2005-06-03 Thread Chris Cunningham
I'm using the exact Makefile that comes with the sample code. Here is my slightly modified code for the application: #include #include #include int main(int argc, char ** argv) { struct snmp_session session, *ss; struct snmp_pdu *pdu; struct snmp_pdu *response; oid anOID[MAX

Interfaces reported as down

2005-06-03 Thread Mohr James
Hi All! We are running net-snmp 5.2rc2 and have a number of machines where IF-MIB::ifOperStatus.N is reporting as down. In a number of cases, there is only one interface on the machine (other than lo0) so it does not make sense that this interface is down if the machine is reachable. So, the ques

Re: Help regarding snmpset operation

2005-06-03 Thread Dave Shield
On Fri, 2005-06-03 at 15:45, Sasikumar Bodathula wrote: > Where can i find example file or tutorial as reference for my > snmpset implementation. apps/snmpset.c Dave --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search

Re: Fwd: Re: Subagent kills Master AgentX after sending 299 traps

2005-06-03 Thread Salsa
--- Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-06-01 at 20:17, Salsa wrote: > > > > Maybe it would be more useful to dump the raw > > > packets instead. Try > > > > >netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, > > >NETSNMP_DS_LIB_DUMP_PACKET, > 1); > >

Help regarding snmpset operation

2005-06-03 Thread Sasikumar Bodathula
Hi All, Where can i find example file or tutorial as reference for my snmpset implementation. Regards, Sasikumar. --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search A

Re: array-user snmpbulkwalk worked for a table not entire mib

2005-06-03 Thread Dave Shield
On Fri, 2005-06-03 at 15:10, [EMAIL PROTECTED] wrote: > 63 =>./snmpgetnext -v 2c -c P-public localhost MY-MIB::rCount.0 > MY-MIB::rCount.0 = INTEGER: 0 That's wrong for a start. This should be returning 'MY-MIB::boardId.0 > 65 =>./snmpbulkget -Cr1 -v 2c -c P-public localhost MY-MIB::rCount.0 > MY

Re: array-user snmpbulkwalk worked for a table not entire mib

2005-06-03 Thread [EMAIL PROTECTED]
Hi Dave, Thanks again for the response. I wasn't sure if I would I interpret the instructions right, so I just did more and here is what I tried. rCount is the scalar after the previous table and before the next table. 62 =>./snmpgetnext -v 2c -c P-public localhost MY-MIB::rCount MY-M

Re: Request for explanation of notify field in conf file access line.

2005-06-03 Thread Dave Shield
On Fri, 2005-06-03 at 13:11, Nigel Cunningham wrote: > What I don't get is, having received a trap and decided that it > ought to be forwarded, how do I know where to send it? That's up to the configuration of the forwarding application. > Is this where the trapd.conf comes in to play? In the

Re: Request for explanation of notify field in conf file access line.

2005-06-03 Thread Nigel Cunningham
Hi. On Fri, 2005-06-03 at 19:46, Dave Shield wrote: > On Fri, 2005-06-03 at 10:29, Nigel Cunningham wrote: > > If I wanted that notifications field in the access line to be > > useful, I'd need to implement snmpd listening for traps > > In terms of proxy forwarding of traps, then yes. > Or

RE: SNMPv3 traps and snmptrapd

2005-06-03 Thread Jiro Iida
Thank you for a quick answer. Taught tutorial is read. It is actually confirmed to be able to receive SNMPv3 traps normally by combining snmptrap and snmptrapd. However, it is thought that it doesn't become a situation that I am describing because engineBoots and engineTime that snmptrap sets in

Re: Request for explanation of notify field in conf file access line.

2005-06-03 Thread Dave Shield
On Fri, 2005-06-03 at 10:29, Nigel Cunningham wrote: > If I wanted that notifications field in the access line to be > useful, I'd need to implement snmpd listening for traps In terms of proxy forwarding of traps, then yes. Or else have snmptrapd pull in (and use) the VACM tables. Note tha

Re: Request for explanation of notify field in conf file access line.

2005-06-03 Thread Nigel Cunningham
Hi. On Fri, 2005-06-03 at 19:11, Dave Shield wrote: > On Thu, 2005-06-02 at 01:43, Nigel Cunningham wrote: > > I was looking at the RFC 2573 again and I'm (again!) confused. If I > > understand it right section 3.5.2 deals with forwarding of notifications > > by the proxy. > > Correct. > > >

Re: snmpwalk table problem

2005-06-03 Thread Dave Shield
On Wed, 2005-06-01 at 21:55, Greg L Robillard wrote: > for (request = requests; request; request = request->next) { [snip] > What is happening is the request->next continues to move through > the table That's a misunderstanding. "request->next" doesn't move through the table, from one r

Re: snmpget + snmpset

2005-06-03 Thread Dave Shield
On Fri, 2005-06-03 at 05:10, Alaios wrote: > i have used the following command > snmpget -v1 -c public localhost .1.3.6.1.2.1.4.8.0 > to acquire the value of ipInDiscrads.. Fine. > I also want to set my own value so i try to do this > using snmpset .. No - you can't do that. Look at the definiti

Re: Request for explanation of notify field in conf file access line.

2005-06-03 Thread Dave Shield
On Thu, 2005-06-02 at 01:43, Nigel Cunningham wrote: > I was looking at the RFC 2573 again and I'm (again!) confused. If I > understand it right section 3.5.2 deals with forwarding of notifications > by the proxy. Correct. > But if that's right, perhaps I didn't understand you when > you sa

Re: Net-SNMP and ip aliasing

2005-06-03 Thread Dave Shield
On Thu, 2005-06-02 at 16:16, Glenn MacGregor wrote: Glenn> is there a way to get the actual ip the snmpget/set was sent to Glenn> in my subagent. Wes> No. That information isn't passed to a subagent. Glenn> This subagent needs that info because based on the ip the Glenn> request was sent to it ha

Re: Fwd: Re: Subagent kills Master AgentX after sending 299 traps

2005-06-03 Thread Dave Shield
On Wed, 2005-06-01 at 20:17, Salsa wrote: > > Maybe it would be more useful to dump the raw > > packets instead. Try > > >netsnmp_ds_set_boolean(NETSNMP_DS_LIBRARY_ID, > >NETSNMP_DS_LIB_DUMP_PACKET, 1); > > Ok, here goes a selected portion from both sides: > MASTER

Re: array-user snmpbulkwalk worked for a table not entire mib

2005-06-03 Thread Dave Shield
On Fri, 2005-05-27 at 15:15, [EMAIL PROTECTED] wrote: > If I put the non-repeater value to anything 1 and higher it works > fine. If you're running 'snmpbulkwalk', then presumably you're only supplying a single OID to work with? In which case, setting a non-repeater value of 1 (or more), means th

Help! Why "snmptrapd.conf" isn't in operation

2005-06-03 Thread jinyi
hi! the OS is redhat9.0, and the version of the net-snmp is 5.0.6 in "/etc/init.d/snmptrapd", I modify the OPTION's value as below .. OPTIONS="-c /etc/snmp/snmptrapd.conf -s -u /var/run/snmptrapd.pid -l1 -OfnQ -o /var/log/trap.log" .. the content of "/etc/snmp/snmptrapd.conf"