SNMP URL

Reed Wade (wade@cs.utk.edu)
Sun, 21 Aug 1994 01:21:13 -0400


And I've always wanted an SNMP URL as well. This needs a bit more
work yet as I haven't dealt with SNMP in some time.

I'd be very happy for comments tho.

-Reed Wade

SNMP URL

snmp://<hostport>/1/<community>/<command>/<OID>[/<value>]

examples:

snmp://blah.tuna.com/1/public/Get/0.1.3.768
snmp://squid.cs.utk.edu/1/public/Set/0
snmp://squid.cs.utk.edu/1/public/GetNext/0

hostport
what you think it means

1
Indicates SNMP URL version 1--the URL, not the version
of SNMP. This is a hook to allow changes to the URL
such as incorporation of security information. [If we
can describe a comprehesive URL now then maybe this can
go away.]

community
SNMP community string

command
One of: get, set, getnext, gettable, getall. This value
is not case sensitive.

Get performs a normal SNMP Get request.

Set performs a normal SNMP Set request using the contents
of the value field.

GetNext performs a normal SNMP GetNext request.

GetTable gets the entire contents of the table refered to by
the OID field.

GetAll walks the entire database (using SNMP GetNext requests)
beginning after OID. (OID is used for the first GetNext
request.)

OID
This is the numeric dotted decimal object identifier in common use.
There is no provision for named objects. [Maybe we could provide
for the common ones tho.]

value
If the command is "set" the value portion of the URL is
used. If value is ommited, it is assumed to be NULL.

---------
wade@cs.utk.edu -- http://www.netlib.org/utk/people/ReedWade.html