CLI Reference Guide-R04

Table Of Contents
Chapter 4
| System Management Commands
Event Logging
– 153 –
logging host This command adds a syslog server host IP address that will receive logging
messages. Use the no form to remove a syslog server host.
Syntax
logging host host-ip-address [port udp-port]
no logging host host-ip-address
host-ip-address - The IPv4 or IPv6 address of a syslog server.
udp-port - UDP port number used by the remote server. (Range: 1-65535)
Default Setting
UPD Port: 514
Command Mode
Global Configuration
Command Usage
Use this command more than once to build up a list of host IP addresses.
The maximum number of host IP addresses allowed is five.
Example
Console(config)#logging host 10.1.0.3
Console(config)#
logging level This command sets the syslog logging severity level to capture . Use the no form to
set the logging level to the default value.
Syntax
logging level {user-login level | user-logout level}
no logging level {user-login | user-logout}
user-login - specifies the level to log when a user is logged in.
user-logout - specifies the level to log when there are no users logged in.
level- The syslog severity level to log (Range:1-7)
Default Setting
6
Command Mode
Global Configuration