11 – Event Log Configuration
Logging to a Remote Host
11-6 59183-01 A
S
11.5
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.
The Set Setup System command controls 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
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.
EthNetworkDiscovery (1=Static, 2=Bootp, 3=Dhcp, 4=Rarp) [Static ]
EthNetworkAddress (dot-notated IP Address) [10.0.0.1 ]
EthNetworkMask (dot-notated IP Address) [255.255.255.0]
EthGatewayAddress (dot-notated IP Address) [10.0.0.254 ]
AdminTimeout (dec value 0-1440 minutes, 0=never) [30 ]
InactivityTimeout (dec value 0-1440 minutes, 0=never) [0 ]
LocalLogEnabled (True / False) [True ]
RemoteLogEnabled (True / False) [False ]
RemoteLogHostAddress (dot-notated IP Address) [10.0.0.254 ]
NTPClientEnabled (True / False) [False ]
NTPServerAddress (dot-notated IP Address) [10.0.0.254 ]
EmbeddedGUIEnabled (True / False) [True ]
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.