- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- Re: SSSU and scripting
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
Discussions
Discussions
Forums
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
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
тАО06-28-2007 04:41 AM - last edited on тАО02-17-2014 07:12 PM by Lisa198503
тАО06-28-2007 04:41 AM - last edited on тАО02-17-2014 07:12 PM by Lisa198503
Having an interesting time trying to automate an SSSU task.
Currently running SSSU 6.0 build 34
Had been running SSSU 4 until recently.
When you start the SSSU prompt it immediately prompts you for a manager, username and password in succession.
When I use the SSSU FILE command and run as a batch file, it does not seem to recognize the first line which is my SELECT MANAGER, USERNAME, PASSWORD line which use to work fine.
So, batch file containes sssu "FILE sssu1.txt" >>test.txt
SSSU1.txt contains
SELECT MANAGER systemname USERNAME=username PASSWORD=password (generic for security)
SELECT SYSTEM hsvname
LS disk_groups
I get this in test.txt
NoSystemSelected> FILE sssu1.txt
NoSystemSelected> SELECT SYSTEM systemname
Error: command not valid until a manager is selected (SELECT MANAGER)
As you can see from above, the 1st line in the text contains a select manager statement
Any ideas?
Thanks
Larry Fee
P.S. This thread has been moved from Storage Area Networks (SAN) (Enterprise) to HP Storage System Scripting Utility (SSSU). -HP Forum Moderator
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 05:21 AM
тАО06-28-2007 05:21 AM
Re: SSSU and scripting
I think this is due to the authentication changes that happened in version 6.
The username and password you need are the one used to log in to Command View EVA on your Management Appliance. This is different to previous versions...
Hope this helps,
Regards,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 05:27 AM
тАО06-28-2007 05:27 AM
Re: SSSU and scripting
I am using that account, but it does not seem to want to take that. The account is a member of the local HP Storage Admins group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 05:27 AM
тАО06-28-2007 05:27 AM
Re: SSSU and scripting
set option on_error=continue
Try running:
sssu "file sssu1.txt"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 05:42 AM
тАО06-28-2007 05:42 AM
Re: SSSU and scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 06:53 AM
тАО06-28-2007 06:53 AM
Re: SSSU and scripting
Another Thing I noticed is you are using SELECT SYSTEM try using SELECT CELL hsvname.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 06:57 AM
тАО06-28-2007 06:57 AM
Re: SSSU and scripting
I will try the ceel and IP and get back to you
THanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 07:22 PM
тАО06-28-2007 07:22 PM
Solutionyou could try two more things:
1) quote the username and password like this (are there any special characters in your user name?):
SELECT MANAGER [SMA] USERNAME="[SMAUSER]" PASSWORD="[SMAPASSWORD]"
2) if the user is a domain account, try it without the domain part, e.g. for "domain\user" just use "user"
Just to make sure: when you start sssu interactively and are prompted for sma, user and password, you can successfully connect? And the exact same three pieces of information don't work when used in a SELECT MANAGER statement?
Urban
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2007 09:22 PM
тАО06-28-2007 09:22 PM
Re: SSSU and scripting
i make such a lot thing├В┬┤s on our 4 EVA storages with the SSSU tool (backup, find vdisk├В┬┤s, a.s.o).
write this lines in a bash (other whatever) script:
#!/bin/bash
WORKDIR=
CVE=
EVA=
USER=
PASS=
OUTFILE=
${WORKDIR}/sssu "select manager ${CVE} username=${USER} password=${PASS}" "select system ${EVA}" "ls disk_groups" "exit" >> ${WORKDIR}/${OUTFILE}
exit 0
regard├В┬┤s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2007 12:24 AM
тАО06-29-2007 12:24 AM
Re: SSSU and scripting
Your the man - no special characters in password or username (the user guide mentions this but I overlooked it), but the quotes did the trick - much thanks to everyone
1st time using this forum - certainly not the last
Larry