- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- SSSU - Passing a windows parameter from a command ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 11:16 AM
08-12-2008 11:16 AM
SSSU - Passing a windows parameter from a command file
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 01:19 PM
08-12-2008 01:19 PM
Re: SSSU - Passing a windows parameter from a command file
# 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2008 10:21 PM
08-12-2008 10:21 PM
Re: SSSU - Passing a windows parameter from a command file
+----
sssu.exe "file logon.txt" "select system %SYS%" "ls lun"
-----
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2008 12:03 AM
09-03-2008 12:03 AM
Re: SSSU - Passing a windows parameter from a command file
+----
sssu.exe "file logon.txt" "select system %SYS%" "ls lun"
-----
It worked not.
I see no information in logon.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2008 12:08 AM
09-03-2008 12:08 AM
Re: SSSU - Passing a windows parameter from a command file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2008 12:10 AM
09-03-2008 12:10 AM
Re: SSSU - Passing a windows parameter from a command file
I have forgotten the path of the outputfile and the outputfile:
> c:\script_output\eva_hostfull_%1.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2008 12:14 AM
09-03-2008 12:14 AM
Re: SSSU - Passing a windows parameter from a command 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?