The Debug/System logging (Syslog) for IPv6 feature provides logging functions similar to those of the IPv4 version, allowing you to record IPv4 and IPv6 Event Log and debug messages on a remote device to troubleshoot switch or network operation. For example, you can send messages about routing mis-configurations and other network protocol details to an external device, and later use them to debug network-level problems.
|
|
NOTE: This section describes the commands for Debug/Syslog configuration in an IPv6 environment. For information on using the Debug/Syslog feature in an IPv4 environment, see “Debug/Syslog Operation” in the Troubleshooting appendix in the current Management and Configuration Guide for your switch. |
|
|
Syntax
Configures the types of IPv6 messages that are sent to Syslog servers or other configured debug destinations, where debug-type is any of the following event types:
The
no debug ipv6...
form of the command stops the sending of debug messages of the specified type.
An IPv6-based debug/syslog destination device can be a Syslog server (up to six maximum) and/or a console session:
-
Use the
debug destination [ logging | session | buffer ]
command to enable (and disable) Syslog messaging on a Syslog server or to a CLI session for the debug message types configured with thedebug
andlogging
commands (see Configuring debug and event log messaging). -
Use the
logging [ syslog-ipv6-addr ]
command to configure the Syslog server at the specified IPv6 destination address.
Syslog for IPv6 is a client-server logging tool that allows a client switch to send event notification messages to n IPv6 networked device operating with Syslog server software. Messages sent to a Syslog server can be stored to a file for later debugging analysis.
To use the Syslog for IPv6 feature, you must install and configure a Syslog server application on an IPv6 networked host accessible to the switch. See the documentation for the Syslog server application for instructions.
To configure an IPv6 Syslog server, use the logging [ syslog-ipv6-addr ]
command as described below.
When you configure a Syslog server, Event Log messages are automatically enabled to be sent to the server. To reconfigure this setting, use the following commands:
-
Use the
debug
command to specify additional debug message types. -
Use the
logging
command to configure the system module or severity level used to filter the Event Log messages sent to configured Syslog servers. For more information, see Configuring debug and event log messaging.
Syntax
Enables or disables Syslog messaging to the specified IPv4 address. You can configure up to six addresses. If you configure an address when none are already configured, this command enables destination logging (Syslog) and the Event debug type. Therefore, at a minimum, the switch begins sending Event Log messages to configured Syslog servers. If other debug message types are configured, they are also sent to the Syslog server.
Removes all currently configured Syslog logging destinations from the running configuration.
Removes only the specified Syslog logging destination from the running configuration.
Use the show debug
command to display the currently configured settings for:
Syslog Configuration to Receive Event Log Messages at Specified System Module and Severity Levels on an IPv6 Syslog Server
Examples of show debug
command output that displays a configured IPv6 Syslog server.
HP Switch(config)# show debug Debug Logging Destination: None Enabled debug types: None are enabledDisplays the default debug configuration when no Syslog server IP addresses or debug types are configured.
HP Switch(config)# logging fe80:215:60ff:fe7a:adc0 HP Switch(config)# write memory HP Switch(config)# show debug Debug Logging Destination: Logging -- fe80:215:60ff:fe7a:adc0 Facility=user Severity=debug System module=all-pass Enabled debug types: eventWhen you configure a Syslog IPv6 address with the logging command, by default, the switch enables debug messaging to the Syslog address and the user facility on the Syslog server, and sends Event Log messages of all severity levels from all system modules.