
25-16
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide using ASDM
OL-20748-01
Chapter 25 Monitoring the Firewall Services Module
Configuring and Managing Syslog Messages
Including the Device ID in Syslog Messages
To configure the FWSM to include a device ID in non-EMBLEM-format syslog messages, enter the
following command:
hostname(config)#
logging device-id
{
context-name
|
hostname
|
ipaddress
interface_name
|
string
text
}
You can specify only one type of device ID for the syslog messages.
The
context-name
keyword indicates that the name of the current context should be used as the device
ID (applies to multiple context mode only). If you enable the logging device ID for the admin context in
multiple context mode, messages that originate in the system execution space use a device ID of
system
,
and messages that originate in the admin context use the name of the admin context as the device ID.
The
hostname
keyword specifies that the hostname of the FWSM should be used as the device ID.
The
ipaddress
interface_name
argument specifies that the IP address of the interface specified as
interface_name
should be used as the device ID. If you use the
ipaddress
keyword, the device ID
becomes the specified FWSM interface IP address, regardless of the interface from which the syslog
message is sent. This keyword provides a single, consistent device ID for all syslog messages that are
sent from the device.
The
string
text
argument specifies that the text string should be used as the device ID. The string can
contain up to16 characters. You cannot use blank spaces or any of the following characters:
•
& (ampersand)
•
' (single quote)
•
" (double quote)
•
< (less than)
•
> (greater than)
•
? (question mark)
Note
If enabled, the device ID does not appear in EMBLEM-formatted syslog messages or SNMP traps.
The following example enables the logging device ID for the security appliance:
hostname(config)#
logging device-id hostname
The following example enables the logging device ID for a security context on the security appliance:
hostname(config)#
logging device-id context-name
Generating Syslog Messages in EMBLEM Format
To use the EMBLEM format for syslog messages sent to a syslog server over UDP, specify the
format
emblem
option when you configure the syslog server as an output destination by entering the following
command:
hostname(config)#
logging host
interface_name ip_address
{
tcp
[/
port
] |
udp
[/
port
]]
[format emblem]
Where the
interface_name
and
IP_address
specify the syslog server to receive the syslog messages,
tcp
[/
port
] and
udp
[/
port
] indicate the protocol and port that should be used, and
format emblem
enables EMBLEM formatting for messages sent to the syslog server.
Содержание 6500 - Catalyst Series 10 Gigabit EN Interface Module Expansion
Страница 35: ...P A R T 1 Getting Started and General Information ...
Страница 36: ......
Страница 297: ...P A R T 2 Configuring the Security Policy ...
Страница 298: ......
Страница 521: ...P A R T 3 System Administration ...
Страница 522: ......
Страница 613: ...P A R T 4 Reference ...
Страница 614: ......