Scripting commands > GetEnvStr

GetEnvStr

 

Command

GETENVSTR

Description

Retrieves an operating system environment variable and stores the value in a Carbonite Availability variable

Syntax

GETENVSTR <env_variable> $<variable_name>

Options

Examples

getenvstr computername $server

Notes

It is not necessary for either the environment or Carbonite Availability variable to exist when using this command. A non-existent environment variable will store a null string in the Carbonite Availability variable.