SNMP Agent engineboot

2013-01-04 Thread Zheng, Wenjie (Barclay)
Hi Everyone, Happy new year 2013! I am trying to implement an SNMP agent using net-snmp APIs,I use below method to setup SNMP agent process, called SNMP_agt. snmp_set_do_debugging(1); snmp_enable_stderrlog(); init_agent("SNMP_agent");

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Reza Salehi
Hi Dave, I just want to let you know that the method you told me for cache perfectly worked for me. I adjusted timeout to 1( the smallest possible).Thanks a lot for your help. Regards, Reza From: Dave Shield To: Reza Salehi Cc: SNMP FORUM Sent: Friday, J

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Reza Salehi
Thanks Dave.   I will try the cache method you mentioned to see how it works for me. fill_table() function simply reads and parses  /proc/net/dev  file and fills table with statistics for the wireless interfaces (wifi0,wifi1..). So one  attempt to this function fills the whole table. BR, R

RE: getting errorno 99 for snmptrapd

2013-01-04 Thread Vanzant-Hodge, Amy
Thank you. It turns out that it was a firewall problem with settings in iptable. (Your answer helped point me in the right direction.) Once we reworked these to be "looser", snmptrapd was able to receive traps from the designated system. Amy Vanzant-Hodge

Re: how do I configure net-snmp on AIX

2013-01-04 Thread Dave Shield
On 3 January 2013 22:18, Wipro-Manish Sharma wrote: > I have AIX server 5300-07-10-0943 and looking for configuration net –snmp > on the same. > > > > We have installed net-snmp-5.5-1.rpm package on the server but we are > getting time response output. and in /var/log/snmpd.log we are getting err

Re: getting errorno 99 for snmptrapd

2013-01-04 Thread Dave Shield
On 4 January 2013 19:59, Vanzant-Hodge, Amy wrote: > errno 99 “Can assign requested address” > What does this mean and is there a way to fix this. It's a bit difficult to comment, given the limited information you have provided. Some details as to the environment you are working with, how you are

Re: mib2c best configuration mode to access global functions

2013-01-04 Thread Dave Shield
On 4 January 2013 19:34, Nuno Magalhães wrote: > What's the configuration I should use, with the mib2c tool, to access > global functions. > For example for invoking unix shell commands with popen or system and > retrieving a value. There's no special configuration required for mib2c - just take

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Dave Shield
On 4 January 2013 18:21, Reza Salehi wrote: > I put a printf("test"); inside the former one ( > athStatusTable_get_first_data_point() ).It gets called once if I run > snmpget but still it gets called multiple time ( up to number of column in > the table) if I run snmpwalk or snmptable. Yes, t

getting errorno 99 for snmptrapd

2013-01-04 Thread Vanzant-Hodge, Amy
errno 99 "Can assign requested address" What does this mean and is there a way to fix this. Thank you. Amy Vanzant-Hodge -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development

mib2c best configuration mode to access global functions

2013-01-04 Thread Nuno Magalhães
Hi, What's the configuration I should use, with the mib2c tool, to access global functions. For example for invoking unix shell commands with popen or system and retrieving a value. Can someone point me sample code. Thanks, Nuno Magalhães. --

Re: SNMP in netkit

2013-01-04 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 4 Ja

Re: How to i configure default port from 162 to some other port

2013-01-04 Thread Dave Shield
On 4 January 2013 03:05, Ashish Sharma wrote: > How do i configure snmptrap command to send trap to someother port like > (3211) instead of default port 162. > > I am trying with this command but it is not taking. > > snmptrap -v 1 -c -h 10.1.100.22:1622 "" "" 1 0 "" That's basically the right