1832145 Members
2867 Online
110038 Solutions
New Discussion

Re: Using q4 on 11.0

 
SOLVED
Go to solution
nancy rippey
Trusted Contributor

Using q4 on 11.0

Does anyone have any information for how to run q4 on 11.0. When I run
q4 -p /dump/crash.0 I receive the following message
@(#) q4 $Revision: 1.79a $ $Date: 97/09/08 12:00:22 $ 0
syntax error in file //.q4rc.pl at line 93, next 2 tokens "my $from_q4 "
syntax error in file //.q4rc.pl at line 122, next 2 tokens "$DB:"
syntax error in file //.q4rc.pl at line 127, next 2 tokens "my $filename "
Execution of //.q4rc.pl aborted due to compilation errors.
nrip
2 REPLIES 2
Nobody's Hero
Valued Contributor
Solution

Re: Using q4 on 11.0

 
UNIX IS GOOD
Printaporn_1
Esteemed Contributor

Re: Using q4 on 11.0

HP-UX 11.0 already have q4 package in /usr/contrib/bin

1. cd /var/adm/crash/crash.0
#/usr/contrib/bin/q4prep
q4 library files being created in /var/adm/crash/crash.0/q4lib

2.cd q4lib
#cp sample.q4rc.pl ~/.q4rc.pl
3. cd ..
#q4 -p
@(#) q4 $Revision: 1.79a $ $Date: 97/09/08 12:00:22 $ 0
Reading kernel symbols ...
Reading kernel data types ...
Initialized PA-RISC 2.0 address translator ...
Initializing stack tracer ...
Get the latest Q4 news by typing "news".

q4> include analyze.pl
loading ./q4lib/analyze.pl ...
loading ./q4lib/uname.pl ...
loading ./q4lib/misc.pl ...
loading ./q4lib/uptime.pl ...
loading ./q4lib/adjust.pl ...
loading ./q4lib/messagebuffer.pl ...
loading ./q4lib/addresses.pl ...
loading ./q4lib/tables.pl ...
loading ./q4lib/processors.pl ...
loading ./q4lib/crashes.pl ...
loading ./q4lib/rpb.pl ...
loading ./q4lib/traces.pl ...
loading ./q4lib/globals.pl ...
loading ./q4lib/processes.pl ...
loading ./q4lib/commands.pl ...
loading ./q4lib/credentials.pl ...
loading ./q4lib/threads.pl ...
loading ./q4lib/user.pl ...
loading ./q4lib/vm.pl ...
loading ./q4lib/vm_vfddbd.pl ...
loading ./q4lib/files.pl ...
loading ./q4lib/vfs.pl ...
loading ./q4lib/inode.pl ...
loading ./q4lib/buf.pl ...
q4>run Analyze UAP > ana.out

-----
then waiting till finish , or in another session
cd /var/adm/crash/crash.0
vi ana.out
search for stack


Stack trace from the first crash event:
stack trace for event 0
crash event was a TOC
FUNC PC SP FMP SSP
idle+0xa78 0.0x135a60 0.0x0'0d20c1f0 0.0x0'0d20c1e0 n/a
swidle_exit+0x0 0.0x1380ac 0.0x0'0d20c050 0.0x0'0d20c040 n/a

enjoy any little thing in my life