HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96009, November 2009)
216 of 332
GetEnvStr
Command GETENVSTR
Description
Retrieves an operating system environment variable and stores the
value in a Storage Mirroring Recover variable
Syntax GETENVSTR <env_variable> $<variable_name>
Options
● env_variable—Name of the operating system environment
variable that you want to store in the user defined variable
● variable_name—Name of the variable you want to create.
This variable will store the operating system environment
variable specified.
Examples getenvstr computername $server
Notes
It is not necessary for either the environment or Storage Mirroring
Recover variable to exist when using this command. A non-existent
environment variable will store a null string in the Storage Mirroring
Recover variable.