Operating System - OpenVMS
1753729 Members
4601 Online
108799 Solutions
New Discussion юеВ

Re: ANALYZE/SYSTEM Information

 
SOLVED
Go to solution
Mario Abruzzi
Contributor

ANALYZE/SYSTEM Information

What is the proper way to display ANALYZE/SYSTEM command output using a single DCL command line? For example, is there an MCR version of ANALYZE/SYSTEM?
9 REPLIES 9
Ian Miller.
Honored Contributor

Re: ANALYZE/SYSTEM Information

not as far as I know. What are you wanting to do?
____________________
Purely Personal Opinion
John Gillings
Honored Contributor
Solution

Re: ANALYZE/SYSTEM Information

Mario,

There is "MCR SDA" which will activate the system dump analyzer, but it expects a dump file name as a parameter, not an SDA command.

(Trivia quiz... which OpenVMS engineer's car number plate is "MCR SDA"? ;-)

SDA has an "@" command, so you can batch up commands in a file and execute them. You can also use the PIPE command as discussed in a previous thread to feed input into a program like SDA. For example:

$ in="write sys$output"
$ pipe (in "show summ" ; in "show proc") | -
analyze/system

To capture the output, use I/O redirection:

$ pipe (in "show summ" ; in "show proc") | -
analyze/system > SDA.OUT


A crucible of informative mistakes
Hein van den Heuvel
Honored Contributor

Re: ANALYZE/SYSTEM Information


There is no direct way, but as John says, a pipe should get you close enough.

I guess you dismissed the idea of creating a temp command file, with the commands to execute, and activate that?

$open/write tmp tmp.com
$write tmp "$analyze /system"
$write tmp "show ...."
$close tmp
$@tmp


Now you would also expect as an option is
to just put the SDA commands in a file and point sys$input to that.

$create sda.tmp
show ....
$defi/user sys$input sda.tmp
$anal/system

This should work, but fails on some VMS versions with "%SYSTEM-F-IVDEVNAM, invalid device name". It fails on my old 7.1 system.
This is because SDA tried to be smart about page size. So there's a $GETDVI to determine page size, line width,.. which fails on a disk device. Maybe it works on you VMS version?

Hein,



Antoniov.
Honored Contributor

Re: ANALYZE/SYSTEM Information

Hi,
don't forget SDA before starting execute a initialization file by logical name SDA$INIT or called SYS$LOGIN:SDA.INIT;
So you can execute follow code:
$ type sys$input /out=sys$login:sda.ini
show summary
exit
$ def SDA$INIT sys$login:sda.ini
$ anal/sys
$ delete/log sys$login:sda.ini;*
This work on every version of VMS.

Antonio Vigliotti
Antonio Maria Vigliotti
labadie_1
Honored Contributor

Re: ANALYZE/SYSTEM Information

Ian Miller.
Honored Contributor

Re: ANALYZE/SYSTEM Information

(Trivia quiz... which OpenVMS engineer's car number plate is "MCR SDA"? ;-)

is the answer cmos?
____________________
Purely Personal Opinion
Volker Halle
Honored Contributor

Re: ANALYZE/SYSTEM Information

(Trivia quiz... which OpenVMS engineer's car number plate is "MCR SDA"? ;-)

How abour Richard B. ?
Lachnitt_1
Frequent Advisor

Re: ANALYZE/SYSTEM Information

@Volker Halle

(Trivia quiz... which OpenVMS engineer's car number plate is "MCR SDA"? ;-)

If you have a car in america , i would expect you have such a plate!!!

Greetings Kuddel!
Jan van den Ende
Honored Contributor

Re: ANALYZE/SYSTEM Information

Mario,

please give Kuddel 10 wel-deserved points out of my name! :-) :-)

Cheers.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.