A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Storage & Hardrives
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

using a variable in sssu script



 
 
Thread Tools Display Modes
  #1  
Old October 3rd 07, 08:22 PM posted to comp.arch.storage
[email protected]
external usenet poster
 
Posts: 1
Default using a variable in sssu script

I am trying to figure out, when creating a snapshot/snapclone sssu
script for HP EVA storage system, how to make the snapshot or
snapclone name a variable, preferably a timestamp, this way I can
automate the create of the snapshots and not have to worry about the
name already being used.

Any ideas?

  #2  
Old October 9th 07, 11:33 PM posted to comp.arch.storage
belpatCA
external usenet poster
 
Posts: 9
Default using a variable in sssu script

On Oct 3, 1:22 pm, wrote:
I am trying to figure out, when creating a snapshot/snapclone sssu
script for HP EVA storage system, how to make the snapshot or
snapclone name a variable, preferably a timestamp, this way I can
automate the create of the snapshots and not have to worry about the
name already being used.


You could write a script that would modify your script before it's
given to sssu, something like

awk '{ gsub(/SNAPNAME/, strftime()); print}' myscript
myNewScript

give sssu the myNewScript file to execute. Dirty trick but it works
for server-side scripting problems like the one you seem to be having.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Post script and Non Post Script Printers alwaysanewbie Printers 3 November 9th 05 05:37 PM
A script to print a page every day? Andrew Printers 4 February 8th 05 12:54 PM
Q-fan settings and buying a variable speed detectable and variable fan: WTF kgs Asus Motherboards 21 January 6th 04 01:32 AM
script errors Freddie Packard Bell Computers 4 January 5th 04 01:01 AM
Script Error M. P. Printers 0 August 30th 03 04:59 AM


All times are GMT +1. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.