Configuring Syslogs on a Local Server
To configure the syslog utility on a local Prime Cable Provisioning server (Linux):
Procedure
Step 1 |
Log in as root on the server. |
||
Step 2 |
At the command line, create the log file. For example:
|
||
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:
|
||
Step 5 |
Save and close the /etc/rsyslog.conf file. |
||
Step 6 |
To restart the process, use service rsyslog restart. |
Configuring a Centralized Linux Server to Receive Syslogs
By default, syslog daemon on a centralized server does not expect to receive messages from the Prime Cable Provisioning servers. You must configure the centralized server for the syslog daemon to start listening to these messages.
The syslog daemon checks the /etc/syslog.conf file to determine the expected names and locations of the log files it should create. It also checks the /etc/sysconfig/syslog file to determine the various modes in which it should operate. The syslog daemon will not receive server messages unless the SYSLOGD_OPTIONS variable in this file has a -r included in it as shown below:
# 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:*
Configuring a Server to Send Syslog to Centralized Server on Linux
After you configure syslog daemon on the centralized server, you must configure the Prime Cable Provisioning server to send messages to it. To do this, edit the /etc/hosts file on the server.
Procedure
Step 1 |
Determine the IP address and fully qualified hostname of the server logging host. |
Step 2 |
Log in as root on the server |
Step 3 |
To enable the server logging hostname, add the following entry in the /etc/hosts file: For example:
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:
|
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. |