characters.
TABLE 20.4 Magic Cookies for the ftpshut
Command
Cookie | Description |
---|---|
%s | Time the system will be shut down |
%r | Time new connections will be denied |
%d | Time current connections will be dropped |
%C | Current working directory |
%E | Server administrator's email address as specified in the ftpaccess file |
%F | Available free space in the current working directories partition, in kilobytes |
%L | Local host time |
%M | Maximum number of allowed connections in this user class |
%N | Current number of connections for this user class |
%R | Remote hostname |
%T | Local time, in the form of Fri Aug 31 21:04:00 2001 |
%U | Username given at login |
When ftpshut
is issued to the system, it creates a file that stores the necessary information. The ftprestart
command removes this file for all servers, either canceling the impending shutdown or removing the shutdown file and restarting the FTP server. The ftprestart
has only one optional argument, -V
, to show version information.
Use /var/log/xferlog
to View a Log of Server Transactions
The xferlog
file gives a log of what transactions have occurred with the FTP server. Depending on the settings in the /etc/ftpaccess
file, the contents of this file can contain the files sent or received, by whom, with a date stamp. Table 20.5 lists the fields of this file. The same information can also be found in the corresponding man page included in the wu-ftp
RPM.
TABLE 20.5 /var/log/xferlog
Fields
Field | Description |
---|---|
current-time | Current local time in the form of , where is the day of the week, is the month, is the day of the month, is the hour, mm is the minutes, is the seconds, and is the year. |
transfer-time | Total time in seconds for the transfer. |
remote-host | Remote hostname. |
file-size | Size of the transferred file in bytes. |