- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- Re: run sssu comands on linux system.
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-02-2005 08:49 PM - last edited on тАО02-16-2014 11:56 PM by Maiko-I
тАО08-02-2005 08:49 PM - last edited on тАО02-16-2014 11:56 PM by Maiko-I
Hello.
I am trying to run sssu script on linux with
no success.
if i run: /usr/sbin/sssu "file /tmp/sssusanp.txt"
the sssu run with no problem at all, but if i
put this command into simple shell script & run the script it's fail :
the script do the sssu command , give me the prompt of unselectedsystem> file
& then fail with something wrong with syntax.
Create-snap script:
/usr/sbin/sssu "file /tmp/sssusnap.txt"
/opt/hp/hp_fibreutils/hp_rescan -a
mount -t ext3 /dev/sde1 /snap_vd1_db1
mount -t ext3 /dev/sdf1 /snap_vd2_db2
mount -t ext3 /dev/sdg1 /snap_vd3_db3
exit
sssusnap.txt:
set options on_error=halt_on_error
set options command_delay=10
select manager 10.0.4.40 username=administrator password=administrator
select cell "OUR_EVA"
ADD SNAPSHOT SNAP_VD_1 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-1\ACTIVE" ALLOCATION_POLICY=DEMAND
ADD SNAPSHOT SNAP_VD_2 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-2\ACTIVE" ALLOCATION_POLICY=DEMAND
ADD SNAPSHOT SNAP_VD_3 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-3\ACTIVE" ALLOCATION_POLICY=DEMAND
ADD LUN 5 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-1\SNAP_VD_1" HOST="\Hosts\WiseDEVDB1"
ADD LUN 6 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-2\SNAP_VD_2" HOST="\Hosts\WiseDEVDB1"
ADD LUN 7 STORAGE="\Virtual Disks\WISE-RAC\VD-WISE-RAC-3\SNAP_VD_3" HOST="\Hosts\WiseDEVDB1"
EXIT
Any Hints how should i run the script ??
Thanks.
Shalom.
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
тАО08-04-2005 12:45 AM
тАО08-04-2005 12:45 AM
Re: run sssu comands on linux system.
/opt/..../sssu < /../../scriptfile
we use this on linux and solaris, with similar syntax in the sssu script file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2005 01:46 AM
тАО08-04-2005 01:46 AM
Re: run sssu comands on linux system.
So you mean that I should put in redirect of the script file:
/usr/sbin/sssu < /tmp/sssusnap.txt
& not as i tried from the sssu docs -
/usr/sbin/sssu "file /tmp/sssusnap.txt"
Regards.
Shalom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 10:22 PM
тАО08-08-2005 10:22 PM
Re: run sssu comands on linux system.
If the last command in the script is not exit it will display an error with unexpected end of file or something along those lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 11:11 PM
тАО08-10-2005 11:11 PM
Solutionhere are some pieces of my script from beginnig about my snap.sh;
Hope this helps,
#!/usr/bin/ksh
#set -xv
#2) Yanlis device'in vgimport edilmesi. : N-class'in 3 snap haricindeki disklere ulasimina izin verilmemesi gerekir.
# WWID kontrolu 11i ile konacak
typeset -i line_count
typeset -i ExitStatus
export LOGFILE="/HP/LOG/SNAPCLONE.log"
export DETAIL_LOGFILE="/HP/LOG/SNAPCLONE.detail.log"
echo "===================================`date`==========================">>$DETAIL_LOGFILE
export PATH=$PATH:/usr/bin:/usr/sbin:/sbin:/opt/sssu
#export SSSU_EXECUTABLE="/opt/sssu/sssu"
export SSSU_EXECUTABLE="/sbin/sssu"
if [ ! -x $SSSU_EXECUTABLE ]; then
EchoWithDate "sssu executable'i bulunamadi"
exit 1
fi
EchoWithDate ()
{
cat <
`date +"%d/%m/%y %H:%M:%S>"` $1
ECHOWITHDATE
}
#Eger hata olusursa, hata verilip cikilir
AddSnapclone_1 () {
TEMP_FILE=`mktemp`
EchoWithDate "Adding Snapclone baandat_baan02 in \Virtual Disks\BAAN01\baandat\ACTIVE as LUN 40"
EchoWithDate "Adding Snapclone archivedat_baan02 in \Virtual Disks\BAAN01\archivedat\ACTIVE as LUN 41"
$SSSU_EXECUTABLE >$TEMP_FILE 2>&1 <<- EOF
select manager EVAmanagement username=administrator password=administrator
select cell EVA01
set options on_error=exit_on_error
.
.
.
.
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 11:22 PM
тАО08-10-2005 11:22 PM
Re: run sssu comands on linux system.
I will try using the most of it.
Great.