* PLATFORM,ACTION,COMPONENT,DATA,STORE_LOCATION
* If the data field contains a comma enclose the field in single or double quotes.
*
* Begin COMMON section - Gathers the following data no matter which platform 
* tsmdiag is running on

* Get TSM licensing info
COMMON,COMPCOMMAND,SERVER,select * from license_details,licdetails.txt
COMMON,COMPCOMMAND,SERVER,q license,qlicense.txt

* Get TSM Server's system info
COMMON,COMPCOMMAND,SERVER,q system,qsystem.txt

* get activity froma actlog for the last 24 hours  
* note - on Windows this command (containing < symbol) requires that admin, id, tcpserveraddress and 
* tcpport all be specified  and the command be enclosed in single then double quotes to allow the 
* command to complete sucessfully
COMMON,COMPCOMMAND,SERVER,'"select substr(char(date_time), 1, 16) as date_time,message from actlog where cast((current_timestamp-date_time)hours as decimal)<24"',actlog_last24hrs.txt

* On Windows,the COPY action will attempt to collect the specified files
* from the path found in the registry for each component:
* HKEY_LOCAL_MACHINE\SOFTWARE\IBM\ADSM\CurrentVersion\<path>, where <path> can
* be SERVER, SERVER1, SERVER2, SERVER3, SERVER4, or
* StorageAgent...
*
* On unix, the COPY action will collect the files specified from the server
* pointed to by the DSMSERV_DIR environment var or from the product's install
* location

COMMON,COPY,SERVER,*.opt,copy_options_results.txt
COMMON,COPY,SERVER,*.err,copy_err_results.txt

* End COMMON section 

* Begin WINDOWS section - gather the following data for a Windows 
* system. 
* 
* Run a system command - the value in data is the command
*
WINDOWS,SYSCOMMAND,SYSTEM,netstat /a,system_netstat.txt
WINDOWS,SYSCOMMAND,SYSTEM,systeminfo,systeminfo_cmd.txt
*
* Run the winmsd command putting the output in file specified by the
* STORE_LOCATION field
* NOTE: The WINMSD command will not run on 64bit systems.
* the DATA field specifies command line options for winmsd - see examples below.
* if the DATA field is set to none, tsmdiag will run the winmsd cmd as follows: 
* winmsd /report <STORE_LOCATION>
*
* if the DATA field is set to /categories +SystemSummary+ComponentsStorage
* then tsmdiag will run the winmsd cmd as follows:
*
* NOTE: winmsd does not run on the 64bit Windows Operating System
*winmsd /report <STORE_LOCATION> /categories +SystemSummary+ComponentsStorage
*example of configfile entry with above options
WINDOWS,WINMSD,SYSTEM,none,system_detail_info.txt
*WINDOWS,WINMSD,SYSTEM,/categories +SystemSummary+ComponentsStorage,system_detail_info.txt
*
* create a backup copy from the system and application event logs 
* To View - from a windows machine 
* from MY COMPUTER right click, chose manage, 
* select EVENT VIEWER
* from the event viewer panel, top select ACTION 
* choose OPEN LOG FILE and open the file 
*
WINDOWS,EVENTLOG,SYSTEM,NONE,system_eventlog.evt
WINDOWS,EVENTLOG,APPLICATION,NONE,application_eventlog.evt
*
*
* user name, computer name, osversion,GlobalMemoryStatus
*
WINDOWS,SYSTEMSUMMARY,SYSTEM,NONE,system_info_summary.txt
*
*
* SYSTEMDEVICE action uses tsmdlst to get a system device list
*
WINDOWS,SYSTEMDEVICE,SYSTEM,NONE,system_devicelist.txt
*
*
* The VERSION action uses the tsmvers utility on Windows. 
* Directories checked are from registry based on the COMPNENT value 
* HKEY_LOCAL_MACHINE\SOFTWARE\IBM\ADSM\CurrentVersion  path
* concatenated with a value for each entry except DEVDRIVERD
* 
* COMPONENT    PATH VALUE
* SERVER       server
* STAGENT      StorageAgent
* DEVDRIVER    driver
* MGMTCONSOLE  console
* DEVDRIVERD   %windir%\system32\drivers\adsmscsi.sys * not concatenated * 
*

WINDOWS,VERSION,SERVER,NONE,server_versioninfo.txt
WINDOWS,VERSION,STAGENT,NONE,stagent_versioninfo.txt
WINDOWS,VERSION,DEVDRIVER,NONE,driver_versioninfo_sys.txt
WINDOWS,VERSION,DEVDRIVERD,NONE,driver_versioninfo_dir.txt
WINDOWS,VERSION,MGMTCONSOLE,NONE,console_versioninfo.txt
*
*
* Get registry information DATA = either a predefined keyword that will
* be converted as shown below, or an actual registry key
*
* keyword        registry key
* TSM            hkey_local_machine\software\ibm\adsm\
* SERVER1        hkey_local_machine\system\currentcontrolset\services\tsm server1\
* SERVER2        hkey_local_machine\system\currentcontrolset\services\tsm server2\
* SERVER3        hkey_local_machine\system\currentcontrolset\services\tsm server3\
* SERVER4        hkey_local_machine\system\currentcontrolset\services\tsm server4\
* DRIVER         hkey_local_machine\system\currentcontrolset\services\adsmscsi\
* SCSI           hkey_local_machine\hardware\devicemap\scsi\
* MMC_SNAPIN1    HKEY_CLASSES_ROOT\CLSID\{177E78C8-647B-4F99-85FD-8EA5A718B98D}\
* MMC_SNAPIN2    HKEY_CLASSES_ROOT\CLSID\{2C7AE8AA-9C51-4dda-B86B-16AB104DA92F}\
* MMC_SNAPIN3    HKEY_CLASSES_ROOT\TypeLib\{A749E46A-1160-459F-A280-0DCE2D16EB52}\
* CLUSTER        HKEY_CLASSES_ROOT\CLSID\{2196CB43-6C73-11D3-B999-000629ABC3D6}\
* SERVERINSTALL  HKEY_CLASSES_ROOT\Installer\Features\3F81011085CD8164A9836394B1C6F7AD\
* CONSOLEINSTALL HKEY_CLASSES_ROOT\Installer\Products\828E257D790FC194C86A1726A4A46A21\
*
WINDOWS,REGISTRY,SYSTEM,TSM,system_registry.txt
WINDOWS,REGISTRY,SYSTEM,server1,system_registry.txt
WINDOWS,REGISTRY,SYSTEM,server2,system_registry.txt
WINDOWS,REGISTRY,SYSTEM,server3,system_registry.txt
WINDOWS,REGISTRY,SYSTEM,server4,system_registry.txt
WINDOWS,REGISTRY,SYSTEM,driver,driver_registry.txt
WINDOWS,REGISTRY,SYSTEM,scsi,driver_scsi_device_map.txt
WINDOWS,REGISTRY,SYSTEM,mmc_snapin1,registry_mmc_snapin1.txt
WINDOWS,REGISTRY,SYSTEM,mmc_snapin2,registry_mmcsnapin2.txt
WINDOWS,REGISTRY,SYSTEM,mmc_snapin3,registry_mmcsnapin2.txt
WINDOWS,REGISTRY,SYSTEM,cluster,registry_cluster_extension.txt
WINDOWS,REGISTRY,SYSTEM,serverInstall,server_msi_installer_registry.txt
WINDOWS,REGISTRY,SYSTEM,consoleInstall,tsmrept_msi_installer_registry.txt
*
* On Windows,the COPY action will attempt to collect the specified files
* from the path found in the registry for each component:
* HKEY_LOCAL_MACHINE\SOFTWARE\IBM\ADSM\CurrentVersion\<path>, where <path> can
* be SERVER, SERVER1, SERVER2, SERVER3, SERVER4, or 
* StorageAgent...
*
*
WINDOWS,COPY,SERVER,*.log,none
WINDOWS,COPY,SERVER,*.out,none
WINDOWS,COPY,SERVER,*.dmp,none
*
*  STORAGEAGENT
WINDOWS,COPY,STAGENT,dsmsta.opt,none
WINDOWS,COPY,STAGENT,*.err,none
WINDOWS,COPY,STAGENT,*.log,none
WINDOWS,COPY,STAGENT,*.out,none
WINDOWS,COPY,STAGENT,*.dmp,none
*
*  CONSOLE
WINDOWS,COPY,MGMTCONSOLE,*.err,none
WINDOWS,COPY,MGMTCONSOLE,*.log,none
WINDOWS,COPY,MGMTCONSOLE,*.in,none
WINDOWS,COPY,MGMTCONSOLE,*.out,none
WINDOWS,COPY,MGMTCONSOLE,*.rep,none
WINDOWS,COPY,MGMTCONSOLE,*.mon,none
WINDOWS,COPY,MGMTCONSOLE,*.xml,none
WINDOWS,COPY,MGMTCONSOLE,Log*.txt,none
WINDOWS,COPY,MGMTCONSOLE,trace*.txt,none
WINDOWS,COPY,MGMTCONSOLE,*.dmp,none

* On Windows,the COPYN action will attempt to collect the specified files
* from the path specified in the data field, and prepend with the name
* found in the store location field. It will go through all the subdirectories 
* Environment variables will be resolved
*  
* Example: WINDOWS,COPYN,SYSTEM,C:\myfile\*.opt,mine 
* will iterate through the myfile directory and all its subdirectories and copy
* any file matching *.opt (ex. colors.opt) into the results directory as 
* mine_*.opt  (ex. mine_colors.opt).
*

* End of WINDOWS section

* Begin LINUX section: gather the following data if tsmdiag is running on a Linux system

* get any core files found
LINUX,COPY,SERVER,*core*,copy_core_results.txt
* get lb.conf and mt.conf files from tsmscsi install dir
LINUX,COPY,DEVDRIVER,*conf*,copy_conf_results
* get version of tsmscsi dev driver
LINUX,SYSCOMMAND,DEVDRIVER,rpm -q TIVsm-tsmscsi,tsmscsi_version.txt
* get list of devices attached to the host (from /proc/scsi/scsi)
*LINUX,GETDEVICELIST,DEVDRIVER,cat /proc/scsi/scsi,scsideviceList.txt
* get network status
LINUX,SYSCOMMAND,SYSTEM,netstat -a,netstat.txt
* dev special filenames in use by tsmscsi
LINUX,SYSCOMMAND,DEVDRIVER,ls -l /dev/tsmscsi/*,tsmscsi_specialdevnames.txt
LINUX,SYSCOMMAND,SYSTEM,uname -a,os_level.txt
LINUX,SYSCOMMAND,SYSTEM,rpm -q glibc,clib_version.txt
* last 200 lines of var/log/messages
LINUX,SYSCOMMAND,SYSTEM,tail -200 /var/log/messages,system_messages.txt
LINUX,SYSCOMMAND,SYSTEM,set,env_vars.txt

* End Linux section

* Begin SUN section: gather the following data if tsmdiag is running on a SunOS system

* get any core files found
SUN,COPY,SERVER,*core*,copy_core_results.txt
* get lb.conf and mt.conf files from tsmscsi install dir
SUN,COPY,DEVDRIVER,*conf*,copy_conf_results.txt
* get version of tsmscsi dev driver
SUN,SYSCOMMAND,DEVDRIVER,pkginfo -l TIVsmSdev,tsmscsi_version.txt
* get list of devices attached to the host (from /proc/?)
SUN,SYSCOMMAND,DEVDRIVER,ls -l /dev/,scsideviceList.txt
* get network status
SUN,SYSCOMMAND,SYSTEM,netstat -a,netstat.txt
* dev special filenames in use by tsmscsi
SUN,SYSCOMMAND,DEVDRIVER,ls -l /devices/mt*,non-ibmTapeDrives.txt
SUN,SYSCOMMAND,DEVDRIVER,ls -l /devices/lb*,non-ibmTapeLibs.txt
*SUN,SYSCOMMAND,DEVDRIVER,tbd,IBMdev_specialdevnames.txt
SUN,SYSCOMMAND,SYSTEM,pkginfo -l SUNWlibC,clib_version.txt
SUN,SYSCOMMAND,SYSTEM,uname -a,os_level.txt
SUN,SYSCOMMAND,SYSTEM,pkginfo -l SUNWlibCx,cxlib_version.txt
SUN,SYSCOMMAND,SYSTEM,isainfo -kv,kernel_level.txt
* which Tivoli products are installed
SUN,SYSCOMMAND,SYSTEM,for NAME in `pkginfo | grep TIV | cut -f2 -d' '`; do pkginfo -l $NAME; done,tivoli_products.txt
* last 200 lines of syslog file
SUN,SYSCOMMAND,SYSTEM,tail -200 syslog,syslog.txt
SUN,SYSCOMMAND,SYSTEM,set,env_vars.txt

* end SUN section

* Begin AIX section: gather the following data if tsmdiag is running on a SunOS system

* get any core files found
AIX,COPY,SERVER,*core*,copy_core_results.txt
* get lb.conf and mt.conf files from tsmscsi install dir
AIX,COPY,DEVDRIVER,*conf*,copy_conf_results.txt
* get version of tsmscsi dev driver
AIX,SYSCOMMAND,DEVDRIVER,lslpp -L tbd,tsmscsi_version.txt
* get list of devices attached to the host (from /proc/?)
* AIX,SYSCOMMAND,DEVDRIVER,ls -l /dev/,scsideviceList.txt
* get network status
AIX,SYSCOMMAND,SYSTEM,netstat -a,netstat.txt
* Display tape devices in the system
AIX,SYSCOMMAND,DEVDRIVER,lsdev -Cctape,tapedevices.txt
* Display disk devices in the system
AIX,SYSCOMMAND,SYSTEM,lsdev -Ccdisk,diskdevices.txt
* get system info - i.e. cpu type, machine name, devices attached, etc
AIX,SYSCOMMAND,SYSTEM,prtconf,system_summary.txt
* get network attributes
AIX,SYSCOMMAND,SYSTEM,no -a,network_attributes.txt
* C lib version
AIX,SYSCOMMAND,SYSTEM,,clib_version.txt
* os level
AIX,SYSCOMMAND,SYSTEM,oslevel -q,os_level.txt
* Display attribute characteristics and possible values of attributes for devices in the system.
AIX,SYSCOMMAND,SYSTEM,lsattr -l aio0 -E,lsattr.txt
* get boot info
AIX,SYSCOMMAND,SYSTEM,bootinfo -K,bootinfo.txt
* AIX,SYSCOMMAND,SYSTEM,,kernel_level.txt
* which Tivoli products are installed on the system
AIX,SYSCOMMAND,SYSTEM,lslpp -L | grep Tivoli,tivoli_products.txt
* get report of logged errors 
AIX,SYSCOMMAND,SYSTEM,errpt -a,syslog.txt
AIX,SYSCOMMAND,SYSTEM,set,env_vars.txt

* Begin AIX section: gather the following data if tsmdiag is running on a SunOS system

* get any core files found
AIX,COPY,SERVER,*core*,copy_core_results.txt
* get lb.conf and mt.conf files from tsmscsi install dir
AIX,COPY,DEVDRIVER,*conf*,copy_conf_results.txt
* get version of tsmscsi dev driver
AIX,SYSCOMMAND,DEVDRIVER,lslpp -L tbd,tsmscsi_version.txt
* get list of devices attached to the host (from /proc/?)
* AIX,SYSCOMMAND,DEVDRIVER,ls -l /dev/,scsideviceList.txt
* get network status
AIX,SYSCOMMAND,SYSTEM,netstat -a,netstat.txt
* Display tape devices in the system
AIX,SYSCOMMAND,DEVDRIVER,lsdev -Cctape,tapedevices.txt
* Display disk devices in the system
AIX,SYSCOMMAND,SYSTEM,lsdev -Ccdisk,diskdevices.txt
* get system info - i.e. cpu type, machine name, devices attached, etc
AIX,SYSCOMMAND,SYSTEM,prtconf,system_summary.txt
* get network attributes
AIX,SYSCOMMAND,SYSTEM,no -a,network_attributes.txt
* C lib version
AIX,SYSCOMMAND,SYSTEM,,clib_version.txt
* os level
AIX,SYSCOMMAND,SYSTEM,oslevel -q,os_level.txt
* Display attribute characteristics and possible values of attributes for devices in the system.
AIX,SYSCOMMAND,SYSTEM,lsattr -l aio0 -E,lsattr.txt
AIX* get boot info
AIX,SYSCOMMAND,SYSTEM,bootinfo -K,bootinfo.txt
* AIX,SYSCOMMAND,SYSTEM,,kernel_level.txt
* which Tivoli products are installed on the system
AIX,SYSCOMMAND,SYSTEM,lslpp -L | grep Tivoli,tivoli_products.txt
* get report of logged errors
AIX,SYSCOMMAND,SYSTEM,errpt -a,syslog.txt
AIX,SYSCOMMAND,SYSTEM,set,env_vars.txt

* Begin HP section: gather the following data if tsmdiag is running on a SunOS system

* get any core files found
HP,COPY,SERVER,*core*,copy_core_results.txt
* get lb.conf and mt.conf files from tsmscsi install dir
HP,COPY,DEVDRIVER,*conf*,copy_conf_results.txt
* get version of tsmscsi dev driver
HP,SYSCOMMAND,DEVDRIVER,swlist | grep TIVsmDD,tsmscsi_version.txt
* get list of devices attached to the host (from /proc/?)
* HP,SYSCOMMAND,DEVDRIVER,tbd,scsideviceList.txt
* get network status
HP,SYSCOMMAND,SYSTEM,netstat -a,netstat.txt
* Display tape devices in the system
HP,SYSCOMMAND,DEVDRIVER,tbd,tapedevices.txt
* get system info - i.e. cpu type, machine name, devices attached, etc
HP,SYSCOMMAND,SYSTEM,tbd,system_summary.txt
* C lib version
HP,SYSCOMMAND,SYSTEM,tbd,clib_version.txt
* get kernel mode 
HP,SYSCOMMAND,SYSTEM,getconf KERNEL_BITS,kernel_mode.txt
* get cpu info 
HP,SYSCOMMAND,SYSTEM,getconf CPU_CHIP_TYPE,cpu_info.txt
HP,SYSCOMMAND,SYSTEM,uname -a,os_level.txt
* which Tivoli products are installed on the system
HP,SYSCOMMAND,SYSTEM,swlist | grep TIVsm,tivoli_products.txt
* get report of logged errors
HP,SYSCOMMAND,SYSTEM,tbd,syslog.txt
HP,SYSCOMMAND,SYSTEM,set,env_vars.txt

* End HP section
