Re: net-snmp under NetBSD

2009-11-12 Thread Mike Bowie
On 11/12/09 12:39 AM, Dave Shield wrote: > 2009/11/11 Mike Bowie : >> pkgsrc is currently building 5.4.2.1. > > OK - so it's a recent release. > >> $ snmpwalk -v1 -c public 127.0.0.1 | grep "should be" >> IP-MIB::ipForwarding.0 = Wrong Type (should be INTEGER): Counter32: 4601253 > > Let's conce

Re: mib files are deleted

2009-11-12 Thread Dave Shield
2009/11/12 Xian Chen : > I delte all of the mib files in /usr/shar/snmp/mibs/ which is the MIBDIR by > mistake. Now, each time running snmpwalk, I get these errors. > How can I force snmpd to generate these files again? They're not generated by the SNMP agent - they are part of the SNMP distributi

mib files are deleted

2009-11-12 Thread Xian Chen
Hello, I delte all of the mib files in /usr/shar/snmp/mibs/ which is the MIBDIR by mistake. Now, each time running snmpwalk, I get these errors. How can I force snmpd to generate these files again? Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-TY

Re: Configuring trap receiver address and community string from the C code

2009-11-12 Thread Dave Shield
2009/11/12 Goutham BG : > I am using net-snmp to send alarms generated in the system > as SNMPv2 trap notifications. Is this a standalone application, a separate subagent, or a module within the main SNMP agent? How are you sending the traps? > As part of this I need a way to configure the trap

Re: net-snmp under NetBSD

2009-11-12 Thread Dave Shield
2009/11/11 Mike Bowie : > pkgsrc is currently building 5.4.2.1. OK - so it's a recent release. >  At the most basic level, the > issue is that querying snmpd returns values which look to be > uninitialized, for example: > > $ snmpwalk -v1 -c public 127.0.

Configuring trap receiver address and community string from the C code

2009-11-12 Thread Goutham BG
Hi I am using net-snmp to send alarms generated in the system as SNMPv2 trap notifications. As part of this I need a way to configure the trap receiver address and the community string from a C/C++ program (or a subagent). Can you please let me know how trap receiver address and community string