DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-02-22 11:14:11

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

How can I tell what is waking up my DNS?

Does any one know a way to find out what is waking my DNS from sleeping?

I'm trying to find out why it has suddenly started waking from sleep much more than it used to and is getting right on my nerves!!

I've tried to run it without the network cable but it still slept for a few minutes and I've made sure to clear the spool folder which is about where my ideas end.

Is there some sort of logging I can turn on to write a file which show's what's happening?

Cheers

RAP

Offline

 

#2 2009-02-22 20:59:04

wirbel
Member
Registered: 2008-11-22
Posts: 20

Re: How can I tell what is waking up my DNS?

lsof /mnt/HD_a2 should show open file handles.

Offline

 

#3 2009-02-23 09:37:56

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: How can I tell what is waking up my DNS?

wirbel wrote:

lsof /mnt/HD_a2 should show open file handles.

I've run this from a ssh connection but nothing shows up at all - is lsof something I need to install or does that just mean nothing is open?

Any other suggestions/methods to capture what's going on?

RAP

Offline

 

#4 2009-02-23 16:13:20

flashman1207
Member
Registered: 2008-05-27
Posts: 92

Re: How can I tell what is waking up my DNS?

lsof |grep HD_ works for me.....

Offline

 

#5 2009-02-24 11:24:43

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: How can I tell what is waking up my DNS?

flashman1207 wrote:

lsof |grep HD_ works for me.....

That does seem to return some info but a) I'm not sure what it means and b) I'm not sure how it would help me see what actually woke up the DNS as I'd have to ssh in to it to see the results.

Thanks for the suggestion anyway.

RAP

Offline

 

#6 2009-02-24 13:57:42

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: How can I tell what is waking up my DNS?

rap wrote:

That does seem to return some info but a) I'm not sure what it means and b) I'm not sure how it would help me see what actually woke up the DNS as I'd have to ssh in to it to see the results.

If lsof is reporting anything as HD_xxxxx it means that there is an open handle.  So that narrows your search when trying to figure out what is waking up your box.  Yes, you do need console access to run lsof (although you could run it from a fun_plug (and redirect output to a file, or copy a script to ramdisk and then run it with cron and output to file), but if you have your ffp/fun_plug on a usb stick then your console won't be open from the HD_xxx hard disk and that will help narrow your search further.

Offline

 

#7 2009-02-24 14:37:42

flashman1207
Member
Registered: 2008-05-27
Posts: 92

Re: How can I tell what is waking up my DNS?

rap wrote:

flashman1207 wrote:

lsof |grep HD_ works for me.....

That does seem to return some info but a) I'm not sure what it means and b) I'm not sure how it would help me see what actually woke up the DNS as I'd have to ssh in to it to see the results.

Thanks for the suggestion anyway.

RAP

If you do the following it will write to a file which you can open under Windows (using Notepad++ or similar):

lsof | grep HD_ > /mnt/HD_a2/output.txt

Interpreting the results is another thing....... see my similar thread below as it resolved my problem:

http://dns323.kood.org/forum/t3623-Funp … ctory.html

Offline

 

#8 2009-02-24 23:20:27

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: How can I tell what is waking up my DNS?

Thanks for the further info - I did have a go at getting things running on a USB stick but it didn't work properly at the time. Might be time to try again!!

RAP

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB