RE: Complex Arbitrary Command Extension using SNMP

"PEOPLES, MICHAEL P (ATTSI)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C038F8186F9F1E4D8F7C0FDAB3317B1205D478E3@misout7msgusr7c.ugd.att.com>
Dave,

First of all, I want to thank you for the large amount of time you devote to this list.  Your efforts are the essence of what "open source" is all about.

I'll have a look at your suggestions below.

Two other questions:

1) Can you recommend a good book or resource on SNMP?  The NET-SNMP is okay, but for someone like myself who is unfamiliar with MIB structures and such, it can be a bit "dense".

2) Do you follow football (soccer) in the UK?

Michael Peoples
Senior Systems Manager
AT&T - ATTSI
Office:   614-789-8559
Cell:      614-886-0923
FAX:     614-789-8975
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield
Sent: Tuesday, March 23, 2010 5:05 AM
To: PEOPLES, MICHAEL P (ATTSI)
Cc: [email protected]
Subject: Re: Complex Arbitrary Command Extension using SNMP

On 22 March 2010 18:10, PEOPLES, MICHAEL P (ATTSI) <[email protected]> wrote:
> I have learned how to execute arbitrary commands, invoked by a pre-defined
> OID that I create using an "exec" command in the snmpd.conf file.  Example:
>
> exec .1.3.6.1.4.1.2001.65.1.101.1.1 hoplist_1 /usr/bin/cat
> /export/home/hopuser/traceroute.host_1.hoplist

Try looking at the "extend" directive.
It's similar to "exec" but has a much richer MIB structure
(both configuring the command to be run, and interpreting the output)

It also has the advantage of this MIB structure being legal
(which "exec {OID}" is not!)



> What I am trying to do is, create a "dynamic" set of extensions that
> function similar to IF-MIB.  I have a pre-defined list of hosts that I want
> to do a traceroute to.

Have you looked at the DISMAN-TRACEROUTE-MIB ?
That is an existing, standard MIB structure for managing traceroute requests.
I don't know how much experience you have of designing MIB modules,
but it would be a sensible starting point.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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.