
5-6 Creating Service Profiles
LX Series Configuration Guide
X To configure a LOCALSYSLOG service profile
1. Execute the
profile service
command. The CLI enters the
Service Profile command mode.
2. Then execute the following command in Service Profile
command mode to configure a Service Profile as
LOCALSYSLOG:
Example Noti_Serv_Protocol:0 >>
localsyslog
3. The CLI enters the LOCALSYSLOG Protocol command
mode. Execute the
file
command in LOCALSYSLOG
Protocol command mode to specify the local file to send
event messages to:
Example Noti_Serv_LSyslog:0 >>
file ricklog
4. The local syslog writes event messages to the default
directory
/var/log
.
X To read the contents of the syslog file
Look in the
/var/log
<filename> directory in the shell. For
example, see
/var/log/ricklog
to read the contents of the
local file specified in the preceding service profile
file
command.
You can create User Profiles to filter, by facility and priority, the
event messages that will be sent to the local file. For more
information, see “To create a user profile” on page 5-14.
X To configure an SNPP service profile
1. Execute the
profile service
command to enter Service
Profile command mode.
2. In Service Profile command mode, execute the following
command to configure a Service Profile as SNPP:
Example Noti_Serv_Protocol:0 >>snpp
When you execute the
snpp
command, the CLI goes into
the SNPP Protocol command mode.
Kommentare zu diesen Handbüchern