snmp - Retrieve multiple tables with snmp4j TableUtils -


documentation snmp4j tableutils implies gettables method can used retrieve more 1 table. know how use in manner. not intuitive me. i'm wondering if put in columns table 1 , table 2 in oid argument , table util able seperate them out , i'll have distinguish them in list of tableevents (rows) returned?

http://www.snmp4j.org/doc/org/snmp4j/util/tableutils.html

i have tried same situation have posted here. while trying out oids different tables reached following conclusion , i'm nt sure whether way have intended. variablebinding[] output contain result in order in passing oids array , thereby can match input , output.

for eg input - new oid[".1.3.6.1.2.1.2.2.1.2", ".1.3.6.1.2.1.25.4.2.1.2"]; output -new variablebinding["1.3.6.1.2.1.2.2.1.2.1=somevalue", "1.3.6.1.2.1.25.4.2.1.2.1=system idle process"]; new variablebinding["1.3.6.1.2.1.2.2.1.2.2=somevalue", null]; . . .

hope use you.

regards

ajin


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -