`
61party
  • 浏览: 1123712 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

UNIX Commands Used to Debug

 
阅读更多

UNIX Commands Used to Debug


1. truss

bjbldc:/home/bonny >2> truss -p 6535
read(11, 0xFFBED6C8, 1024) (sleeping...)

2. ps -fu <user_name>

bjbldc:/home/bonny >> ps -fu bonny
UID PID PPID C STIME TTY TIME CMD
bonny 9006 9005 0 Feb 26 ?? 0:01 /usr/dt/bin/dtterm
bonny 19743 8910 0 Feb 26 ? 0:00 dtfile -session dtstaGjf
bonny 8784 8776 0 Feb 16 ? 0:13 dtwm
bonny 8911 8776 0 Feb 16 ?? 0:01 /usr/dt/bin/dtterm -session dt_.a
q4t -C -ls
bonny 18994 8784 0 Feb 26 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttpro
cid 2.19cDSU 01 8751 1289637095 1 1 39237 135.
bonny 25275 1 0 Feb 25 ? 0:11 gvim BMAcpMsgpr.c
bonny 25106 8911 0 Feb 25 pts/186 0:00 -ksh

3. ptree <user_name>

bjbldc:/home/bonny >> ptree bonny
195 /usr/sbin/inetd -s
6224 in.rshd
6225 dtterm -xrm *workspaceList: COOL msc-s COOL/ msc-s -title COOL msc-s Installing
6252 tail -f /bld/bonny/coolxdir_2/logs/Mar02.18:42:41/APs/31/COOLAPLOG
6254 in.rshd
6256 dtterm -xrm *workspaceList: COOL msc-s COOL/ msc-s -title COOL msc-s Installing
6276 tail -f /bld/bonny/coolxdir_2/logs/Mar02.18:42:41/APs/33/COOLAPLOG
6278 in.rshd
6279 dtterm -xrm *workspaceList: COOL msc-s COOL/ msc-s -title COOL msc-s Installing
6300 tail -f /bld/bonny/coolxdir_2/logs/Mar02.18:42:41/APs/35/COOLAPLOG
6297 in.rshd
6298 /usr/bin/ksh /opt/cool/tools/lib/COOLvirtenv -r /bld/bonny/coolxdir_2/APs/31 -a
6535 /usr/bin/ksh /opt/cool/tools/lib/COOLstartAP -sL -c80 -Wcool01 -Fcoolap23 -dOWL
6335 in.rshd
6336 /usr/bin/ksh /opt/cool/tools/lib/COOLvirtenv -r /bld/bonny/coolxdir_2/APs/35 -a
6627 /usr/bin/ksh /opt/cool/tools/lib/COOLstartAP -sA -c80 -Wcool01 -Fcoolap09 -dOWL

4. uptime

cool01:/home/bonny >> uptime
10:17pm up 18:10, 2 users, load average: 0.03, 0.01, 0.06

5. uname

cool01:/home/bonny >127> uname -a
SunOS cool01 5.8 Generic_117350-58 sun4u sparc SUNW,UltraAX-i2
bjbldc:sc4.2/SUNWspro/bin >> uname -n
bjbldc

6. nmake

bjbldb:bld/bonny/1apx10 >> nmake GLIB10=N -n -k -f mytstmk dumpit
+ set +x
+ cd /bld/bonny/1apx10
+ /bin/pwd
+ set -x
+ : "STARTING ecpc NMAKE IN ROOT `silent date '+%m/%d/%y %H:%M:%S'`"
+ print FMS_GOLDEN_HDRLIB=
FMS_GOLDEN_HDRLIB=
+ rm -f
+ : "COMPLETED ecpc NMAKE IN ROOT `silent date '+%m/%d/%y %H:%M:%S'`"

7. lb

bjbldb:bld/bonny/1apx10 >> lb -iA -mapbld
LB Pool Status for apbld (03/02/09 23:58:21):
MACH RTP %AV RSP CPUF MLA IMLA PLA LA1 LA5 LA15
bjbldb 1400 99 1 1406 20.2 20 0.08 0.06 0.08 0.30
bjbldc 1394 99 3 1406 20.2 20 0.17 0.16 0.20 0.29
bjbldd 1363 96 2 1406 20.2 20 0.61 0.60 0.63 0.69
------------------------------------------------------------------------------
AVERAGE 1385 98 - 1406 20.2 20 0.29 0.27 0.30 0.43
TOTAL 4157 98 3 4218 60.6 60 0.86 0.82 0.91 1.28
apbld : 98% available (98% available IMLA)
bjbldb:bld/bonny/1apx10 >> lb -m bjbldc nmake GLIB10=N -n -k -f mytstmk dumpit
+ set +x
+ cd /bld/bonny/1apx10
+ /bin/pwd
+ set -x
+ : "STARTING ecpc NMAKE IN ROOT `silent date '+%m/%d/%y %H:%M:%S'`"
+ print FMS_GOLDEN_HDRLIB=
FMS_GOLDEN_HDRLIB=
+ rm -f
+ : "COMPLETED ecpc NMAKE IN ROOT `silent date '+%m/%d/%y %H:%M:%S'`"
bjbldb:bld/bonny/1apx10 >> lb -iA -m CoolServers.ngnap
LB Pool Status for coolservers.ngnap (03/03/09 00:15:06):
MACH RTP %AV RSP CPUF MLA IMLA PLA LA1 LA5 LA15
coolap26 1361 94 21 1440 10.0 10 0.54 0.52 0.52 0.52
coolap14 698 99 1 700 10.0 10 0.02 0.00 0.00 0.01
coolap01 698 99 2 700 10.0 10 0.03 0.00 0.01 0.01
coolap12 698 99 4 700 10.0 10 0.02 0.00 0.00 0.01
coolap09 698 99 5 700 10.0 10 0.02 0.00 0.00 0.01
coolap21 698 99 6 700 10.0 10 0.02 0.00 0.00 0.01
coolap19 698 99 11 700 10.0 10 0.02 0.00 0.00 0.01
coolap13 698 99 13 700 10.0 10 0.02 0.00 0.00 0.01
coolap16 698 99 14 700 10.0 10 0.02 0.00 0.00 0.01
coolap24 698 99 16 700 10.0 10 0.02 0.00 0.00 0.01
coolap23 698 99 17 700 10.0 10 0.02 0.00 0.00 0.01
coolap25 698 99 19 700 10.0 10 0.02 0.00 0.00 0.01
coolap02 695 99 3 700 10.0 10 0.07 0.01 0.04 0.10
coolap18 695 99 7 700 10.0 10 0.06 0.04 0.04 0.06
coolap07 695 99 8 700 10.0 10 0.06 0.05 0.11 0.23
coolap05 695 99 9 700 10.0 10 0.07 0.05 0.05 0.10
coolap10 695 99 10 700 10.0 10 0.07 0.05 0.05 0.07
coolap20 695 99 15 700 10.0 10 0.06 0.02 0.04 0.06
coolap08 693 99 12 700 10.0 10 0.10 0.08 0.10 0.21
coolap17 691 98 18 700 10.0 10 0.13 0.11 0.13 0.12
coolap11 623 89 20 700 10.0 10 1.09 0.96 0.39 0.26
------------------------------------------------------------------------------
AVERAGE 724 98 - 735 10.0 10 0.12 0.09 0.07 0.09
TOTAL 15216 98 21 15440 210.0 210 2.48 1.89 1.48 1.84
coolservers.ngnap : 98% available (98% available IMLA)
bjbldb:bld/bonny/1apx10 >> lb -iA -m coolservers
LB Pool Status for coolservers (03/03/09 00:31:49):
MACH RTP %AV RSP CPUF MLA IMLA PLA LA1 LA5 LA15
cool01 660 99 1 662 10.0 10 0.02 0.00 0.00 0.01
cool11 660 99 6 662 10.0 10 0.02 0.00 0.00 0.01
cool05 660 99 8 662 10.0 10 0.02 0.00 0.00 0.01
cool13 660 99 9 662 10.0 10 0.03 0.01 0.00 0.01
cool02 660 99 12 662 10.0 10 0.03 0.02 0.01 0.01
cool09 659 99 10 662 10.0 10 0.04 0.01 0.01 0.03
cool08 642 99 2 644 10.0 10 0.02 0.00 0.00 0.01
cool07 642 99 5 644 10.0 10 0.02 0.00 0.00 0.01
cool10 641 99 11 644 10.0 10 0.03 0.01 0.00 0.01
cool14 591 89 3 662 10.0 10 1.07 1.05 1.03 1.04
cool12 589 88 7 662 10.0 10 1.10 1.08 1.06 1.17
cool03 376 56 4 662 10.0 10 4.32 4.14 3.36 2.59
------------------------------------------------------------------------------
AVERAGE 620 94 - 658 10.0 10 0.56 0.53 0.46 0.41
TOTAL 7440 94 12 7890 120.0 120 6.72 6.32 5.47 4.91
coolservers : 94% available (94% available IMLA)

8.timex

timex- time a command; report process data and systemactivity.

bjbldb:bld/bonny/1apx10 >> timex ping cool01
cool01 is alive
real 0.01
user 0.01
sys 0.00

9. remsh

bjbldb:bld/bonny/1apx10 >> remsh bjbldd ps -fu bonny
UID PID PPID C STIME TTY TIME CMD
bonny 29793 29752 0 22:18:04 pts/179 0:00 rlogin bjbldc
bonny 15715 15669 0 Feb 26 ? 0:00 dtfile -session dtstaGjf
bonny 23825 23779 0 00:38:20 ? 0:00 /usr/bin/remsh cool01 eval set -aSTART[0]=/home/bonny/.env[
bonny 2409 15716 0 16:05:08 pts/41 0:00 -ksh
bonny 14037 1 0 16:33:12 ? 0:01 gvim COOLein2ap
bonny 15542 15541 0 Feb 26 ? 0:00 /opt/exp/lib/vnc/vncconfig.bin -nowin
bonny 29545 29543 0 22:17:05 pts/195 0:00 /bin/ksh
bonny 23779 2666 0 00:38:19 ? 0:00 /usr/bin/remsh cool01 eval set -aSTART[0]=/home/bonny/.env[
bonny 24503 24502 0 20:49:36 ? 0:00 /bin/ksh /opt/cool/bin/clear3bemlab -i -p -lab bonny
bonny 15498 1 1 Feb 26 ? 2:04 Xvnc :10 -desktop bjbldd:10 () -httpd /opt/exp/lib/vnc/clas
bonny 23776 1 0 00:38:19 ? 0:00 /bin/ksh /opt/cool/tools/lib/GetDynCOOLID UNAME=coolap01 CO
bonny 24175 24174 0 20:40:11 ? 0:00 /bin/ksh /opt/cool/bin/clear3bemlab -i -p -lab bonny
bonny 13782 13780 0 16:28:08 pts/180 0:00 /bin/ksh
bonny 24502 24343 0 20:49:36 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e apollo -o is41 -l
bonny 15668 1 0 Feb 26 pts/118 0:00 /usr/dt/bin/ttsession
bonny 23482 1 0 00:38:15 ? 0:00 /bin/ksh /opt/cool/tools/lib/GetDynCOOLID UNAME=cool01
bonny 19606 1 0 17:06:00 ? 0:12 gvim /apx/ecpc33/OFC5L33.0/1apx10/rules/tps.mk
bonny 2666 1 0 16:07:01 ? 0:11 /opt/cool/tools/lib/TclPro1.5/solaris-sparc/bin/wish8.3 -f
bonny 28765 15692 0 22:14:32 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.19fbdI 01 15668 1289
bonny 13970 13969 0 13:45:33 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e athena -o is41 -l
bonny 28767 28765 0 22:14:32 ?? 0:00 /usr/dt/bin/dtterm
bonny 24588 24587 0 20:51:46 pts/41 0:00 rlogin cool01
bonny 14189 14162 2 13:45:39 ? 40:47 rm -rf /opt/cool2b/bonny/APs/21
bonny 15717 15669 0 Feb 26 ? 0:01 /usr/dt/bin/sdtperfmeter -f -H -t cpu -t disk -s 1 -name fp
bonny 14126 14125 0 13:45:39 ? 0:00 /bin/ksh /opt/cool/bin/clear3bemlab -i -p -lab bonny
bonny 15637 15635 0 Feb 26 pts/118 0:00 -ksh -c unset DT; DISPLAY=bjbldd:10; /usr/dt
bonny 15716 15669 0 Feb 26 ?? 0:03 /usr/dt/bin/dtterm -session dt_.aq4t -C -ls
bonny 23483 23482 0 00:38:15 ? 0:00 sleep 1800
bonny 29752 29750 0 22:17:55 pts/179 0:00 /bin/ksh
bonny 24132 24019 0 20:40:08 ? 0:00 tail +0f /tmp/ldcool.24019/log.ldcool_bonny_bonny
bonny 15541 1 0 Feb 26 ? 0:00 /opt/exp/bin/ksh /opt/exp/lib/vnc/vncconfig -nowin
bonny 29750 29749 0 22:17:55 ?? 0:01 /usr/dt/bin/dtterm
bonny 19600 1 0 17:05:59 pts/180 0:00 cscope -dl -f /apx/ecpc33/OFC5L33.0/1apx10/cscope/cscope.ou
bonny 15692 15669 0 Feb 26 ? 0:15 dtwm
bonny 15634 1 0 Feb 26 ? 0:00 /usr/dt/bin/dsdm
bonny 29570 29569 0 22:17:09 pts/195 0:00 rlogin cool01
bonny 29794 29793 0 22:18:04 pts/179 0:00 rlogin bjbldc
bonny 13879 1 0 16:29:06 pts/180 0:00 cscope -dl -f /apx/ecpc33/OFC5L33.0/1apx10/cscope/cscope.ou
bonny 14082 13970 0 13:45:38 ? 0:00 tail +0f /tmp/ldcool.13970/log.ldcool_bonny_bonny
bonny 24019 24018 0 20:40:07 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e apollo -o is41 -l
bonny 23823 23779 0 0:00 <defunct>
bonny 14289 1 0 16:38:04 ? 0:19 gvim /opt/nwstools/bin/getnmakevar
bonny 15533 1 0 Feb 26 ? 0:00 /bin/ksh /usr/dt/bin/Xsession
bonny 28773 28767 0 22:14:33 pts/78 0:00 /bin/ksh
bonny 29542 15692 0 22:17:05 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.19fbdI 01 15668 1289
bonny 15669 15637 0 Feb 26 pts/118 0:00 /usr/dt/bin/dtsession
bonny 14162 14126 0 13:45:39 ? 0:00 /bin/ksh /opt/cool/tools/bin/rmv_coolap -C /opt/cool2b/bonn
bonny 23777 23776 0 00:38:19 ? 0:00 sleep 1800
bonny 24562 24503 1 20:49:36 ? 17:28 rm -rf APs
bonny 29569 29545 0 22:17:09 pts/195 0:00 rlogin cool01
bonny 24232 24175 3 20:40:11 ? 15:44 rm -rf APs
bonny 14125 13970 0 13:45:39 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e athena -o is41 -l
bonny 15635 15533 0 Feb 26 pts/118 0:00 /usr/dt/bin/sdt_shell -c unset DT; DISPLAY=bjbldd:
bonny 13779 15692 0 16:28:08 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.19fbdI 01 15668 1289
bonny 13882 1 0 16:29:07 ? 0:10 gvim coolit
bonny 14034 1 0 16:33:12 pts/180 0:00 cscope -dl -f /apx/ecpc33/OFC5L33.0/1apx10/cscope/cscope.ou
bonny 14286 1 0 16:38:03 pts/180 0:00 cscope -dl -f /apx/ecpc33/OFC5L33.0/1apx10/cscope/cscope.ou
bonny 29749 15692 0 22:17:55 ? 0:00 /usr/dt/bin/dtexec -open 0 -ttprocid 2.19fbdI 01 15668 1289
bonny 24343 24342 0 20:49:33 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e apollo -o is41 -l
bonny 24460 24343 0 20:49:35 ? 0:00 tail +0f /tmp/ldcool.24343/log.ldcool_bonny_bonny
bonny 29543 29542 0 22:17:05 ?? 0:01 /usr/dt/bin/dtterm
bonny 13780 13779 0 16:28:08 ?? 0:00 /usr/dt/bin/dtterm
bonny 24174 24019 0 20:40:11 ? 0:00 /bin/ksh /opt/cool/bin/ldcool -u bonny -e apollo -o is41 -l
bonny 24587 2409 0 20:51:46 pts/41 0:00 rlogin cool01
bjbldb:bld/bonny/1apx10 >> remsh bjbldd ps -fu bonny | grep nmake
bonny 14289 1 0 16:38:04 ? 0:19 gvim /opt/nwstools/bin/getnmakevar
分享到:
评论

相关推荐

    Learn to Program with Python

    There is no need to learn or use any obscure Unix commands. Students of any age who have had no exposure to programming and are interested in learning to do software development in the Python ...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 登陆服务器时输入 公帐号 openlab-open123 telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss 老师测评网址 http://172.16.0.198:8080/poll/ 各个 ...

    apktool documentation

    versionInfo - Used to repopulate the version information in AndroidManifest.xml since newer aapt requires version information to be passed via parameter compressionType - Used to determine the ...

    qemu-0.13.0(编译过全处理器支持)

    -bt hci,null dumb bluetooth HCI - doesn't respond to commands -bt hci,host[:id] use host's HCI with the given name -bt hci[,vlan=n] emulate a standard HCI in virtual scatternet 'n' -bt vhci[,vlan=n]...

    php.ini-development

    in production environments and one that is recommended to be used in ; development environments. ; php.ini-production contains settings which hold security, performance and ; best practices at its ...

    Qemu-1.0.1 for windows

    Qemu 1.0.1 Windows ...usage: qemu [options] [disk_image] ...-bt hci,null dumb bluetooth HCI - doesn't respond to commands -bt hci,host[:id] use host's HCI with the given name -bt hci[,vlan=n] ...

    Python Cookbook, 2nd Edition

    Converting HTML Documents to Texton a Unix Terminal Chapter 2. Files Introduction Recipe 2.1. Reading from a File Recipe 2.2. Writing to a File Recipe 2.3. Searching and Replacing Text in a...

    DebuggingWithGDB 6.8-2008

    4.11 Setting a Bookmark to Return to Later . . . . . . . . . . . . . . . . . . . . . 4.11.1 A Non-obvious Benefit of Using Checkpoints . . . . . . . . . . . . 5 25 26 28 28 29 29 30 31 31 34 36 37 ...

    python3.6.5参考手册 chm

    PEP 529: Change Windows filesystem encoding to UTF-8 PEP 528: Change Windows console encoding to UTF-8 PEP 520: Preserving Class Attribute Definition Order PEP 468: Preserving Keyword Argument ...

Global site tag (gtag.js) - Google Analytics