- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- "SSSU -a" query
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
тАО08-27-2009 12:12 AM
тАО08-27-2009 12:12 AM
I want to execute "SSSU -a" which adds the user to password file from a script.The problem is that when I use the command "SSSU -a" on command line it prompts me for more inputs as below.
------------
# ./sssu_linux_x86 -a
SSSU for HP StorageWorks Command View EVA
Version: 8.0.0
Build: 111307A
Manager:servername
Username:hpadmin
Password:
------------
If I've to execute this command from the script, how do I specify the rest of the (prompted) parameters like manager, username and password?
If I try to execute following I get an error
---------------------
#./sssu_linux_x86 -a "select manager servername username=hpadmin password=pwd"
SSSU for HP StorageWorks Command View EVA
Version: 8.0.0
Build: 111307A
NoSystemSelected> -a
^
Error: Syntax error at or near here
---------------------
So let me know how we can achieve adding user to password file using SSSU command in scripts.
Appreciate urgent help.
Thanks,
Yojana
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 03:35 AM
тАО08-27-2009 03:35 AM
Re: "SSSU -a" query
sssu "file sssu.cmd"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 03:42 AM
тАО08-27-2009 03:42 AM
Re: "SSSU -a" query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 03:45 AM
тАО08-27-2009 03:45 AM
Re: "SSSU -a" query
SELECT MANAGER IPaddress username=administrator password=administrator
on a commands.txt file and run that text file with SSSU "File commands.txt"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 03:55 AM
тАО08-27-2009 03:55 AM
Re: "SSSU -a" query
in test.cmd and execute following I get errors.
./sssu_linux_x86 -a test.cmd
SSSU for HP StorageWorks Command View EVA
Version: 8.0.0
Build: 111307A
NoSystemSelected> -a
^
Error: Syntax error at or near here
NoSystemSelected> test.cmd
What is the way to specify required inputs in non-interactive mode?
Let me know if my question is still not clear.
thanks,
Yojana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 04:13 AM
тАО08-27-2009 04:13 AM
Re: "SSSU -a" query
the "-a" option is only used for setting up the credentials. Unfortunately, even in CV 9.1 the description in the SSSU manual is a 'inadequate', to say it in a friendly way.
Here is a customer advisory with more details:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01607310
Unfortunately, the 'data entry person' does not understand HTML and there is no quality assurance on the advisories result, so the output is a big mess.
Please check the HTML source of the page - even with all HTML tags it is more useful than the rendered copy, sigh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 08:34 AM
тАО08-27-2009 08:34 AM
Re: "SSSU -a" query
It seems there is no answer available or it is not possible/supported what I'm asking.
Anyways thanks all for their time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 10:18 AM
тАО08-27-2009 10:18 AM
Re: "SSSU -a" query
SSSU -a is a run once command. You run it manually, enter your credentials, and it will exit back to the prompt without warning, if successful. From that point on, when scripting against SSSU, you don't need to add password to the scripts.
So.... if testscript.fil contains:
! begin script
select manager somehost.somedomain.com username=admin
select system systemname
ls vdisk
exit
! end script
Then you would simply run:
./sssu_linux_x86 "FILE testscript.fil"
NOTE: there is no -a option when you run the script.
Hopefully that helps.
Thanks,
Tom Callahan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 10:43 AM
тАО08-27-2009 10:43 AM
SolutionYojana wants to set up the authentication with "-a" _using_ a script.
I don't have the infrastructure right now to try some ideas, but here they are:
- I/O redirection
# cat answers.txt
servername
username
password
# sssu -a < answers.txt
- HERE document
# sssu -a <
username
password
EOF
#
- hack something with pseudo ttys and 'expect'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2009 11:12 AM
тАО08-27-2009 11:12 AM
Re: "SSSU -a" query
# cat answers.txt
servername
username
password
# sssu -a < answers.txt
The above works. I was also confused by the question it appears.