[rrd-users] Re: [OT] - Get versus Getnext

Serge Maandag serge.maandag at staff.zeelandnet.nl
Thu Feb 20 18:17:05 MET 2003


Is the error coming from the snmp agent or from the snmpget binary
you're using?

You can b.t.w. call a script from mrtg. Then do a snmpgetnext in your
script.

Serge.

-----Original Message-----
From: Simon Mullis [mailto:Simon.Mullis at equinoxsolutions.com] 
Sent: Thursday, February 20, 2003 5:52 PM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] [OT] - Get versus Getnext



Afternoon, all...

Apologies for the slightly off-topic post...

Using MRTG I would like to query the MSSQL mssqlSrvInfoUserConnections
OID
(.1.3.6.1.4.1.311.1.4.1.1.2.1.16)

Doing a walk / getnext on the above OID using (insert your favourite MIB
browser here) I get a reponse along with a system specific OID:

[user at host]$ snmpgetnext -v2c <hostname> <community>
.1.3.6.1.4.1.311.1.4.1.1.2.1.16
enterprises.311.1.4.1.1.2.1.17.8.72.69.65.84.95.83.81.76 = Gauge32: 43

Using the OID in the reponse, I assume that I should be able to perform
a
simple snmp get on it to get the data I require.

BUT:

[user at host]$ snmpget -v2c <hostname> <community>
.1.3.6.1.4.1.311.1.4.1.1.2.1.16.8.72.69.65.84.95.83.81.76
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: enterprises.311.1.4.1.1.2.1.16.8.72.69.65.84.95.83.81.76


Two questions: 

1. Does anyone have any idea as to why this is the case?

2. Can I make MRTG do a getnext instead of a get? (I think I know that
this
is a no).

I have tried both SNMPv1 and v2c.
I have tried appending .0 .1 .2 etc to the end of the OID.

Please help!!

Many thanks in advance for any insight anyone may give me.

Kind Regards,

SM



------------------------------------------------------------------------
------------------
Equinox Converged Solutions Limited.
Tel: +44 (0)1252 405 600
http://www.equinoxsolutions.com

IMPORTANT NOTICE:
This message is intended solely for the use of the Individual or
organisation to whom it is addressed. It may contain privileged or
confidential information.  If you have received this message in error,
please notify the originator immediately.
If you are not the intended recipient, you should not use, copy, alter,
or disclose the contents of this message.  All information or opinions
expressed in this message and/or any attachments are those of the author
and are not necessarily those of Equinox Converged Solutions Limited.
Equinox Converged Solutions Limited accepts no responsibility  for loss
or damage arising from its use, including damage from virus.
------------------------------------------------------------------------
------------------

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list