Re: Load new MIB

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 04/04/2008, Murilo Fujita <[email protected]> wrote:
>   I got run a script using the an example in snmpd.conf file.
>   This file has the instruction:
>  exec .1.3.6.1.4.1.2021.50 shelltest /bin/sh /tmp/shtest
>
>   I have my own Personal Enterprises Number (PEN).
>   What should be done to change the branch? Instead 2021
>     (U.C. Davis, EC Dept. Tom), my PEN?

Simply change the numeric OID listed in the exec line.
Replace '2021' with your PEN, and '50' with the location
you want this output to appear in your private subtree.

The choice of where to put this is totally up to you - the agent
doesn't care.   They're all just numbers anyway!

One thing you may wish to consider is to use
   "extend  .1.3.6.1.3.1.xxxx.yyyy...  shelltest /bin/sh /tmp/shtext"
       instead

One of the problems with the "exec" command is that the output
of this "relocatable" form doesn't actually form a valid MIB structure
(and it's therefore been dropped from the most recent release line).
The "extend" directive is similar, but has a newer, more complete,
more flexible, and above all *legal* output structure.
   The same structure is also used for both

      extend     {name}  {script}
and
      extend {OID}  {name}  {script}

so you can re-use the NET-SNMP-EXTEND-MIB definitions
for your relocated output (simply by changing the root of
the tree, and renaming the MIB).

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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.