1832880 Members
2471 Online
110048 Solutions
New Discussion

snmptable?

 
ETI
Occasional Advisor

snmptable?

Hi to all.

Is there the snmptable command in NNM?
I need the table view format to represent a query result.

I see the snmpwalk command in the /opt/Ov/bin, but it show the information in sequence. I need a table view with lines and column.

Ed.
1 REPLY 1
Wieslaw Krajewski
Honored Contributor

Re: snmptable?

Hi,

There is no snmptable command in HPUX and in NNM itself.
Anybody who wants to display a table in the row column format must write an own programm or script.
But you should know that, although it is possible, it seems to be pretty complicated task.
This follows from the SNMP standard.
Possible services are: GetRequest, GetNextRequest, and GetBulk(version 2 of SNMP) and they are implemented in commands: snmpget, snmpnext, snmpwalk and snmpbulk.
Any table can be read either in lexicographic order or in a random order.
Lexicographically means that a table is read column by column. And the obtained in such a way table should be transformed to the row column form.
As an alternative you can read a table in such a way that first there are read all instances from the first raw, then all instances from the second row and so on (this corresponds to the so called random acces). But this way requires the instance identifiers to be specified explicitly.
These identifiers are defined in different ways for different tables. Often they are simply values from respect columns selected as indices. And moreover, the number of rows should be determined at the very beginning.

Hope this brief explanation helps you to take right decision.
Permanent training makes master