Thank you very much! I'll try it soon. Is there any way I can put in the 
expression directly by net-snmp api, or do I have to code seperately to 
identify algebra expression? 

------------------                               
xiao ren
2008-06-24

-------------------------------------------------------------
发件人:Dave Shield
发送日期:2008-06-24 16:33:06
收件人:xiao ren
抄送:Net-snmp-users
主题:Re: Is there a way to query multiple variable at the same time?

2008/6/24 xiao ren <[EMAIL PROTECTED]>:
> how can I query multiple variables from a host at one time?

By adding the relevant varbinds to the same request PDU.

> Any advice is appreciated

Just call "snmp_add_null_var()" several times to add each
of the necessary varbinds, before calling 'snmp_send()'
or 'snmp_synch_response()' to actually send the request.



>       and code example is more helpful.

See apps/snmpget.c or  apps/snmpstatus.c (or almost
any of the other command-line tools) for examples.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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

Reply via email to