HP StorageWorks Storage Mirroring for Linux Scripting Guide (T2558-96319, June 2009)

14 - 12
Get
Get Env Str
Command GET
Description Requests the value of a Storage Mirroring program setting from the specified
server
Syntax
GET <setting> [machine]
Options
setting—See the table Storage Mirroring Server Settings on page
13-2 for a complete list of the Storage Mirroring program settings
machine—Name of the machine
Examples
get netport
get VerifyLogName
get DefaultAddress
Notes
If you do not specify a machine name, the value from the current source
will be returned. If you have not identified an active source, no data will
be returned.
Machine names that contain non-alphanumeric characters must be
enclosed in quotation marks.
Command GETENVSTR
Description Retrieves an operating system environment variable and stores the value in
a Storage Mirroring 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 variable
to exist when using this command. A non-existent environment variable will
store a null string in the Storage Mirroring variable.