SAM keeps a record of all of its actions in a log file (SAMLOG). You can find the commands that SAM executed perform an operation in the /var/sam/log/samlog file. It contains entries as in the following.
Executing the following command:\C/usr/sbin/swlist -l fileset -a state AdvJou @!@4@940265683@0 Command completed with exit status 0. @!@8@940265683@0 Exiting Task Manager with task com_execute_swlist_command. @!@8@940265683@0 Exiting Task Manager with task COM_IS_FILESET_LOADED. @!@8@940265683@0 Entering Task Manager with task KC_GET_DRIVERS. @!@4@940265683@0 Getting the kernel drivers/modules @!@4@940265683@0 Getting the state of one or more kernel device driver/ pseudo drivers that mat ch "vxadv". @!@4@940265683@0 Succeeded in getting the state of driver "vxadv". @!@8@940265683@0 Exiting Task Manager with task KC_GET_DRIVERS. @!@8@940265684@0 Entering Task Manager with task NNC_GET_INSTALL_STATUS. @!@8@940265684@0 Exiting Task Manager with task NNC_GET_INSTALL_STATUS. @!@8@940265684@0 Entering Task Manager with task nfs_check_remote_mounts. @!@2@940265684@0 Performing task "Checks if any remote file systems are mounted.". @!@2@940265684@0 Executing the following command:\C/usr/sbin/mount/usr/bin/ sed -n 's,^[^ ]* o n \([^ :]*\):\([^ ]*\).*, ,p'\C @!@2@940265684@0 Command completed with exit status 0. @!@2@940265684@0
The raw data from SAMLOG is very difficult to read. More commonly, one would go into SAM and click Options , and then click View SAM Log to see a nicely formatted, easy-to-read SAMLOG. Figure 12-10 shows a typical window when the log file is viewed in this way. For a selective view, you can specify a time range or user name in this window.
The log file grows as you continue using SAM. After a certain limit, SAM copies it to the samlog.old file and creates a new samlog file.
SAM comes with a utility, /usr/sam/bin/samlog_viewer , which can be used to view the log file in an efficient way. You can apply filters to data displayed by this utility. You can also specify a range of dates and times for displaying activity during that period. It is also possible to view the log of SAM usage by a particular user. For more information, consult the manual pages of samlog_viewer .
Top |