Sun Java System Messaging Server 6.3 Administration Reference

imsimta find

The imsimta find utility locates the precise filename of the specified version of an MTA log file. MTA log files have a -uniqueid appended to the filename to allow for the creation of multiple versions of the log file. On UNIX, the -uniqueid is appended to the very end of the filename (the end of the file extension), while on Windows NT, the -uniqueid is appended to the end of the name part of the filename, before the file extension. The imsimta find utility understands these unique ids and can find the particular filename corresponding to the requested version of the file.

Syntax


imsimta find file-pattern [-f=offset-from-first] [-l=offset-from-last]

Options

The options for this command are:

Option  

Description  

-f=offset-from-first

Finds the specified version of the file (starting from 0). For example, to find the earliest (oldest) version of the file, specify -f=0. By default, imsimta find finds the most recent version of the file.

-l=offset-from-last

Finds the last version of the specified file. For example, to find the most recent (newest) version of the file, specify -l=0. By default, imsimta find finds the most recent version of the file.

file-pattern

Specifies a filename pattern for which the log file to find. 

Examples

The following command prints out the filename of the tcp_local_slave.log-uniqueid file most recently created:


imsimta find msg-svr-base/data/log/tcp_local_slave.log

The following command displays the filename of the oldest tcp_bitnet_master.log-uniqueid file:


imsimta find \
msg-svr-base/data/log/tcp_bitnet_master.log -f=0