RE: SNMP Set is getting Failed

2011-01-18 Thread Kumar Sanjay-XJD784
Hi Dave, Here I am posting the latest version of Code and output observed: I am also attached the MIB part for the same. 1. SNMPSET request and output: /home/symbol/Sanjay/net-snmp-5.5/apps/snmpset -c private -v 2c 127.0.0.1:8161 ccAuditLogRowStatus.\"abc\".127.0.0.1 i 4 SYMBOL-CC-WS20

static linking on Linux,

2011-01-18 Thread Pavan Kumar Kakunoori
Hello team, I am attempting to perform static linking of installed agent libraries with my application, in below way being in the Makefile NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs` #NETSNMPLIBDEPS := $(shell $(NETSNMPCONFIG) --build-lib-deps $(NETSNMPDIR)) #LIB_DEPS=$(NETSNMPLIBDEPS) LIBS=$(NETS

Re: SNMP Set is getting Failed

2011-01-18 Thread Dave Shield
On 18 January 2011 15:26, Kumar Sanjay-XJD784 wrote: > I am able to do the snmpset and also able to "ADD" a new row entry in the > Table > > But when I do the snmpwalk I get only  ***last*** added row enrty in tavle > > What could be the reason ?? A bug in your code? Please post the latest vers

Re: How net-snmp identifies the coresponding subagent?

2011-01-18 Thread Dave Shield
On 18 January 2011 16:05, Benix Vincent wrote: > I have one master agent and two subagents. Now I register a lot of mibs from > two of the sub agents using register_mib (). when a request comes from > outside world, how net-snmpd identifies the corresponding subagent to > forward? When the subage

How net-snmp identifies the coresponding subagent?

2011-01-18 Thread Benix Vincent
Background: I have one master agent and two subagents. Now I register a lot of mibs from two of the sub agents using register_mib (). when a request comes from outside world, how net-snmpd identifies the corresponding subagent to forward? or How subagent idenfies that the request if for it? T

RE: SNMP Set is getting Failed

2011-01-18 Thread Kumar Sanjay-XJD784
Hi Dave, I am able to do the snmpset and also able to "ADD" a new row entry in the Table But when I do the snmpwalk I get only ***last*** added row enrty in tavle What could be the reason ?? Thanks, Sanjay -Original Message- From: Kumar Sanjay-XJD784 Sent: Tuesday, January 18, 201

RE: SNMP Set is getting Failed

2011-01-18 Thread Kumar Sanjay-XJD784
Thanks Dave Now I am able to do the SNMPSET operation [RESERVE1 is not required until data is currect in snmpset request] But I am facing a new problem =>>> SET request is modifying the "existing row" instead of adding a new enrty ? I feel, I am making some mistake while adding the new entry in

Re: SNMP Set is getting Failed

2011-01-18 Thread Dave Shield
On 18 January 2011 10:57, Kumar Sanjay-XJD784 wrote: > I am able to get the correct "table_info" > but "table_entry" is NULL Yes. Remember, 'table_entry' points to the row of the table (as it stands *before* processing the request) that the request is referring to. Now, think about what you are

RE: SNMP Set is getting Failed

2011-01-18 Thread Kumar Sanjay-XJD784
Hi Dave, I am able to get the correct "table_info" but "table_entry" is NULL Hope function =>> table_entry = netsnmp_extract_iterator_context(request); Is not able to get the correct table information(indexes and values) from "request" Which are send from snmpset request I am trying to figure

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-01-18 Thread Abraham Varricatt
> > See 'snmp_config(5)' for details > > Dave > Thank you for the reply! -Abraham V. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware t

Re: SNMP Set is getting Failed

2011-01-18 Thread Dave Shield
On 18 January 2011 08:09, Kumar Sanjay-XJD784 wrote: > 4. output of snmpd: >  MODE_SET_RESERVE1 :Table Details are Empty-> > Fun:ccAuditLoggingCfgTable_handler Line:272 OK - so let's have a look at the code that triggers this message: case MODE_SET_RESERVE1: table_entry = netsnm

Re: Reg. DEBUGMSGTL messages of the sub-agent

2011-01-18 Thread Dave Shield
On 18 January 2011 03:06, Abraham Varricatt wrote: > Am I correct to assume that by > including "debugTokens" in the snmpd.conf file, we can achieve the same > effect? Very nearly. Remember that the -D option is common to *all* Net-SNMP commands - not just the

Re: SNMP v3 Proxy to SNMP v1 host

2011-01-18 Thread Dave Shield
On 18 January 2011 02:36, Jacob Seeley wrote: >However, what I didn't > mention before was that I need host2 to proxy more then just host3, but > host4, host5, host6, etc. What information will you be supplying from each (proxied) host? Is it the same set o

RE: SNMP Set is getting Failed

2011-01-18 Thread Kumar Sanjay-XJD784
Hi Dave, I have done the complete set-up with snmp version 5.5 and =>>>Following are the required details : 1. Starting the snmpd as: /home/symbol/Sanjay/net-snmp-5.5/sanjay/sbin/snmpd -c /home/symbol/Sanjay/net-snmp-5.5/snmpd.conf -f -Le udp:8161 2. snmpset request command