Storage Software
1821808 Members
3259 Online
109638 Solutions
New Discussion

SSSU config capture

 
SOLVED
Go to solution
Edward143
Advisor

SSSU config capture

how to configure sssu config for the CV..

Manager:localhost
Username - administrator
password - xxxxxx
select system xxxxx
capture configuration

is the above commands are ok to capture the cv config??
or anyother commands to be run ??


 

P.S. This thread has been moved from Storage Area Networks (SAN) (Enterprise) to HP Storage System Scripting Utility (SSSU). -HP Forum Moderator

13 REPLIES 13
Edward143
Advisor

Re: SSSU config capture

what is the best practises command for sssu..
ks6542
Valued Contributor

Re: SSSU config capture

Well I dont think that is suficient..
I had attached the config capture script.. copy it at location where you have sssu.exe located and then open commad prmt ..
from there you need to run :

C/>sssux.exe "file get_config_sssu.txt" >output.txt

If you open config capture file you will see lot of sections ... if you dont want any particular,you can always comment it and save it..

You just need to fill these in capture file :Manager:localhost
Username - administrator
password - xxxxxx
select system xxxxx

and save it..
hope it helps..:)
ks6542
Valued Contributor

Re: SSSU config capture

sorry little bit of mistake on avove..

C:\xxx\xxx>sssu.exe "file eva_capture.txt" > output.txt

its sssu.exe not sssux.exe :P
DogBytes
Valued Contributor

Re: SSSU config capture

The "capture configuration" command builds the necessary scripts to rebuild your EVA. Unlike LS commands that show what you have, the capture configuration output is designed to recreate your storage system so I recommend having both. On my systems, I have a read only account (user in "HP Storage Users" group) and I store the credentials in a file for each EVA:

[c:\SANscripts\eva8000]:
select manager localhost username=sanadmin password=readonly
select system EVA8000
set options command_delay=5 display_time_on ! don't set command_delay too low on busy arrays

A secondary file called EVA8000_capture_config.cmd that runs from the windows scheduler (or crontab if you prefer) calls the above file:

[c:\SANscripts\EVA8000_capture_config.cmd]:
c:
cd C:\Program Files\Hewlett-Packard\Sanworks\Element Manager for StorageWorks HSV
sssu "file c:\SANScripts\eva8000" "capture configuration eva8000.txt"

By calling the credentials file first, you have your password in only one place per EVA. Then you can build other collection scripts for the LS commands that ks6542 was refering to.

- R.

Sheldon Smith
HPE Pro

Re: SSSU config capture

Edward, your original commands are fine. However, I suspect you want to have the configuration commands in a text file for subsequent re-use. Add a filename on the end of the "capture configuration" command:

Manager:localhost
Username - administrator
password - xxxxxx
select system xxxxx
capture configuration eva_xxxxx.txt

It will create one or more files named eva_xxxxx_step1a.txt (and possibly eva_xxxxx_step1b.txt, eva_xxxxx_step1c.txt and so on).

As others noted, the SSSU commands can be put in a file which can be used as input to SSSU.

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company

Accept or Kudo

Edward143
Advisor

Re: SSSU config capture

i have copied the file to the sssu file location... Now how to run the SSSU.exe command ???

also i have editied the file for user name and password with EVA name as well.
Mark...
Honored Contributor

Re: SSSU config capture

Hi,
It's in an earlier post I believe:

C/>sssu.exe "file get_config_sssu.txt" >output.txt

You need to run from the dos prompt and I would advise you to have the SSSU.exe and the file you wish to execute in the same directory. Specifying paths to other directories often fails in my experiance.

Mark...
if you have nothing useful to say, say nothing...
Edward143
Advisor

Re: SSSU config capture

i have copied the file sssu.txt to the same sssu.exe directory. But when i run command as "sssu.exe file get_config_sssu.txt >c:\output.txt ". it gives an error as invalid argument in the output file.

My file name is sssu.txt
Mark...
Honored Contributor
Solution

Re: SSSU config capture

Hi,

try this exactly, do not redirect to c drive

> sssu.exe "file get_config_sssu.txt" >output.txt

the output file will then be in the same dir as everything else. You will need to substitute the name of your file for the "get_config_sssu.txt" unless that is what you have called it? It may take a few mins to complete depending on what is in your script.

Mark...
if you have nothing useful to say, say nothing...
Edward143
Advisor

Re: SSSU config capture

hi,
Thanks for help.now i can able to get the sssu output.
So what is the command to restore this configuration in case of disaster situations.

At disaster recovery i will be rebuilding the Command view manually installing. then how to restore this to cv???
Mark...
Honored Contributor

Re: SSSU config capture

Hi,
To rebuild the EVA you would have to look at the output from the file you have captured so this requires lots on manual work and assumes that you understand the output in the file you have captured!

To save the config of the EVA then all you need to do is to start up SSSU, log onto your server and then use the "capture cofiguration" cmd within sssu. This will then generate between 1 and 5 files depending on the config of the EVA. If you have a basic config then it will create only one file. If you have a CA config then it will create between 4 to 5 files. I suspect that you have a basic config?
If you make any changes to your EVA then you should run capture config again.
*WARNING* capture config ONLY saves the config of the EVA ***NOT DATA*** You would still require backup media to restore your data.
Mark...
if you have nothing useful to say, say nothing...
Edward143
Advisor

Re: SSSU config capture

i will restore the data from the media. but how to restore the sssu output to cv ???
Mark...
Honored Contributor

Re: SSSU config capture

Hi,
To restore the file the you need to go into SSSU prompt, select the storage array and then use the sssu file command - note: it is not the same command you used earlier.

"sssu prompt"> file "location of file you saved"
example
> file "c:\abc\recovery_step1a.txt"

The best way to understand is to go and capture a config script from a configured EVA and look at it.

Mark...
if you have nothing useful to say, say nothing...