McDATA® 4Gb SAN Switch for HP p-Class BladeSystem Command Line Interface Guide (AA-RWEJA-TE, November 2006)
McDATA® 4Gb SAN Switch for HP p-Class BladeSystem command line interface guide 91
Clearing the event log
Enter the Set Log Clear command to delete all entries in the event log as shown in the following
example:
McDATA4GbSAN (admin) #> set log clear
See the ”Set Log command” on page 158.
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.
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) from the 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.
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:
McDATA4GbSAN (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.
Eth0NetworkDiscovery (1=Static, 2=Bootp, 3=Dhcp, 4=Rarp) [Static ]
Eth0NetworkAddress (dot-notated IP Address) [10.0.0.1 ]
Eth0NetworkMask (dot-notated IP Address) [255.255.255.0]
Eth0GatewayAddress (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 ]
See the ”Set Setup System command” on page 169.