HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

truss command in HP-UX 11i

 
ng_7
Regular Advisor

truss command in HP-UX 11i

Dear Experts

Can please tell me the following solaris command in HP-UX 11i ?

truss -aef -w all -r all -o /tmp/truss.out -p 100

thanks

regards
ng
14 REPLIES
Shinji Teragaito_1
Respected Contributor

Re: truss command in HP-UX 11i

You need to install tusc from

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/

All of the parameters you mentioned are the same.

% tusc -aef -w all -r all -o /tmp/tusc.out -p 100
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

hi, not able to go to the link, would you mind to upload to this forum for me. thanks
Venkatesh BL
Honored Contributor

Re: truss command in HP-UX 11i

rick jones
Honored Contributor

Re: truss command in HP-UX 11i

If all those URLs fail, you can try:

ftp://ftp.cup.hp.com/dist/networking/tools/
there is no rest for the wicked yet the virtuous have no pillows
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

have try to download from ftp://ftp.hp.com/pub/catia/Utils/tusc7.4.shar

and rename tusc7_4_shar.mht to tusc7_4.shar

and I try install and get error as below.

sh tusc7_4.shar
tusc7_4.shar[19]: Syntax error at line 19 : `&' is not expected.

please help to see the uploaded file

thanks
rick jones
Honored Contributor

Re: truss command in HP-UX 11i

That URL downloaded and unshared for me just fine. I suspect something is wrong in the download - for example, what gave it that odd addition to the filename... make certain the download is in binary mode not ascii or some other mode.
there is no rest for the wicked yet the virtuous have no pillows
Tom Henning
Trusted Contributor

Re: truss command in HP-UX 11i

Looks like when it was downloaded it was translated into HMTL, for example the greater than symbols ('>') were changed into the phrase '>'. Try the download again using a different browser, or at least do not save as html.
What is it that possesses otherwise sane individuals to change something just because it has not been changed in a while?
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

hi, have install the file, and I can see the file being extracted to /home/tmp as shown below. but I still got error
/home/tmp/tusc -aef -w all -r all -o /tmp/truss.out -p 7956
sh: tusc: not found.

what is the problem. the number afer -p is it process id ?

thanks



app:/home/tmp# sh tusc7_4.shar
x - tusc [compressed]
linking - truss
x - tusc.1 [compressed]
x - sstep [compressed]

app:/home/tmp#

-r-xr-xr-x 1 root sys 4900 Oct 13 2002 sstep
lrwxrwxrwx 1 root sys 4 Feb 11 11:45 truss -> tusc

-rwxr-xr-x 1 root sys 987136 Oct 13 2002 tusc
-rw-r--r-- 1 root sys 22518 Oct 13 2002 tusc.1
-rw-r----- 1 root sys 998231 Feb6 tusc7_4.old
-rw-rw-rw 1 root sys 847913 Feb 11 tusc7_4.shar
drwxrwxrwx 4 root sys 1024 Jul 31 2008 zip

Re: truss command in HP-UX 11i

>sh: tusc: not found.

(I'm not sure why that isn't an absolute path?)
What does "file /home/tmp/tusc" show?

>the number after -p is it process id?

There is no relation between -p (print PIDs) and what follows. But it is probably the PID.
See the man page.
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

./tusc: PA-RISC1.1 shared executable dynamically linked -not stripped

Re: truss command in HP-UX 11i

>./tusc: PA-RISC1.1

This shows it is a binary.
What is PID 7956?
ps -fp 7956

tusc -aef -w all -r all -o /tmp/truss.out -p 7956

Please move the -p with the options: -aefp

What does /home/tmp/tusc do? It should give help.
ng_7
Regular Advisor

Re: truss command in HP-UX 11i

>./tusc: PA-RISC1.1

This shows it is a binary.
What is PID 7956?
ps -fp 7956

I am using PID 8076 as a sample now
PID 8076 is :
/opt/java1.3/bin/../bin/PA_RISC2.0/native_threads/java -Dengine

there is no help file found
app:/home/tmp# man tusc
No manual entry for tusc.

and same problem with the below command :
app:/home/tmp# tusc -aef -w all -r all -o /tmp/truss.out -aefp 8076
sh: tusc: not found.
app:/home/tmp#



Re: truss command in HP-UX 11i

>there is no help file found

You need to put tusc.1 in the proper place, probably /usr/share/man/man1/.
Or you can format it directly with:
nroff -man tusc.1 | col -x | more -s

>same problem with the below command:
tusc -aef -w all -r all -o /tmp/truss.out -aefp 8076

Replace -aef at the beginning with -aefp and remove -aefp at the end. Also remove -w and -r, just to see what you get:
/home/tmp/tusc -aefp -o /tmp/tusc.out 8076

Also what happens if you invoke with no options: /home/tmp/tusc
Abid Iqbal
Regular Advisor

Re: truss command in HP-UX 11i

Hi ng
Here is a link you can download tusc 7.9
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.9/
1. Place this zip file in "/tmp/ng" folder
2. unzip the file "#gunzip filename"
3. it will unzip and place a .depot file on the same location.
4. #swinstall -s file.depot
5. Complete the installation process.
5. Find the path of tusc by "whereis tusc"
6. Change "#cd /usr/local/bin" and run the command using the same sysntax of command.