Operating System - HP-UX
1822010 Members
4068 Online
109639 Solutions
New Discussion юеВ

Support Tools Manager (STM)

 
Prax
New Member

Support Tools Manager (STM)

How to gather version number of STM
13 REPLIES 13
Ivan Krastev
Honored Contributor

Re: Support Tools Manager (STM)

STM version number (for example, A.57.00) - Appears when the xstm, mstm, or cstm program is executed. It also appears when monconfig is run.


regards,
ivan
Torsten.
Acclaimed Contributor

Re: Support Tools Manager (STM)

Run

# swlist|grep -i diag
OnlineDiag B.11.11.19.01 HPUX 11.11 Support Tools Bundle, June 2007

or

# cstm
...
Support Tools Manager


Version A.57.00

Product Number B4708AA

...



and compare the versions with this list



http://docs.hp.com/en/diag/stm/stm_upd.htm


...
A.57.00 Support Plus Media 0706 Jun 2007 B.11.11.19.01 A.04.20.11

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prasanth Thomas
Valued Contributor

Re: Support Tools Manager (STM)

Hi..

Please do the below steps....

LOGIN AS ROOT
#
# cstm
Running Command File (/usr/sbin/stm/ui/config/.stmrc).

-- Information --
Support Tools Manager


Version C.60.00

Product Number B4708AA

(C) Copyright Hewlett Packard Co. 1995-2008
All Rights Reserved

Use of this program is subject to the licensing restrictions described
in "Help-->On Version". HP shall not be liable for any damages resulting
from misuse or unauthorized use of this program.

cstm>

NOTE:- YOU MUST UPGARDE THE STM TOOL ..


Best Regards

Prasanth Thomas
Prax
New Member

Re: Support Tools Manager (STM)

thnks for all ur quick replies, running a script to gather STM version on nearly 70 servers, unable to push a cmd like this
ex:
mcheck -> no password is required,special user
earth -> a sever name

ssh mcheck@earth echo "selclass qualifier cpu;infolog"| /usr/sbin/cstm | grep -w Version
[or]
ssh check@earth echo "quit"|/usr/sbin/cstm|grep -w Version

both the command fails
... any thoughts
Ivan Krastev
Honored Contributor

Re: Support Tools Manager (STM)

Check is the command runs locally on one of the servers.


regards,
ivan
Torsten.
Acclaimed Contributor

Re: Support Tools Manager (STM)

"both fails" ... this is very detailed information!


How about


ssh check@earth "/usr/bin/echo 'exit'|cstm"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Support Tools Manager (STM)

or better

ssh check@earth "/usr/bin/echo 'exit'|/usr/sbin/cstm|/usr/bin/grep -i version"


Use all commands with full path if your user has no PATH set for them.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prax
New Member

Re: Support Tools Manager (STM)

When we pass echo "quit"|/usr/sbin/cstm|grep -w Version
this works perfectly! gives version details alone, when run from another server
it breaks since echo "quit" makes cstm nt to run. Incase we remove echo "quit" and type
/usr/sbin/cstm|grep -w Version then it provides us the version number but waits/hangs so we need to press ^C to break also this break our script.
Ur suggestions are most welcome !
Torsten.
Acclaimed Contributor

Re: Support Tools Manager (STM)

Copy and paste my line from above ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Prax
New Member

Re: Support Tools Manager (STM)

Thanks Guys - It Worked.
Cheers....
Prax
New Member

Re: Support Tools Manager (STM)

Bye - U guys rock !
Torsten.
Acclaimed Contributor

Re: Support Tools Manager (STM)

No points at all?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Dennis Handly
Acclaimed Contributor

Re: Support Tools Manager (STM)

>Torsten: Copy and paste my line from above

Right. Also for just one word "exit" it doesn't need to be quoted.
You can also use "\" to hide the inner quotes:
"/usr/bin/echo \"exit\" |/usr/sbin/cstm ...