Re: Re: exec dose not work in 5.4

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20/07/07, Thomas Zenz <[email protected]> wrote:
> OK, but what about my Question concerning the MIB Structure,

The MIB structure is basically that defined in the MIB file
    NET-SNMP-EXTEND-MIB

with the OID that you specify as the root (instead of 'neExtendObjects').

It now has three separate tables:
   - one for the configuration of the "extend" directive
   - one for the basic output (e.g. number of lines, first line, total
output, etc)
   - one for the output taken a line at a time.

The "name" token from the extend directive is used as the index to each
of these tables.   This means that you can now use

    extend  .1.2.3.4.5.6  name1  someCommand
    extend  .1.2.3.4.5.6  name2  someCommand

and things will work correctly.
Before
    exec  .1.2.3.4.5.6  name1  someCommand
    exec  .1.2.3.4.5.6  name2  someCommand

would cause problems (since they were both trying to use the same
OIDs for results).


I'd suggest that you start by using

     extend    name1   someCommand

(without an explicit OID), and get a feel for what the output looks like
under NET-SNMP-EXTEND-MIB::nsExtendObjects.    That should help
clarify how things work when the MIB structure is moved elsewhere.



Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.