Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2008 20:48:37 -0400
From:      Tony Holmes <tony@crosswinds.net>
To:        freebsd-isp@freebsd.org
Subject:   SNMP - Hair Pulling Error :)
Message-ID:  <20080904004837.GA22814@crosswinds.net>

next in thread | raw e-mail | index | archive | help
After a slow start and a couple private conversations (THANKS!)
I have gotten net-snmpd compiled, configured, running.

I ran into an error and went to the simplest config I could and still
get the "No Such Instance currently exists at this OID" error.

Details:

	FreeBSD 4.10 		cannot upgrade
	net-snmp-5.1.1_1   	yes, old
	ipfw with counter rules installed 100 - 520ish

/usr/local/etc/snmp/snmp.conf:


	rocommunity     public
	syslocation here
	syscontact me
	pass .1.3.6.1.4.1.3027.1 /root/bytecount 100 .1.3.6.1.4.1.3027.1

/root/bytecount:

	#!/bin/sh

	echo "$2"
	echo "integer"
	/bin/expr `ipfw -a list $1 | /usr/bin/awk '{ print $3 }'` % 4294967295

Run bytecount test (pulled from snmp debug):

	# /root/bytecount 100 .1.3.6.1.4.1.3027.1 -g .1.3.6.1.4.1.3027.1
	.1.3.6.1.4.1.3027.1
	counter
	7151484

Run the snmpget:

	# snmpget -v 2c -c public localhost .1.3.6.1.4.1.3027.1
	SNMPv2-SMI::enterprises.3027.1 = No Such Instance currently exists at this OID

The net-snmp shows the call being made. According to the docs I have the
format right for the output of /root/bytecount.

Googling lead me to this simple config and still I get the error and now
sit stumped.

Leads? Urls?

TIA

-- 
Tony Holmes

Ph: (416) 993-1219

Founder and Senior Systems Architect
Crosswinds Internet Communications Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080904004837.GA22814>