CiscoPrimeCableProvisioning-6 0 1-UserGuide Chapter 01010
CiscoPrimeCableProvisioning-6 0 1-UserGuide Chapter 01010
This chapter explains how to configure the syslog daemon. In case of a local data server, you can configure
the syslog utility on any Prime Cable Provisioning component server to receive alerts from the system. For
receiving the syslogs in a centralized server from all the Prime Cable Provisioning components, you can
configure the syslog daemon either on any Prime Cable Provisioning component such as RDU, PWS, DPE,
CPNR and KDC or on a separate server. These component servers are referred to as Prime Cable Provisioning
server in this chapter.
Syslog is a client-server protocol that manages the logging of information on UNIX. Prime Cable Provisioning
generates alerts through the syslog service. Prime Cable Provisioning syslog alerts are not a logging service;
they notify that a problem exists, but do not necessarily define the specific cause of the problem.
The information related to the problem resides in the appropriate Prime Cable Provisioning log files, rdu.log
and dpe.log. If you choose to configure the syslog file, syslog alerts are directed to a separate log file.
On hosts that are BAC API clients, to send messages to the SysLog, the java client library utilizes a non-java
native library called libnative.so. If this native library is absent, this may result in the client library throwing
a ThreadDeath Error, forcing the client application to restart. Therefore, ensure to copy the libnative.so file
located in the RDU installation (at $BPR_HOME/lib directory) to a directory in the application's class path
in the API client.
• Configuring Syslogs on a Local Server, on page 1
# touch /var/log/bac.log
Step 3 Open the /etc/rsyslog.conf file with a text editor, such as vi.
Step 4 Add the following lines to the /etc/rsyslog.conf file:
local6.alert /var/log/bac.log
local6.info /var/log/bac.log
Note You must insert one or more tabs between the local6:info and /var/log/bac.log information.
# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from RDU/DPE server machines
# -x disables DNS lookups on messages received with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-m 0 -r"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-2"
You must restart the syslog daemon for the changes to take effect. The server listens on UDP port 514, which
you can verify using one of the following netstat command variations:
• # netstat -a | grep syslog
udp 0 0 *:syslog *:*
• # netstat -an | grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*
Step 1 Determine the IP address and fully qualified hostname of the server logging host.
In the example, the /etc/hosts file has a nickname loghost, for the server.
Step 4 Edit the /etc/syslog.conf file to send the syslog messages to the server.
For example:
local6.info @loghost
local6.info /var/log/messages
Step 5 Restart the syslog daemon to start Prime Cable Provisioning server logging.
To test whether the syslog server is receiving the messages, stop the RDU server. The DPE and CPNR servers will send
a message indicating the connection failure.