Raritan Computer SX48 用户手册

下载
页码 172
C
HAPTER 
8:
 
L
OGGING 
 
79  
 
Chapter 8: Logging 
NFS Per Port Logging  Configuration Usage 
Name 
 
nfsportlog <enable/disable/status> [<PREFIX> <SIZE> <IP1> <DIR>  
  [<IP2> 
<DIR2>] 
 
 
Description 
Set the configuration parameters for logging all Port Activity to a NFS shared directory. All user activity 
and user port login/logouts are logged. 
 
nfsportlog status will show the current configuration parameters. 
 
nfsportlog enable will enable nfs per-port logging. 
nfsportlog disable will disable nfs per-port logging. 
 
[<PREFIX> <SIZE> <IP1> <DIR> [<IP2> <DIR2>]] are parameters that should be set once to ensure 
operation of the per-port logging. 
 
 
 
<PREFIX> - the filename prefix prepended to each of the port log files. 
 
<SIZE> - the maximum size for a log file, before a new file is created. 
 
<IP1> - the IP address of the NFS shared directory 
 
<DIR1> - the directory on the NFS server to write to. 
 
 
<IP2> - Optional secondary NFS server to write to 
 
<DIR2> - Optional secondary NFS server’s directory to write to. 
 
 
The Per-port log filename follows the following pattern: 
<PREFIX>-<PortName>-<Timestamp>.  
 
When the log file reaches <SIZE> it will create a new file with a new timestamp and start writing the port 
data into that file. 
 
Example: 
 
nfsportlog status  
  -display 
NFS 
port 
logging configuration parameters 
 
nfsportlog enable DomSX1 1000000 192.168.111.11 /nfs/domlogging/ 
-enable port logging into at the NFS server 192.168.111.11:/nfs/domlogging, with the 
filename starting with DomSX1. 
 
nfsportlog disable  
 
 
-disable the port logging facility