1855261 Members
6020 Online
104109 Solutions
New Discussion

remapsystem with cstm

 
Charles THISE
Occasional Advisor

remapsystem with cstm

Hi all,

I try to create an automaic remap with cstm.

But i don't know what i must put in input to cstm.

I try something like this :

echo 'remapsystem;ok;quit;ok' |cstm

but the first OK don't pass, cstm break on.

Any ideas, your help will be very appreciate.

In advance, i thank you.

Charles THISE
6 REPLIES 6
John Carr_2
Honored Contributor

Re: remapsystem with cstm

Hi

CSTM is a command line interface for the Support Tool Manager (STM). to perform a set of commands you need to put them into a file then from the prompt :

cstm -f mycommands

this will perform the commands you requested but leave you back at the command line interface not the general unix prompt.

hope this helps

John.
Bill McNAMARA_1
Honored Contributor

Re: remapsystem with cstm

try adding a wait
or waitall
(can't remember which)

Later,
Bill
It works for me (tm)
steven Burgess_2
Honored Contributor

Re: remapsystem with cstm

I think you need to pass the output of the echo to a file

ie
# echo "selclass type memory;info;wait;infolog"|cstm > /tmp/meminfo

Regards

Steve



take your time and think things through
steven Burgess_2
Honored Contributor

Re: remapsystem with cstm

Hi

and as Bill add's, supply the wait

Steve
take your time and think things through
steven Burgess_2
Honored Contributor

Re: remapsystem with cstm

Have a look at the following

May give you more info

http://docs.hp.com//hpux/onlinedocs/diag/stm/stt_crun.htm

Steve
take your time and think things through
John Carr_2
Honored Contributor

Re: remapsystem with cstm

Hi

I just tried this and it worked

echo "remapsystem;wait,quit;ok" | cstm > outfile

cat outfile

cheers
John.