112
CHAPTER 3
CLI CONFIGURATION
Negation:
(config)# no logging on
Show:
# show logging
Clear: # clear logging [ info ] [ warning ] [ error ] [ switch <switch_list> ]
3.9.24.2 (config)# logging host
Syntax:
(config)# logging host { <v_ipv4_ucast> | <v_word45> }
Parameters:
{ <hostname> | <ipv4_ucast> }: Specify one of the options. The hostname is the domain name of the log server;
while the latter is IPv4 address of the log server.
Explanation:
Configure log server address.
Example:
Use IPv4 address to configure log server.
Example:
Set the holdtime to 5.
Negation:
(config)# no logging host
Show:
# show logging
# show logging <logging_id: 1-4294967295>
# show logging [info] [warning] [error]
3.9.24.3 (config)# logging level
Syntax:
(config)# logging level { info | warning | error }
Explanation:
Configure what kind of messages will send to syslog server.
Parameters:
{ info | warning | error }: Specify one of the log message options.
Info:
Send information, warnings and errors.
Warning:
Send warnings and errors.
Error:
Send errors only.
Example:
Send error messages to log server.
# config t
(config)# logging host 192.168.1.253
# config t
(config)# logging on
Содержание IFS-1604GSM Series
Страница 385: ......