Hey Ganbold, Try this - Usage: snmpget [-Cf] [options...] <hostname> {<community>} [<objectID> ...]
My SNMPGet is from UCD-SNMP version 4.2.4 Martin > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Mike McCauley > Sent: Wednesday, October 09, 2002 2:06 PM > To: [EMAIL PROTECTED] > Subject: (RADIATOR) Problem with SNMP communities > > > > > ---------- Forwarded Message ---------- > > Subject: BOUNCE [EMAIL PROTECTED]: Non-member submission > from [Ganbold > <[EMAIL PROTECTED]>] > Date: Tue, 8 Oct 2002 17:59:47 -0500 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > > >From [EMAIL PROTECTED] Tue Oct 8 17:59:46 2002 > Received: from publica.ub.mng.net (publica.ub.mng.net [202.179.0.80]) > by server1.open.com.au (8.11.0/8.11.0) with ESMTP id g98MxhC30280 > for <[EMAIL PROTECTED]>; Tue, 8 Oct 2002 17:59:44 -0500 > Received: (from root@localhost) > by publica.ub.mng.net (8.12.5/8.12.2) id g993lBFp059231 > for [EMAIL PROTECTED]; Wed, 9 Oct 2002 11:47:11 +0800 (ULAT) > (envelope-from [EMAIL PROTECTED]) > Received: from ganbold.publica.ub.mng.net (external.micom.mng.net > [202.179.0.164]) (authenticated bits=0) > by publica.ub.mng.net (8.12.5/8.12.3) with ESMTP id g993lANC059221 > for <[EMAIL PROTECTED]>; Wed, 9 Oct 2002 11:47:10 +0800 (ULAT) > (envelope-from [EMAIL PROTECTED]) > Message-Id: <[EMAIL PROTECTED]> > X-Sender: [EMAIL PROTECTED] > X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 > Date: Wed, 09 Oct 2002 11:56:14 +0900 > To: [EMAIL PROTECTED] > From: Ganbold <[EMAIL PROTECTED]> > Subject: Problem with SNMP communities > Mime-Version: 1.0 > Content-Type: text/plain; charset="us-ascii"; format=flowed > > Hi, > > We have problem with snmpget. We put SNMP community in client config part > but when snmpget runs it uses 'public' > to get info. How can I make snmpget to use MN-2008? > > snmpget Version is 5.0.1. > > tia, > > Ganbold > > Following is the part of config file and debug ouput. > > ------------------------------------------------------------------ > ----------- > ------ <Client 202.179.0.130> > Secret xxx > DupInterval 60 > NasType Cisco > SNMPCommunity MN-2008 > StatusServerShowClientDetails > </Client> > > <Client 202.179.0.135> > Secret xxx > DupInterval 60 > NasType Cisco > SNMPCommunity MN-2008 > StatusServerShowClientDetails > </Client> > > <Client 202.179.1.2> > Secret xxx > DupInterval 60 > NasType Cisco > SNMPCommunity MN-2008 > StatusServerShowClientDetails > </Client> > > <Client 202.179.0.133> > Secret xxx > DupInterval 60 > NasType AscendSNMP > SNMPCommunity MN-2008 > StatusServerShowClientDetails > </Client> > > ------------------------------------------------------------------ > ----------- > -- > > ----------------------- debug > ----------------------------------------------- > Tue Oct 8 20:41:01 2002: DEBUG: Handling with Radius::AuthSQL > Tue Oct 8 20:41:01 2002: DEBUG: Handling with Radius::AuthSQL: > CiscoAdjustAuthOnly > Tue Oct 8 20:41:01 2002: DEBUG: Query is: select > ENCRYPTEDPASSWORD,CHECKATTR,REPLYATTR,if(PREPAID="YES",TIMELEFT,NIGHT) as > TIME, class from SUBSCRIBERS where USERNAME='koicamgl' and STATUS='Active' > Tue Oct 8 20:41:01 2002: DEBUG: Radius::AuthSQL looks for match > with koicamgl > Tue Oct 8 20:41:01 2002: DEBUG: Query is: select > NASIDENTIFIER,NASPORT,ACCTSESSIONID from RADONLINE where > USERNAME='koicamgl' > Tue Oct 8 20:41:01 2002: DEBUG: Checking if user is still online: Cisco, > koicamgl, 202.179.0.135, 274, 0001F0F2 > Tue Oct 8 20:41:01 2002: DEBUG: Running command `/usr/local/bin/snmpget -c > 'public' 202.179.0.135 > .iso.org.dod.internet.private.enterprises.9.2.9.2.1.18.274` > Tue Oct 8 20:41:07 2002: NOTICE: SQL1 Session for koicamgl at > 202.179.0.135:274 has gone away > Tue Oct 8 20:41:07 2002: DEBUG: SQL1 Deleting session for koicamgl, > 202.179.0.135, 274 > Tue Oct 8 20:41:07 2002: DEBUG: do query is: delete from RADONLINE where > USERNAME='koicamgl' and NASIDENTIFIER='202.179.0.130' and NASPORT='77' > Tue Oct 8 20:41:07 2002: DEBUG: Checking if user is still online: Cisco, > koicamgl, 202.179.0.130, 93, 00000291 > Tue Oct 8 20:41:07 2002: DEBUG: Running command `/usr/local/bin/snmpget -c > 'public' 202.179.0.130 > .iso.org.dod.internet.private.enterprises.9.2.9.2.1.18.93` > > ------------------------------------------------------- > > -- > Mike McCauley [EMAIL PROTECTED] > Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW > 24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au > Phone +61 3 9598-0985 Fax +61 3 9598-0955 > > Radiator: the most portable, flexible and configurable RADIUS server > anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, > Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS, > TTLS etc on Unix, Windows, MacOS etc. > > === > Archive at http://www.open.com.au/archives/radiator/ > Announcements on [EMAIL PROTECTED] > To unsubscribe, email '[EMAIL PROTECTED]' with > 'unsubscribe radiator' in the body of the message. > === Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' with 'unsubscribe radiator' in the body of the message.