- Community Home
- >
- Storage
- >
- Legacy
- >
- Storage Software
- >
- Re: SSSU Commands to remove many luns on a server
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
тАО09-19-2006 08:37 AM - last edited on тАО02-17-2014 07:42 PM by Lisa198503
тАО09-19-2006 08:37 AM - last edited on тАО02-17-2014 07:42 PM by Lisa198503
We are running an EVA8000 and would like to use SSSU to delete luns off a server. What commands should I use?
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
тАО09-19-2006 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2006 11:35 AM
тАО09-19-2006 11:35 AM
Re: SSSU Commands to remove many luns on a server
But, here is how we have been doing it -
/sbin/sssu "FILE $YOUR_FILE_NAME"
Typical YOUR_FILE_NAME -
SET OPTIONS NOCOMMAND_DELAY ON_ERROR=EXIT_ON_ERROR
select manager sma1.corp.gottschalks.com username=administrator password=secret
select cell SAN01
delete lun "\Hosts\HP-UX\Your Host name\50"
delete storage "\Virtual Disks\The host name\lun name\ACTIVE"
exit
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 12:38 AM
тАО09-20-2006 12:38 AM
Re: SSSU Commands to remove many luns on a server
Please disregard the "delete storage" command, as that will completely delete the data from the EVA.
If you simply want to unpresent, use "delete lun \Hosts\hostname\lun"
Thanks,
Tom Callahan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 05:17 AM
тАО09-20-2006 05:17 AM
Re: SSSU Commands to remove many luns on a server
For that case I take the output of the "SHOW LUN" command, store it in a file (show_lun.txt) and run it though a script (one line):
$ sed -e 's/ \\Hosts/delete lun \\Hosts/g' show_lun.txt | grep "^delete" > delete_luns.txt
In case you want to present them later again, do a "CAPTURE CONFIGURATION" before you start working with the EVA and store it in 'config.txt'. Then you can easily extract the mapping commands:
$ grep "^ADD LUN " config.txt > present_vdisks.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 06:58 AM
тАО09-20-2006 06:58 AM
Re: SSSU Commands to remove many luns on a server
Sue