CmsConfig addlog command
Use the CmsConfig addlog command to manually add the location of client log files to an existing node definition in the client-configuration.xml configuration file. Use this command only if the client log files are stored in a non-default location on the client system.
Syntax
Parameters
- nodeName
- The client node name that is associated with the log files. For most client systems, only one node name is registered to the IBM Storage Protect server. However, on systems with multiple users, such as Linux® client systems, there can be more than one client node name. This parameter is required.
- logPath
- The fully qualified path of the log files. This parameter is required.
Example (Linux client): /opt/backup_tools/tivoli/tsm/baclient/dsmerror.log
Example (Windows client): C:\backup tools\Tivoli\TSM\baclient\dsmerror.log
- language
- The language locale of the log file. This parameter is optional. However, if you specify this
parameter, you must also specify the dateFormat,
timeFormat, and encoding parameters. You must specify the
locale for the following languages.
Language Locale Brazilian Portuguese pt_BRChinese, Simplified zh_CNChinese, Traditional zh_TWCzech cs_CZEnglish en_USFrench fr_FRGerman de_DEHungarian hu_HUItalian it_ITJapanese ja_JPKorean ko_KRPolish pl_PLRussian ru_RUSpanish es_ES - dateFormat
- The date format of the time stamp entries in the client log file. This parameter is optional.
However, if you specify this parameter, you must also specify the language,
timeFormat, and encoding parameters.
The following table shows the date formats for the languages.
Tip: Instead of using one of the date formats that are listed in the table, you can specify a date format by using the backup-archive client dateformat option.Language Date format Chinese, Simplified yyyy-MM-ddChinese, Traditional yyyy/MM/ddCzech dd.MM.yyyyEnglish MM/dd/yyyyFrench dd/MM/yyyyGerman dd.MM.yyyyHungarian yyyy.MM.ddItalian dd/MM/yyyyJapanese yyyy-MM-ddKorean yyyy/MM/ddPolish yyyy-MM-ddPortuguese, Brazilian dd/MM/yyyyRussian dd.MM.yyyySpanish dd.MM.yyyy - timeFormat
- The time format of the time stamp entries in the client log file. This parameter is optional.
However, if you specify this parameter, you must also specify the language,
dateFormat, and encoding
parameters.The following table shows examples of default time formats that you can specify and client operating systems.Tip: Instead of using one of the time formats that are listed in the table, you can specify a time format by using the backup-archive client timeformat option.
Language Time format for Linux client systems Time format for Windows client systems Chinese, Simplified HH:mm:ssHH:mm:ssChinese, Traditional HH:mm:ssahh:mm:ssCzech HH:mm:ssHH:mm:ssEnglish HH:mm:ssHH:mm:ssFrench HH:mm:ssHH:mm:ssGerman HH:mm:ssHH:mm:ssHungarian HH.mm.ssHH:mm:ssItalian HH:mm:ssHH:mm:ssJapanese HH:mm:ssHH:mm:ssKorean HH:mm:ssHH:mm:ssPolish HH:mm:ssHH:mm:ssPortuguese, Brazilian HH:mm:ssHH:mm:ssRussian HH:mm:ssHH:mm:ssSpanish HH:mm:ssHH:mm:ss - encoding
- The character encoding of the entries in the client log files. This parameter is optional.
However, if you specify this parameter, you must also specify the language,
dateFormat, and timeFormat parameters.
For Linux client systems, the typical character encoding is UTF-8. For Windows client systems, the default encoding values are shown in the following table. If your client system is customized differently, use the encoding parameter to specify a value other than the default.
Language Encoding Chinese, Simplified CP936Chinese, Traditional CP950Czech Windows-1250English Windows-1252French Windows-1252German Windows-1252Hungarian Windows-1250Italian Windows-1252Japanese CP932Korean CP949Polish Windows-1250Portuguese, Brazilian Windows-1252Russian Windows-1251Spanish Windows-1252
Example for a Linux client system
Add the client log file location to the existing definition for client node SUSAN in the client-configuration.xml file. The path for the client log file is /usr/work/logs/dsmerror.log. Add the language specification, time format, and date format for the French locale.
Issue the following command from the /opt/tivoli/tsm/cms/bin directory.
- Command:
./CmsConfig.sh addlog SUSAN /usr/work/logs/dsmerror.logfr_FR yyyy/MM/dd HH:MM:ss UTF-8- Output:
-
Adding log. Finished adding log.
Example for a Windows client system
Add the client log file location to the existing definition for client node SUSAN in the client-configuration.xml. The path for the client log file is c:\work\logs\dsmerror.log. Add the language specification, time format, and date format for the French locale.
Issue the following command from the C:\Program Files\Tivoli\TSM\cms\bin directory.
- Command:
-
cmsconfig addlog SUSAN c:\work\logs\dsmerror.logfr_FR yyyy/MM/dd HH:MM:ss UTF-8 - Output:
-
Adding log. Finished adding log.
