Sending trap from agent

2007-02-05 Thread Treesa Fairy Joseph
Hello, I have installed net-snmp 5.3-4.2 on fc5, using the ready rpms. I have compiled my own agent, as specified in http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon/index.html, using NET-SNMP-TUTORIAL-MIB. I have tested snmpset and snmpget. Both of them works fine. The agent is workin

ERROR

2007-02-05 Thread [EMAIL PROTECTED]
hi.. I got this error..what is the solution ./.libs/libnetsnmpmibs.so: undefined reference to `set_wmanIfBsOfdmaRangReqOppSize' ./.libs/libnetsnmpmibs.so: undefined reference to `AccessWmanDB' ./.libs/libnetsnmpmibs.so: undefined reference to `set_wmanIfBsOfdmCtBasedResvTimeout' ./.libs/libnets

Re: how to fetch/convert counter64 value 2 string in C

2007-02-05 Thread johan
Thanks Dave, your code works pretty well. Cheers, Johan Dave Shield wrote: > On 05/02/07, johan <[EMAIL PROTECTED]> wrote: > >> But, I can't fetch counter64 value and convert to char/string. I think >> caused of struct of counter64 is different with counter32. >> > > That's correct. > A

Re: how to fetch/convert counter64 value 2 string in C

2007-02-05 Thread Dave Shield
On 05/02/07, johan <[EMAIL PROTECTED]> wrote: > But, I can't fetch counter64 value and convert to char/string. I think > caused of struct of counter64 is different with counter32. That's correct. A Counter32 object is held as a simple integer ("long") variable, because this is pretty-much universa

Re: FW: agentx sub-agent setup

2007-02-05 Thread Dave Shield
On 05/02/07, Lacatena, Andrew <[EMAIL PROTECTED]> wrote: > Now that this is setup and running, I am unable to do a snmpwalk on the > sub-agent. When I run, snmpwalk -v2c -c 'community string' 'hostname' > iftable against my sub-agent I do not get any output. Doing it against > a host that isn't c

Re: FW: agentx sub-agent setup

2007-02-05 Thread Thomas Anders
Lacatena, Andrew wrote: > Thanks to Thomas' suggestion I have successfully configured net-snmp as > a master agent and a sub-agent on two different servers. This was > verified by doing a tcpdump on both servers and filtering for port 705. > > Now that this is setup and running, I am unable to do

Re: Tutorial asyncapp problem

2007-02-05 Thread Rick Lloyd
Dave, Thanks, I'm getting closer... asyncapp doesn't support snmpcmd() interface but I took a close look at snmptranslate to see what was different. 1) added debug_register_tokens("parse-mibs") and snmp_set_do_debugging(1) to asyncapp.c, compiled and ran. Output showed me asyncapp app was fi

US daylight savings update 2007

2007-02-05 Thread Francis Fauteux
Good day, We are using net-snmp on Red Hat 8 and Fedora Core 4 Linux machines. We need to upgrade our system in preparation of the US daylight savings update of 2007 (http://en.wikipedia.org/wiki/Energy_Policy_Act_of_2005#Change_to_daylig ht_saving_time

FW: agentx sub-agent setup

2007-02-05 Thread Lacatena, Andrew
Thanks to Thomas' suggestion I have successfully configured net-snmp as a master agent and a sub-agent on two different servers. This was verified by doing a tcpdump on both servers and filtering for port 705. Now that this is setup and running, I am unable to do a snmpwalk on the sub-agent. Whe

index in netsnmp subagent

2007-02-05 Thread Elias Bou Rahal
Hi all, I extended the snmpd agent by using the Dynamic Module Creation for the net-snmp agent. and it s working very well, but now i want to add index to the mibs. which procedures can i use to register the index of my mibs in snmp agent. in example if this is the mib: *jxmlsaiTableOBJECT-

how to fetch/convert counter64 value 2 string in C

2007-02-05 Thread johan
dear guys, I have below c code using snmp api in C. I have succeed to fetch integer and than doing convert to string/char variable. But, I can't fetch counter64 value and convert to char/string. I think caused of struct of counter64 is different with counter32. Any clues ? or any sample code to

Re: Debugging problem

2007-02-05 Thread Dave Shield
On 05/02/07, sathyanarayanan Thangavelu <[EMAIL PROTECTED]> wrote: > i tried to use to Debug but it is not showing any DEBUG statement that > include in my .c file > i tried by using > snmpd -f -Le > is there any method to debug my program in netsnmp You'd need to run the agent usin

Debugging problem

2007-02-05 Thread sathyanarayanan Thangavelu
hi friends How To Debug the snmpd i tried to use to Debug but it is not showing any DEBUG statement that include in my .c file i tried by using snmpd -f -Le is there any method to debug my program in netsnmp please tell me sathya

Re: Problem using net-snmp as subagent (Error in packet)

2007-02-05 Thread Dave Shield
On 02/02/07, Johnny Ljunggren <[EMAIL PROTECTED]> wrote: > I've made a master AgentX (using agentpp) that uses net-snmp as subagent > to provide mib-II information. I get a general failure if I try to get > some of the OIDs. I did some more research and found that only the OIDs defined as OID: SNM

Re: Problem with Community string setting for v2

2007-02-05 Thread jiang jilin
Hi, it seems you have a defcommunity directive in snmp.conf,so,my suggestion is remove the file snmp.conf(remeber to restart the snmpd daemon),and it should work well as you expect,if not,tell me again. Jiang On 2/2/07, Anusuja Gagganapally <[EMAIL PROTECTED]> wrote: Jinag, Please find a

Why does sub-agent get broken-pipe?

2007-02-05 Thread Makavy, Erez (Erez)
Hi, The problem --- when my sub-aganet does an operation which take more than 1 sec (between 1-2 secinds), it crushes on broken pipe. why? Background - Net-SNMP-5.3.1, Linux, PPC. Sub-agent running on same machine. Questions --- I guess the master a

Re: trap generator

2007-02-05 Thread Dave Shield
On 05/02/07, twiety20002 a <[EMAIL PROTECTED]> wrote: > i want to write a code for SNMP "trap generator"..from agent..so any one can > guide..frm where to start Have a look at the FAQ entry: How can I get the agent to generate a trap (or inform)? http://www.net-snmp.org/wiki/index.php/

trap generator

2007-02-05 Thread twiety20002 a
i want to write a code for SNMP "trap generator"..from agent..so any one can guide..frm where to start thanz - Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games.--