Q-Logic 5802V Manuale Utente

Pagina di 412
11 – Event Log Configuration
Logging to a Remote Host
11-6
59263-01  A
S
Logging to a Remote Host
The switch comes from the factory with local logging enabled, which instructs the 
switch firmware to maintain an event log in switch memory. The switch can also be 
configured to log events to a remote host that supports the syslog protocol. This 
requires that you enable remote logging on the switch and specify an IP address 
for the remote host.
Enter the 
 Logging command to control local logging through 
the LocalLogEnabled parameter, and remote logging through the 
RemoteLogEnabled and RemoteLogHostAddress parameters as shown in the 
following example:
SANbox (admin) #> set setup system logging
  A list of attributes with formatting and current values will follow.
  Enter a new value or simply press the ENTER key to accept the current value.
  If you wish to terminate this process before reaching the end of the list
  press 'q' or 'Q' and the ENTER key to do so.
  Current Values:
    LocalLogEnabled         True
    RemoteLogEnabled        False
    RemoteLogHostAddress    10.0.0.254
  New Value (press ENTER to accept current value, 'q' to quit, 'n' for none):
    LocalLogEnabled         (True / False)                    :
    RemoteLogEnabled        (True / False)                    :
    RemoteLogHostAddress    (hostname, IPv4, or IPv6 Address) :
  Do you want to save and activate this system setup? (y/n): [n]
                                                                                           
NOTE:
To log event messages on a remote host, you must edit the syslog.conf file 
on the remote host and then restart the syslog daemon. The syslog.conf file 
must contain an entry that specifies the name of the log file. Add the 
following line to the syslog.conf file. A <tab> separates the selector field 
(local0.info) and action field which contains the log file path name 
(/var/adm/messages/messages.name).
local0.info <tab> /var/adm/messages/messages.name
Consult your host operating system documentation for information on how to 
configure remote logging.