Skip to main content
SnapManager for SAP

Variables available in the task scripts for clone operation

Contributors

SnapManager provides context information in the form of environment variables related to the clone operation being performed. For example, your script can retrieve the name of the original host, the name of the clone database, and the label of the backup.

The following table lists the environment variables that you can use in your scripts:

Variables Description Format

SM_ORIGINAL_SID

SID of the original database

string

SM_ORIGINAL_HOST

Host name associated with the original database

string

SM_ORIGINAL_OS_USER

OS owner of the original database

string

SM_ORIGINAL_OS_GROUP

OS group of the original database

string

SM_TARGET_SID

SID of the clone database

string

SM_TARGET_HOST

Host name associated with the clone database

string

SM_TARGET_OS_USER

OS owner of the clone database

string

SM_TARGET_OS_GROUP

OS group of the clone database

string

SM_TARGET_DB_PORT

Port of the target database

integer

SM_TARGET_GLOBAL_DB_NAME

Global database name of the target database

string

SM_BACKUP_LABEL

Label of the backup used for the clone

string