Re: Can we define array in MIB file

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.devel,gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20/02/2008, Vishal N <[email protected]> wrote:
> Can we define array in MIB file?

Yes.
They are called "tables".


> I have a requirement in which I have 15 ports which has value true/false
> i.e. active/inactive. I have to provide these values by agent to NMS. Is it
> possible to declare single array object?

Yes.
Something like:

   portTable
      portEntry
         portIndex
         portStatus   (active, inactive)



> Or do I have to use table?

A table *is* an array.

> What is correct way to define such objects?

As a table.

Dave

PS: Can you please send queries to the -users list *or*
       the -coders list.   Not both!   Thanks

-------------------------------------------------------------------------
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/
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.