Hi Dave, I'm able to get multiple attributes for scalars,
however i've some problem with tablular objects. When ever I
issue a snmpget for multiple attributes of tabular type the response would be
as follows:snmpget -v 3 -u myuser -l authNoPriv -a MD5 -A mypassword -IR
localhost MytableUserLabel.1 MytableId.1MY-MIB::MytableUserLabel.1 = Wrong Type
(should be OCTET STRING): INTEGER: 1MY-MIB::MytableId.1 = No Such Instance
currently exists at this OIDI found that the request which master is sending to
the subagent is not as that of scalar objects.while debugging I found from the
scalar objects that, 2 requests will be sent for 2 different scalar objects.
Butthis is not the case in table objects. Its sending 2 different requests with
a single table object(in the above case 1st object.)What could be wrong
here??My mib2c code for MODE GET of tablular objects which i've slightly
modified is as follows:case MODE_GET: &
nbsp; for (request = requests; request; request =
request->next)
{ table_entry
= (struct MyTable_entry
*)
netsnmp_extract_iterator_context(request);
table_info =
netsnmp_extract_table_info(request);
switch (table_info->colnum)
{ case
COLUMN_MYTABLEID:
Response_handle(unsigned char *Buffer,int size, netsnmp_request_info
*requests);
break; case
COLUMN_MYTABLEUSERLABEL:&n
bsp;
Response_handle(unsigned char *Buffer,int size, netsnmp_request_info
*requests);
break;
default:
snmp_set_var_typed_value(request->requestvb,
SNMP_NOSUCHOBJECT, NULL, 0);  
; }
} break;On Wed, 23 Jan 2008 09:53:40
+0000 "Dave Shield" wrote On 23 Jan 2008 09:39:14 -0000, girish wrote: >
But what I doubt is if we send a get request with multiple attributes in >
a single request how it will be handled by the Master. All the varbinds will
be processed, and the results returned in the same order as the original
request. > How it will forward it to the subagent. The varbinds that
are relevant to a particular subagent will be forwarded to that subagent.
Those that are registered within the main agent will be handled internally.
The master agent stiches everything together in the right order, before
returning the response. > How actually this handled at master
side??? I'm sorry - I don't have the time to explain the inner workings of
the agent. Please just believe me that Everything Just Work
s. (In fact, it relies on the 'next_variable' links of the 'requestvb'
structure - which is why you shouldn't be following these. Your MIB module
should work with the 'request->next' links, which follow the varbinds
relevant to your module. Anything else is None Of Your Business). Dave
------------------------------------------------------------------------- This
SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R)
Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Net-snmp-users mailing list
[email protected] Please see the following page to
unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Regards,
Girish
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users