Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: add strace / lsof, request for prgram to add< Next Oldest | Next Newest >
haveaniceday Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Nov. 2005
Posted: Nov. 22 2005,10:32 QUOTE

Hi,
I often use strace and lsof for analysis.
strace can be used to find missing files/libraries and trace system calls.
lsof is very beatiful to analyse connection and file usage.
Both together should be compresses less than 150 kB.

Please include to DSL if this space is available.
An alternativ solution might be to provide a special package.

Best regards,

Haveaniceday
Back to top
Profile PM 
vees Offline





Group: Members
Posts: 81
Joined: Nov. 2005
Posted: Nov. 23 2005,01:32 QUOTE

Quote (haveaniceday @ Nov. 22 2005,05:32)
Hi,
I often use strace and lsof for analysis.
strace can be used to find missing files/libraries and trace system calls.
lsof is very beatiful to analyse connection and file usage.
Both together should be compresses less than 150 kB.

Please include to DSL if this space is available.
An alternativ solution might be to provide a special package.

Best regards,

Haveaniceday

Hi there!

Strace and lsof are among my favorite tools also.  But on a live-CD does it make sense trace/debug the execution of an application which you cannot do anything about?  I am not sure about that.  How do you monitor a connection with lsof?  (I never tried that)

Cheers,

VS


--------------
Motto: chown -R linux:GNU world
Back to top
Profile PM 
haveaniceday Offline





Group: Awaiting Authorisation
Posts: 6
Joined: Nov. 2005
Posted: Nov. 24 2005,12:08 QUOTE

strace makes sense also on a life CD if features/programs does not work
correct. You might see which configuration/settings are accessed and not
found.

lsof shows e.g. TCP connection. See "Established" below.
Code Sample

sshd      668 root  mem    REG  240,0   40752  2104496 /KNOPPIX/lib/security/pam_unix.so
sshd      668 root  mem    REG  240,0    4180  2103154 /KNOPPIX/lib/security/pam_motd.so
sshd      668 root  mem    REG  240,0   18668  1729984 /KNOPPIX/lib/libcrypt-2.3.2.so
sshd      668 root  mem    REG  240,0   10332  2101842 /KNOPPIX/lib/security/pam_env.so
sshd      668 root  mem    REG  240,0    8176  2102888 /KNOPPIX/lib/security/pam_mail.so
sshd      668 root  mem    REG  240,0   11772  2102620 /KNOPPIX/lib/security/pam_limits.so
sshd      668 root  mem    REG  240,0   11600  1728792 /KNOPPIX/lib/libcap.so.1.10
sshd      668 root  mem    REG  240,0   13896  1733944 /KNOPPIX/lib/libnss_dns-2.3.2.so
sshd      668 root  mem    REG  240,0   64844  1737748 /KNOPPIX/lib/libresolv-2.3.2.so
sshd      668 root  mem    CHR    1,5              413 /dev/zero
sshd      668 root    0u   CHR    1,3              214 /dev/null
sshd      668 root    1u   CHR    1,3              214 /dev/null
sshd      668 root    2u   CHR    1,3              214 /dev/null
sshd      668 root    3r  FIFO    0,5             9372 pipe
sshd      668 root    4u  IPv4   9360              TCP 192.168.168.5:ssh->89.77.10.11:11783 (ESTABLISHED)
sshd      668 root    5w  FIFO    0,5             9372 pipe
sshd      668 root    6u   CHR    5,2              220 /dev/ptmx
sshd      668 root    7u   CHR    5,2              220 /dev/ptmx
sshd      668 root    8u   CHR    5,2              220 /dev/ptmx

Haveaniceday
Back to top
Profile PM 
vees Offline





Group: Members
Posts: 81
Joined: Nov. 2005
Posted: Nov. 24 2005,18:28 QUOTE

Neat!  Thanks for the tip.

--------------
Motto: chown -R linux:GNU world
Back to top
Profile PM 
3 replies since Nov. 22 2005,10:32 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: add strace / lsof

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code