HP-UX 安装tusc

在HP-UX环境下,我们可以用tusc跟踪进程的调度情况。
1、查看tusc是否安装在默认目录
[quote]# which tusc[/quote]
2、下载tusc
[url]http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.0/[/url]
3、上传至服务器,并将其解压
[quote]# 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[/quote]
4、对于depot文件有两种安装方法推荐用第一种
1)使用swinstall安装
[quote]#swinstall -s rx2600:/tmp/tusc-8.0-ia64-11.23.depot[/quote]
2)直接解压安装
[quote]#tar xvf /tmp/tusc-8.0-ia64-11.23.depot[/quote]
5、安装完成之后即可调用tusc进行进程调度跟踪
[quote]#/tmp/tusc/tusc-RUN/usr/local/bin/tusc -aefo /tmp/tusc.out sqlplus "/as sysdba"[/quote]

附:tusc用法

[quote]Usage:
tusc [-<options>] <command [args ...]> -OR- <pid [pid ...]>

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 <pid>


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

[/quote]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值