Server Management - Systems Insight Manager
1825771 Members
2159 Online
109687 Solutions
New Discussion

Re: Custom Command and Environment variables

 
Roger Pedersen
Occasional Contributor

Custom Command and Environment variables

Hi
How can a start/setup a "Custom Command" that run a script with a utility (SC.EXE) that start a stopped NT Service ?

I can't see how to use Environment variables in a batch-script.

Like this:

Set SystemName=%1
echo %SystemName%>>allSYS-NTServicestopp.txt


1 REPLY 1
Rob Buxton
Honored Contributor

Re: Custom Command and Environment variables

I've not used the variables in Batch scripts, I tend to use perl. See:
http://h18004.www1.hp.com/products/servers/management/hpsim/infolibrary.html

In the Help Guide, go to the using default tools section and then the Custom Command. There's a list of the variables passed, plus you can also pass your own.