Received Trap Won't Decode

2009-06-07 Thread adam
Why won't the received trap decode to "INFORMATION: Communication with the UPS reestablished."? By looking at the tcpdump below, is the hardware sending a bad OID ( 0.1.0.0 ) or is it something else? Attached is the MIB which is in the "/usr/share/snmp/mibs/UPSD-MIB.txt" directory. File /etc/sn

Re: Having problem with stirng index table

2009-06-07 Thread Dave Shield
2009/6/7 geri noorzaman : > The example value of data->wmanIfBsSsMacAddress is a string like > 'AA:BB:CC:DD:EE:FF'. Is this actually a text string ("AA:BB:CC:DD:EE:FF" - length 17), or a binary octet string ('0xaa', '0xbb', '0xcc', '0xdd', '0xee', '0xff' - length 6) ? The latter would be the more

Re: Question on Iterator model without having to setup a linked list

2009-06-07 Thread Dave Shield
2009/6/5 Ranganathan, Viji (NSN - US/Boca Raton) : > I am trying to implement a subagent that gets data from an external data > manager. This external data manager has it's own cache and it only provides > interfaces to get and set data. Does it provide an interface for "given one row (index) -

Re: Having problem with stirng index table

2009-06-07 Thread geri noorzaman
I'm sorry, but thank you so much for your answer. Here's is the comple code for get_first_data_point function (get_next_data_point is similar to this): netsnmp_variable_list * wmanIfBsRegisteredSsTable_get_first_data_point(void **my_loop_context, void **my_data_context,

Windows server 2008 support

2009-06-07 Thread Moby
Hello all. I have the net-snmp agent working fine on a number of windows 2003 servers. However, I cannot get it to work on windows server 2008. I have the same configuration as regards net-snmp and the windows snmp service (which is installed but disabled as per docs). However, doing the followi

Question on Iterator model without having to setup a linked list

2009-06-07 Thread Ranganathan, Viji (NSN - US/Boca Raton)
Hi, I am trying to implement a subagent that gets data from an external data manager. This external data manager has it's own cache and it only provides interfaces to get and set data. I do not have direct access to this linked list. I was hoping to avoid creating another linked list just so the it

Re: Having problem with stirng index table

2009-06-07 Thread geri noorzaman
The example value of data->wmanIfBsSsMacAddress is a string like 'AA:BB:CC:DD:EE:FF'. Sorry, but I don't get what you mean, so instead of using code like: snmp_set_var_value(vptr,idx1,strlen(idx1)); just use code like this: snmp_set_var_value(vptr,idx1,17); ??? Thank u, for response. ___