Thread: snmp on router
View Single Post

  #3 (permalink)  
Old 06-28-2003
Neil Cherry
 
Posts: n/a
Default Re: snmp on router

On Sat, 28 Jun 2003 00:02:25 GMT, tudor wrote:
>Neil Cherry wrote:
>
>> On Fri, 27 Jun 2003 21:14:32 GMT, tudor wrote:
>>>Hi all!
>>>I have a router that has snmp so I'm trying to use it, but I never get a
>>>response from the router. Also, there is no snmp port opened, so does that
>>>mean the router simply doesen't listen to a snmp request?
>>>How ca I tell if snmp works on the router? Configuration lets me choose
>>>its comunity.

>>
>> What programs are you using, what router are you using? Have you
>> configured the router to accept snmp requests? Here's a smaple of an
>> snmp request (every device supports this one, I think):
>>
>> $ snmpget router public system.sysUpTime.0
>> system.sysUpTime.0 = Timeticks: (44188600) 5 days, 2:44:46.00
>>
>> OR
>>
>> $ snmpget router public .1.3.6.1.2.1.1.3.0
>> system.sysUpTime.0 = Timeticks: (44216400) 5 days, 2:49:24.00
>>
>> where router is the name or ip address of the router and public is the
>> SNMP community string (public is the default read-only string).
>>

>snmpget: Timeout
>that's what I get. I also tried mrtg in windows. The router (usr 8022)
>doesen't seem to respond. Snmp is enabled on the router.
>Anyway, shouldn't it be listening on some port for that snmp requests? If I
>do a port scan from inside (LAN - where the snmp is opened) I should find
>something opened, right? Udp 161, right?


When I try using snmpget with the wrong password (mine is not set to
public) I get:

$ snmpget ng public system.sysUpTime.0
Timeout: No Response from ng.

You are correct that snmp is on 161 (snmp-trap is 162 and that's stuff
that get sent to logs not the snp requests and responses). Double
check your password (same case et al) and make sure that the USR is
setup to allow snmp requests from your local LAN (usually a
192.168.x.x addr). Good Luck.

Oh, have you checked with USR?

--
Linux Home Automation Neil Cherry ncherry@comcast.net
http://mywebpages.comcast.net/ncherry/ (Text only)
http://linuxha.sourceforge.net/ (SourceForge)
http://hcs.sourceforge.net/ (HCS II)
Reply With Quote