HP-UX 安装tusc

阅读更多
在HP-UX环境下,我们可以用tusc跟踪进程的调度情况。
1、查看tusc是否安装在默认目录
引用
# which tusc

2、下载tusc
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.0/
3、上传至服务器,并将其解压
引用
# gunzip tusc-8.0-ia64-11.23.depot.gz
# ll tusc-8.0-ia64-11.23.depot*
-rw-r--r--   1 root       sys         983040 Jun 13 15:55 tusc-8.0-ia64-11.23.depot

4、对于depot文件有两种安装方法推荐用第一种
1)使用swinstall安装
引用
#swinstall -s rx2600:/tmp/tusc-8.0-ia64-11.23.depot

2)直接解压安装
引用
#tar xvf /tmp/tusc-8.0-ia64-11.23.depot

5、安装完成之后即可调用tusc进行进程调度跟踪
引用
#/tmp/tusc/tusc-RUN/usr/local/bin/tusc -aefo /tmp/tusc.out sqlplus "/as sysdba"


附:tusc用法

引用
Usage:
tusc [-] -OR-

Most common options:
    -f: follow forks
    -p: print pid values
    -e: show environment variables
    -a: show arguments to the exec() call
    -o file : send output to file
    -v: verbose output for calls that have this instrumented
    -T format: print timestamps in the given format
               see 'man 3c strftime' for possible formats

Typical invocations:
    1. execute sqlplus, and follow children. Send output to /tmp/tusc.out
       % tusc -faepo /tmp/tusc.out sqlplus scott/tiger

    2. as (1), but be verbose
       % tusc -faepo /tmp/tusc.out -v sqlplus scott/tiger

    3. as (1), but print timestamps   
       % tusc -faepo /tmp/tusc.out -T %H:%M:%S sqlplus scott/tiger

    4. attach to a running process. Send output to /tmp/tusc.out
       % tusc -faepo /tmp/tusc.out -p


    Unless advised otherwise, the minimum options used should be:
       % tusc -faepo ....

你可能感兴趣的:(HP,F#)