How to use variables list in Net-SNMP library

"Yurkov, Vyacheslav" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm doing some stuff with Net-SNMP library. Basically what I do is based
on the sample application Simple_Application
<http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application> . What
is not clear for me though is that part of code:

for (vars = response->variables; vars; vars = vars->next_variable) {
   // process variable
}

I did a lot of testing, read this post
<http://stackoverflow.com/questions/22821495/snmp-mib-table-complex-data
-object>  as well and it seems to me that you mostly get a scalar value
with SNMP request. So the question is: when can you get more than one
variable as a response?

Thanks.

--

Yours sincerely,

Vyacheslav Yurkov

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.