Storage Software
cancel
Showing results for 
Search instead for 
Did you mean: 

SSSU - Passing a windows parameter from a command file

Ray Albert
Occasional Visitor

SSSU - Passing a windows parameter from a command file

I have a script that will capture the array information, but i have 3 arrays on the eva. I want to keep all 3 arrays in seperate output files which work, but trying to get it where i can pass a parameter into sssu. example

cmd file that runs

sssu "file c:\scripts\eva_hostfull.in" %1 > c:\script_output\eva_hostfull_%1.out

input file

select manager localhost USERNAME=someusername PASSWORD=somepwd
select system %1
ls host full
exit

the select system %1 this is where the i have to hardcode the system, but would like to pass the value in. any ideas?
6 REPLIES
Amar_Joshi
Honored Contributor

Re: SSSU - Passing a windows parameter from a command file

SSSU commands can't accept the variables. You can create 3 files (say eva1.in, eva2.in and eva3.in) each will have it's own EVA's name. Then create a BAT file which will run them one after another.

# sample evaconfigcollector.bat
sssu "file c:\eva1.in" > C:\eva1.out
sssu "file c:\eva2.in" > C:\eva2.out
sssu "file c:\eva3.in" > C:\eva3.out


If you are interested in something more, see the following, which I used sometimes back.

# sample EVAConfigCollector.BAT
@ECHO ON
SET EXITCODE=0
set outputfile=EVA_%date:~-4,4%%date:~-7,2%%date:~4,2%.txt
ECHO Please wait while script captures the SSSU Output.
ECHO This screen will CLOSE automatically upon SSSU completion.
ECHO "This script was run on %date% %time%" > %outputfile%
SSSU.exe "file EVA1.in" 1>> %outputfile%

Enjoy playing with scripts.
Uwe Zessin
Honored Contributor

Re: SSSU - Passing a windows parameter from a command file

Ray, you can create a longer CMD command line:
+----
sssu.exe "file logon.txt" "select system %SYS%" "ls lun"
-----
.
NK_forumuser
Advisor

Re: SSSU - Passing a windows parameter from a command file

Ray, you can create a longer CMD command line:
+----
sssu.exe "file logon.txt" "select system %SYS%" "ls lun"
-----

It worked not.

I see no information in logon.txt
Uwe Zessin
Honored Contributor

Re: SSSU - Passing a windows parameter from a command file

'logon.txt' is an input file. You must put the 'select manager ...' command into that file. The SSSU output will be sent to the screen.
.
NK_forumuser
Advisor

Re: SSSU - Passing a windows parameter from a command file

My false.
I have forgotten the path of the outputfile and the outputfile:

> c:\script_output\eva_hostfull_%1.out

NK_forumuser
Advisor

Re: SSSU - Passing a windows parameter from a command file

I am working with cmd file.

The EVA's have username and password.

But i can see the username and password in CMD file.

Could i "not see" the username and password in cmd file?