Mac OS X operating systems AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
IBM Tivoli Storage Manager, Version 7.1

Set processing environment variables

There are some circumstances where you must set environment variables to ensure that Tivoli® Storage Manager applications can locate the files that are needed to perform client operations, and that applications can create log files that record events and errors that occur during Tivoli Storage Manager operations.

You must set the environment variables in any of the following circumstances:

Tip: You can also specify an alternate client options file for the command-line client (not the administrative client) using the optfile option.

There are four environment variables you can set which affect Tivoli Storage Manager processing:

PATH
Includes the directory where the executable file for the client executables (dsmc, dsmadmc, dsmj) resides.
DSM_DIR
Specifies the directory where the executable file for the client executables (dsmc, dsmadmc, dsmj) the resource files, and the dsm.sys file reside. You cannot specify the root (/) directory for DSM_DIR.

Refer to the installation section for your operating system to find the default installation directory information.

Mac OS X operating systems AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems When you request an image backup, image restore, snapshot-based file backup, NAS backup, or NAS restore, Tivoli Storage Manager uses the DSM_DIR environment variable to locate the corresponding plug-in library. If DSM_DIR is not set, the client looks for the plug-in library in the following directories:
AIX®
/usr/tivoli/tsm/client/ba/bin/plugins
HP-UX, all Linux clients, and Solaris
/opt/tivoli/tsm/client/ba/bin/plugins
DSM_CONFIG
Specifies the fully-qualified path and file name of the client user options file for users who create their own personalized options file. If DSM_CONFIG is not set, or the -optfile option is not used, the client user options file is expected to satisfy these requirements:
  1. The options file must be named dsm.opt.
  2. For UNIX clients other than Mac OS X, if DSM_DIR is not set, then the file must reside in the default installation directory. If DSM_DIR is set, then the file must reside in the directory specified by DSM_DIR.
  3. Mac OS X operating systems For Mac OS X, the file can reside in any of the following locations. These directories are searched in order, and the first option file found is used. ~/Library Preferences/Tivoli Storage Manager, /Library Preferences/Tivoli Storage Manager, or /Library/Application Support/tivoli/tsm/client/ba/bin.

Refer to the installation section for your operating system to find the default installation directory information.

DSM_LOG
Points to the directory where you want the Tivoli Storage Manager log files to reside. You cannot specify the root (/) directory for DSM_LOG. The log files contain information about errors and events that occur during processing. The client creates the logs to help the Tivoli Storage Manager technical support team diagnose severe errors.

Refer to the installation section for your operating system to find the default installation directory information.

Important: Set the DSM_LOG environment variable to name a directory where read-write permissions allow the required write access for the user to create and write to the log file. This prevents log write failures and process termination. Use the chmod or setacl commands to give the files permissions that allow all expected client user IDs to read and write them. If the log names are the default names, just set the DSM_LOG environment variable to point to the directory where they reside. When Tivoli Storage Manager cannot write to the log file, an error message is written to stderror and to the syslog daemon. The syslog daemon must be running and configured to process messages with a priority of LOG_ERR for the error message to appear in the system log. Starting and configuring the syslog daemon is system specific. See "man syslogd" for information on starting the syslog daemon, and "man syslog.conf" for information on configuring the syslog daemon.

Note:
  1. The errorlogname and schedlogname options override DSM_LOG. If you specify the errorlogname client option, the file is stored in the directory specified by the errorlogname option and not in the location specified by DSM_LOG. If you specify the schedlogname client option, it is written to the directory specified by the schedlogname option and not in the location specified by DSM_LOG.
  2. The log files cannot be symbolic links. Tivoli Storage Manager detects any such links, delete the links, then exit the operation. This prevents Tivoli Storage Manager from overwriting protected data. The affected logs are created as files in a subsequent operation.

To use the Tivoli Storage Manager Java GUI program, you must export the directory where you installed the java binary file. For example, enter the following command:

export PATH=$PATH:java_bin_dir

where: java_bin_dir is the path to the runnable Java binary file in your file system.



Feedback