;mode ==
MODE_GETNEXT) } // END
FOR
return
SNMP_ERR_NOERROR;}
Thanks if advance, I hope this is enough
info. I can't see any errors being created, except the for loop doesn't
loop and the output for multiple values is always the index value.
Help
Greg L Robillard
--
Can anyone explain this data set table handler
failure.
net-snmp 5.0.9
OS Linux 7.3
Command:
snmpget -v2c -d -D ALL -m /bin/mymib.my -c public
localhost enterprises.103.1.9.2.5.2.1
Debug Output:
snmp_send: Building SNMPv2 message...trace:
_snmp_build(): snmp_api.c, 2756:dumph_send: PDU-
all subsequent values are returning the OID index
value.
I am currently runnig 5.0.9 version on Linux
7.3.
Thanks in advance.
Greg l Robillard
-
Using Tomcat but need to do more? Need to support web services, security?
Get st
In order to further debug my problem with snmpget to tables, I ran
thefollowing command.snmpget -v2c -D ALL -Lf debug.txt -c public
localhostenterprises.103.1.9.2.5.1.2.4
enterprises.103.1.9.2.5.1.3.4enterprises.103.1.9.2.5.1.5.4With the
following resultsOUtputSNMPv2-SMI::enterprises.103.1.9
I am using a loop to work through the request within the
handler.for(request = requests; request; request = request->next)I am not
certain how to answer you other questions.How have you implemented the
tables? Old or new API?Which table framework?- Original Message -
From: "Dave Shield
is happening is the request->next continues to move through the table, so the resulting values are inaccurate.
Has anyone seen this problem. Or is there a way to reset the table request once
this occurs.
Thanks
Greg L robillard
---
Robert,
Thanks for the information. When I execute my get statements, I am
returning the values that I am expecting. I would additionally like the
snmpwalks to return the identical information which it is not. As you
stated, I was not using the indexing as it was intended, but I still
don't
Ok, I understand why it is showing a 0 for the first entry and am handling
this ok, but as the walk continues through the table, it extracts index 1,
the first entry, handles it, repeats returning once again index 1. Then it
moves through the table correctly, grabbing the right row and column.
Robert,
Thanks for this info on the index 0. That solves one of my issues of
trying to correctly extract information from my table. The other issue
is this:
I loop through the table
for (request = requests; request; request=request->next)
{ ..
table_info = netsnmp_extract_table_info(reques
When I am executing a table index:
table_info = netsnmp_extract_table_info(request);
index = *(table_info->indexes->val.integer);
The initial index value that is always returned is always 0. When the
tables are initialized, I set them to 1.
Do you know what this is all about. This is causing my
After I have created snmp tables with my mib values, I can execute
snmpget commands to the data and accurate data is returned. When I
execute snmpwalk of the entire oid structure, the first value in skipped
and the remaining values have the last and first entry rotated.
Any advice on where I c
11 matches
Mail list logo