add strace / lsof
Forum: DSL Ideas and Suggestions
Topic: add strace / lsof
started by: haveaniceday
Posted by haveaniceday on Nov. 22 2005,10: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
Posted by vees on Nov. 23 2005,01:32
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
Posted by haveaniceday on Nov. 24 2005,12:08
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
Posted by vees on Nov. 24 2005,18:28
Neat! Thanks for the tip.
|