- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- Re: SSSU shell 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
тАО03-25-2005 03:31 AM - last edited on тАО02-16-2014 11:28 PM by Maiko-I
тАО03-25-2005 03:31 AM - last edited on тАО02-16-2014 11:28 PM by Maiko-I
I am making a shell script run sssu.
The script looks like this:
SNAP=...
HOST=...
sssu <select manager ... username=administrator password=administrator
select cell ...
add lun 3 vdisk="$SNAP" host="\Hosts\${HOST}"
exit
EOF
I am having troule with those "\" in the name
of host. Is there a better way to preserve the
real meaning of "\", don't try it as a special
character.
Thanks.
Lan
P.S. This thread has been moved from Disk array 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
тАО03-25-2005 07:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2005 07:18 AM
тАО03-25-2005 07:18 AM
Re: SSSU shell scripting
like, host="\\Hosts\\${HOST}"
It did not work.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2005 12:47 AM
тАО03-27-2005 12:47 AM
Re: SSSU shell scripting
Did you try:
(notice the 2 \\ before $)
HOST=yoyo
SNAP=vol1
cat <
select cell ...
add lun 3 vdisk="$SNAP" host="\Hosts\\${HOST}"
exit
EOF
which produces:
select manager ... username=administrator password=administrator
select cell ...
add lun 3 vdisk="vol1" host="\Hosts\yoyo"
exit
I had to use 'cat' because I don't have access to SSSU right now.
hth
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2005 01:23 AM
тАО03-28-2005 01:23 AM
Re: SSSU shell scripting
"n", "t", "a", "f", because
"\n","\t","\a","\f" are escape characters.
It happened that I have two hosts with names
starting with "a" and "f". I guess the solution
is to "hard coded" them into the script.
Thanks to all.
Lan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2005 01:31 AM
тАО03-28-2005 01:31 AM