Operating System - HP-UX
1828411 Members
3880 Online
109977 Solutions
New Discussion

Script to get CSTM version from multiple servers

 
SOLVED
Go to solution
sebastien_7
Occasional Advisor

Script to get CSTM version from multiple servers

Hello all,

I need to run a script that will collect the STM version you see when you launch CSTM:

-- Information --
Support Tools Manager


Version A.24.05

Reason for that is that we have close to 100 servers and running the command manually would take some time and also because I could not find another way to get it, SWLIST shows the bundle release only.

Thanks
Sebastien
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor

Re: Script to get CSTM version from multiple servers

Hi,

# echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep Version

will display the installed version, but I'm not shure it is the best answer.

Regards,
Robert-Jan
Kent Ostby
Honored Contributor

Re: Script to get CSTM version from multiple servers

This script will pull the information which includes the version:

If you are running diagnostics, you can find out via cstm.

1) Check to ensure that diagnostics is loaded on your system:

ll /usr/sbin/cstm

If this file exists then you have diagnostics loaded and can continue

2) Create a file and include the following text in that file:

/usr/sbin/cstm < /tmp/cstm.out
selclass type "All" qualifier "All" hwpath ""
information; wait
infolog
done
exit
ok
EOE

3) Make the script runnable, chmod +x <scriptname>

4) Run the script: ./<scriptname>

The output file for the script will be in /tmp/cstm.out

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Tom Danzig
Honored Contributor
Solution

Re: Script to get CSTM version from multiple servers

remsh 'echo "exit" | /usr/sbin/cstm | grep "Version "'
Suraj Singh_1
Trusted Contributor

Re: Script to get CSTM version from multiple servers

To be more precise...

remsh 'echo "exit" | /usr/sbin/cstm | grep "Version " | grep -v "HP"'
What we cannot speak about we must pass over in silence.
Jdamian
Respected Contributor

Re: Script to get CSTM version from multiple servers

remsh remotesys '/usr/sbin/cstm < /dev/null' | grep "^Version"
sebastien_7
Occasional Advisor

Re: Script to get CSTM version from multiple servers

Thanks to all.