How to access router system log?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Sat May 15, 2010 22:25    Post subject: How to access router system log? Reply with quote
I did some search and couldn't find the information to access my router's system log. Some made reference to running scripts which I don't know how to. Could someone show me the steps? Sorry I am a complete newbie so you will need to show me the exact steps. Thanks very much!!!

I am running Firmware: DD-WRT v24-sp2 (10/10/09) micro on Linksys WRT54G2 V1, Windows 7 Professional. For some reason my cable modem loses connection every couple of hours when Bittorrent is running. I have checked everything and the only thing left is to look at the system log and see what happened before the connection dropped.
Sponsor
gobbledigook
DD-WRT Guru


Joined: 06 Apr 2009
Posts: 727

PostPosted: Sun May 16, 2010 10:43    Post subject: Reply with quote
hi there!

your post is a little confusing... is it your cable modem that is the problem or your router? if your cable modem is rebooting every so often, then why don't you look at the cable modem logs?

with regard to the router and bittorrent, you chould read the announcements and the peacock threads at the top of this forum, should be info in there about bittorrent your router and a lack of memory causing reboots?
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 443

PostPosted: Sun May 16, 2010 12:38    Post subject: Reply with quote
As gobbledigook said, see note 10 in this sticky. Also this info from the wiki can be of assistance.
_________________

Asus RT-AC66U DD-WRT v24-sp2 (05/23/14) giga - build 24118 [Main]
Linksys E3000 DD-WRT v24-sp2 (12/24/10) mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 (11/17/10) mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 10908
Location: Wherever the wind blows- North America

PostPosted: Sun May 16, 2010 12:49    Post subject: Reply with quote
To access the router system log file.

Log in using telnet or ssh.

type

cat /var/log/messages

or

more /var/log/messages

If you have logging enabled, you will see the logged data....it will return a blank line if you don't have logging enabled.

redhawk

_________________
I currently test dd-wrt on Asus, Buffalo, Linksys, and Netgear. Too many to list.

Looking for more test units (newer models) for the project...got a brick?...PM me to make a donation. (USA) A donation is not a debricking service....it is a way to "Give back" to the dd-wrt project.

I do NOT provide personal assistance through chat or phone....so please don't ask.
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Sun May 16, 2010 17:29    Post subject: Reply with quote
Sorry for the newbie question. Could you explain how to do this on Windows 7?

Log in using telnet or ssh.
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Sun May 16, 2010 17:41    Post subject: Reply with quote
Goggledigook & Phonism:

Thanks for the info. I checked the thread and it has information I already tried but did not work. When I have say 3-5 torrent downloading then my cable modem goes down every couple of hours while the router stays on. I tried all the tweaks already.

Nontheless, your assistance is still very much appreciated!
Phonism
DD-WRT User


Joined: 27 Sep 2008
Posts: 443

PostPosted: Sun May 16, 2010 18:44    Post subject: Reply with quote
@MISC - Download Putty and run it. In the first dialog window, under Sessions, type in your routers IP address (192.168.1.1) in the Host name window. Leave the Port at default. Select Telnet as connection type and just hit Open.

Now you should see DD-WRT something something and a prompt. Just type in your user name and hit Enter. Now type in your password (note that you can't see what you type - there are no dots or * for passwords). Hit Enter and hopefully you should see the DD-WRT welcome screen. Then do as redhawk0 said.

Good luck =)

_________________

Asus RT-AC66U DD-WRT v24-sp2 (05/23/14) giga - build 24118 [Main]
Linksys E3000 DD-WRT v24-sp2 (12/24/10) mega - build 15962 [Backup]
Linksys WRT600N v1.1 DD-WRT v24-sp2 (08/12/10) mega - build 14929 [Retired]
Linksys WRT54GS v4 DD-WRT v24-sp2 (11/17/10) mini - build 15747 [Retired]
E3000 Info | WRT600N Info | Know-it-all thread
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Tue May 18, 2010 22:42    Post subject: Reply with quote
Phonism - I got to the router login page and entered my user id and password, but it said login incorrect. I used the same user id and password I always use to access the router with my browser. Would you happen to know why? I checked the board and already tried the following:

admin
admin

root
password

root
admin
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Tue May 18, 2010 23:03    Post subject: Reply with quote
Nevermind I got in thanks!!
MISC000123
DD-WRT Novice


Joined: 15 May 2010
Posts: 6

PostPosted: Wed May 19, 2010 0:51    Post subject: Reply with quote
I was able to log into the router using user id "root" and my regular password. Then I telnet the router and tried the follow but nothing showed up. SYSLOGD is enable on DD-WRT. Anyone has any idea why it's either not logging or why I am not able to view the log?

I tried:
cat /var/log/messages
cat /tmp/var/log/messages
cat /usr/tmp/var/log/messages

It just returns to the command prompt.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Wed May 19, 2010 5:06    Post subject: Reply with quote
Code:
nvram set syslogd_enable=1
nvram log_enable=1
nvram set log_dropped=1
nvram set log_rejected=1
nvram commit
reboot


After the reset you can "follow" the log using

Code:
tail -f /var/log/messages


ctrl-C to stop following

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
ESKIMOn00b
DD-WRT User


Joined: 02 May 2010
Posts: 97

PostPosted: Wed May 19, 2010 9:35    Post subject: Reply with quote
as one of the previous reply's mentioned, you probably wanna be looking at the log on your modem seeing as thats whats crashing.....
gobbledigook
DD-WRT Guru


Joined: 06 Apr 2009
Posts: 727

PostPosted: Wed May 19, 2010 12:47    Post subject: Reply with quote
i don't know your location, but in the UK the cable provider (virgin media) login details are :

navigate to: 192.168.100.1

root
root

checking for signal levels as per here and see what it says in the logs... if the signal levels are squiffy you will need an engineer to correct... all if you are in the UK of course!!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum