Re: SNMP request

2011-12-28 Thread Dave Shield
On 27 December 2011 12:30, Leila M wrote: > environment: gcc 4.5 under Ubuntu 11.04 > I'm trying to implement a C application that sends an snmp request > (snmp get) to retrieve some information (variables) from the local MIB > but when executing the program it seems that it is not able to get the

Re: ask sth. about trap

2011-12-28 Thread Dave Shield
2011/12/26 朱飞 : > I have some puzzles on snmp trap. In fact, I have got my own mibs, but I > dont know whether can I use only one Trap for all my 20 mib nodes which are > not all in the same structure. What are you trying to represent with this trap? Remember that a trap is reporting an event - s

Re: snmpinform

2011-12-28 Thread Dave Shield
On 23 December 2011 21:12, Simon Chamlian wrote: > Is there any explanation on -r RETRIES and -t TIMEOUT options of snmpinform? man snmpcmd -r retries Specifies the number of retries to be used in the requests. The default is 5. -t timeout

Re: snmptrap

2011-12-28 Thread Dave Shield
On 22 December 2011 21:43, Simon Chamlian wrote: > Actually, > > # snmpinform -v 3 -u  testrwauth -a MD5 -A > "authentication test" -l authNoPriv 172.27.57.65 42 coldStart.0 > Authentication failed for testrwauth Is the user 'testrwauth' defined in the snmptrapd.conf file? See the tutorial

Re: snmptrap

2011-12-28 Thread Dave Shield
On 22 December 2011 21:41, Simon Chamlian wrote: > I tried: > > # snmptrap -v 3 -u  testrwauth  -a MD5 -A "authentication test" -l > authNoPriv 172.27.57.65 42 mpbcRMHMon-HPU-State Try loading the MIB file that defines this object - either by using the '-m' option to list the name of the

Re: solve a problem ,how can commit it ?

2011-12-28 Thread Dave Shield
On 20 December 2011 02:40, meijusan wrote: >        i find a bug in the net-snmp (5.4.2) and solve it ,how can commit it   >  ? Report the bug and solution in the project tracker See http://net-snmp.sourceforge.net/support/bugreports.html I've just been working through some of the recently

Re: No Such Instance when requesting multiple Counter64 on a table

2011-12-28 Thread Dave Shield
On 19 December 2011 10:12, elisa scandellari wrote: > I've got a problem when I do a get request on a table that contains > Counter64 values. > If I do a get request on a single value Counter64 the response is correct: > When I try to do: > snmpget -v 3 -a MD5 -A "passw" -l authPriv -u username

Re: net-SNMp on HP-UX ia

2011-12-28 Thread Dave Shield
On 17 December 2011 12:00, Salah Abdulbaqi Ali wrote: > Kindly, we need to have net.SNMP on top of our HP-UX IA64 11.31. We don't have access to such equipment, so cannot provide ready-compiled binaries. But you can always try compiling the software yourself. Try retrieving the source code fro

Re: help on snmpv3 needed

2011-12-28 Thread Dave Shield
On 12 December 2011 06:18, Rajshekar wrote: > 3)  For snmpv3 I created users like raj with noauth(no authentication) > and many more users with auth and priv What are the exact entries in the snmpd.conf file that create these users? > 4)  After which the snmpd.conf file will be created

Re: conversion of oid from "1,3,16,15,1" to "1.3.16.15.1"

2011-12-28 Thread Dave Shield
On 16 December 2011 06:15, Kumar Sanjay-XJD784 wrote: > Is there any function in net-snmp code to convert the OID from > "1,3,16,15,1" to "1.3.16.15.1" Is this a string comma-based representation, or the contents of an oid[] array? The APIs for displaying the value of an OID array are described

Re: how to send and receive traps using net snmp

2011-12-28 Thread Dave Shield
On 14 December 2011 09:44, rajshekar targar wrote: > i have downloaded net snmp for windows. i want to send traps for version 1 >  using the command prompt The snmptrap(1) manual page includes an example of sending a v1 trap. Try that command Dave ---

Re: why snmpset doesn't work on some OIDs?

2011-12-28 Thread Dave Shield
On 11 December 2011 09:34, h bagade wrote: > I'm trying to set different OIDs on freebsd8.2 with use of snmpset. In some > cases it works but in others it doesn't! > > I was successful in setting sysName(1.3.6.1.2.1.1.5.0) and sysLocation( > 1.3.6.1.2.1.1.6.0) but couldn't set ipForwarding( 1.3.6.