From owner-freebsd-questions Mon Jul 8 20:45:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7BB937B400 for ; Mon, 8 Jul 2002 20:45:30 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DFA843E31 for ; Mon, 8 Jul 2002 20:45:30 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g693jOxI046918; Mon, 8 Jul 2002 22:45:24 -0500 (CDT) (envelope-from dan) Date: Mon, 8 Jul 2002 22:45:23 -0500 From: Dan Nelson To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: Re: SNMP driving me bonkers Message-ID: <20020709034523.GD13884@dan.emsphone.com> References: <000a01c226e9$b163fa30$2e00a8c0@dogbert> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000a01c226e9$b163fa30$2e00a8c0@dogbert> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 08), Brian McCann said: > Ok...I've got to be missing something completely obvious. I am trying > to query an SNMP object on a APC ups. I downloaded the mib file from > www.apc.com , put it into the mibs directory, and tried running > "snmpget". It shot back "There is no such variable name in this MIB. > Failed object: system.sysUpTime.6.1...". So I tried telling it the > exact directory path the MIB files were in, no go. Told it the exact > file...no go. I made sure the file (powernet.mib) was in DOS format, > and tried calling it all kinds of things. Nothing seems to > work...BUT....a few weeks ago I got it working on another box...and I > can't seem to find anything wrong. Even when I do an snmpwalk on the > device, it doesn't show that object...or any of the "UPS" related > objects. Does anyone have any ideas? I even didn't know any APC UPS devices had Ethernet interfaces. Try setting the environment variable MIBS=ALL, then run "snmpwalk public .1" . That should list all the MIBS available on that machine. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message