|
Table Of Contents
Troubleshooting Broadband Access Center
Troubleshooting Broadband Access Center
This chapter provides details on how to troubleshoot with Broadband Access Center (BAC). This chapter describes:
• Logging
– RDU Logs.
– DPE Logs.
Troubleshooting Checklist
While troubleshooting with BAC, use the checklist described in Table 19-1.
Logging
Logging of events is performed at both the DPE and RDU, and in some unique situations, DPE events are logged at the RDU to give them higher visibility. Log files are located in their own log directories and can be examined using any text file viewer. The files can be compressed to allow them to be easily e-mailed to the TAC or system integrators for troubleshooting and fault resolution.
This section describes:
• RDU Logs
• DPE Logs
Log Levels and Structures
The log file structure is described here, and illustrated in Example 19-1, and includes:
•Domain Name—This is the name of the computer generating the log files.
•Date and Time—This is the date on which a message is logged. This information also identifies the applicable time zone.
•Facility—This identifies the system which, in this case is the BAC.
•Sub-facility—This identifies the BAC subsystem or component.
•Security Level—The logging system defines seven levels of severity (log levels as described in Table 19-2) that are used to identify the urgency with which you might want to address log issues. The process of configuring log levels is described in Configuring Log Levels:
•Msg ID—This is a unique identifier for the message text.
•Message—This is the actual log message
Example 19-1 Sample Log File
Configuring Log Levels
You can configure logging levels for both the RDU and the DPE to suit your specific requirements. For example, the logging level for the RDU could be set to Warning, and the level for the DPE could be set to Alert.
Log messages are written based on certain events taking place. Whenever an event takes place, the appropriate log message and level are assigned and, if that level is less than or equal to the configured level the message is written to the log. The message is not written to the log if the level is higher than the configured value.
For example, assume that the log level is set to 4-Warning. All events generating messages with a log level of 4 or less are written into the log file. If the log level is set to 6-Information, the log file will receive all messages. Consequently, configuring a higher log level results in a larger log file size.
To configure the log level on the DPE, using the log level command from the DPE command line. See the Cisco Broadband Access Center DPE CLI Reference, Release 3.0, for detailed information.
To configure the log level on the RDU, see The RDU Log Level Tool.
Rotating Log Files
All log files, except perfstat.log, are numbered and rolled over based on a configured maximum file size. The default maximum file size is 10 MB. (To configure the maximum file size from the API, use the
ServerDefaultsKeys.SERVER_LOG_MAXSIZE
property.) Once a log file touches the configured limit, the data is rolled over to another file. This file is renamed in the XXX.N.log format, where:•XXX—Specifies the name of the log file.
•N—Specifies any value between 1 and 29.
For example, once rdu.log reaches the 10 MB limit, it is renamed as rdu.1.log. With every 10-MB increase in file size, the latest file is renamed as rdu.2.log, rdu.3.log, and so on. So, the rdu.7.log file will contain data more recent than rdu.4.log. However, the latest log information is always stored in rdu.log.
In the case of the perfstat.log file, the file is renamed everyday. The file is rolled over in the perfstat.N.log format, where N is any value between 1 and 29. For example, perfstat.29.log will be the oldest log while perfstat.1.log will be the most recent renamed perfstat.log file.
BAC stores up to 10 log files at a given time. For a list of log files in the RDU and DPE servers, see RDU Logs, and DPE Logs, respectively.
RDU Logs
The RDU has two logs that it maintains in the BPR_DATA/rdu/logs directory:
•rdu.log—Records all RDU events according to the configured logging severity level. (See Setting the RDU Log Level, for instructions on setting the default log levels.) To view rdu.log, see Viewing the rdu.log File.
•audit.log—Records all high-level changes to the BAC configuration or functionality including the user who made the change. To view audit.log, see Viewing the audit.log File.
•troubleshooting.log—Records detailed device information for troubleshooting a specific device, or a group of devices without turning logging on, and without searching through log files for device- or group-specific information. To view troubleshooting.log from the administrator user interface, see Viewing Device Troubleshooting Log.
•perfstats.log—Records device performance statistics to help troubleshoot issues related to system performance. For more information, see Monitoring Broadband Access Center, page 11-1.
Viewing the rdu.log File
You can use any text processor to view the rdu.log file. In addition, you can view the log file from the administrator user interface. To do this:
Step 1 Choose the RDU tab under Servers.
Step 2 The View Regional Distribution Unit Details page appears. Click the View Details icon () corresponding to RDU Log File.
The View Log File Contents page appears, displaying data from rdu.log.
Viewing the audit.log File
You can use any text processor to view the audit.log file. In addition, you can view the log file from the administrator user interface. To do this:
Step 1 Choose the RDU tab under Servers.
Step 2 The View Regional Distribution Unit Details page appears. Click the View Details icon corresponding to Audit Log File.
The View Log File Contents page appears, displaying data from audit.log.
The RDU Log Level Tool
Use the RDU log level tool to change the current log level of the RDU from the command line, using the setLogLevel.sh command. This tool is located in the BPR_HOME/rdu/bin directory. Table 19-2 identifies the available log levels and the types of message written to the log file when enabled.
Cisco recommends that you keep the RDU logging level at the Warning level to help maintain a steady operations state. The Information level is recommended to be used with caution if you need to maintain steady state performance during debug operations. You should exercise caution when running with the Information level set because this creates a great number of log entries, which in itself can adversely impact performance.
Note The RDU process has to be up to execute the log level tool. Also, you must be a privileged user to run this tool by using the setLogLevel.sh command.
Using the RDU Log Level Tool
All examples assume that the user name for the RDU is admin, the password for the RDU is changeme, and the RDU server is up.
Enter this command to run the RDU log level tool:
setLogLevel.sh [0..6] [-help] [-show] [-default] [-debug]
where:
•-[0..6]—Identifies the logging level to be used. For a list of available levels, see Table 19-2.
•-help—Displays help for the tool.
•-show—Displays the current log level set for the RDU server.
•-default—Sets the RDU to the installation default level 5 (notification).
•-debug— Sets an interactive mode to enable or disable tracing categories for RDU server.
Note You should only enable the debug settings that the Cisco support staff recommends.
You can also use this tool to perform these functions:
• Viewing the RDU's Current Log Level
Setting the RDU Log Level
You can use this tool to change the logging level from one value to any other value.
The following example illustrates how to set the RDU logging level to the warning level, as indicated by the number 4 in the setLogLevel.sh command. The actual log level set is not important for the procedure, it can be interchanged as required.
To set the RDU logging level:
Step 1 Change directory to BPR_HOME/rdu/bin.
Step 2 Run the RDU log level tool using this command:
setLogLevel.sh 4
This prompt appears:
Please type RDU username:
Step 3 Enter the RDU username at the prompt. In this example, the default username (admin) is used.
Please type RDU username: admin
This prompt appears:
Please type RDU password:
Step 4 Enter the RDU password for the RDU at the prompt. In this example, the default password (changeme) is used.
Please type RDU password: changeme
This message appears to notify you that the log level has been changed. In this example, the level was 5, for notification, and is now 4, for warning.
RDU Log level was changed from 5 (notification) to 4 (warning).
Viewing the RDU's Current Log Level
You can use this tool to view the RDU log and determine which logging level is configured before attempting to change the value.
To view the RDU's current logging level:
Step 1 Change directory to BPR_HOME/rdu/bin.
Step 2 Run this command:
setLogLevel.sh -show
This prompt appears:
Please type RDU username:
Step 3 Enter the RDU username (admin) and press Enter.
Please type RDU username: admin
This prompt appears:
Please type RDU password:
Step 4 Enter the RDU password (changeme) and press Enter.
Please type RDU password: changeme
This message appears:
The logging is currently set at level: 4 (warning)
All tracing is currently disabled.
DPE Logs
The DPE maintains its logs at the BPR_DATA/dpe/logs directory.
•dpe.log—Records all events having the configured default level. In situations where the DPE undergoes catastrophic failure, such as engaging in a series of system crashes, the catastrophic errors are also logged into the rdu.log file.
•perfstats.log—Records device performance statistics to help troubleshoot issues related to system performance. For more information, see Monitoring Broadband Access Center, page 11-1.
Viewing the dpe.log File
You can use any text viewer to view the dpe.log file. In addition you can use the show log command, from the DPE CLI, to view the log file. Refer to the Cisco Broadband Access Center DPE CLI Reference, Release 3.0, for additional information.
You can also view the DPE log file using the BAC administrator user interface. To do this:
Step 1 Choose Servers > DPEs.
Step 2 Click the link corresponding to the DPE whose log file you want to view.
Step 3 The View Device Provisioning Engines Details page appears. To view the contents of the dpe.log file, click the View Details icon against DPE Log File in the Log Files area.
Posted: Thu Aug 31 23:57:35 PDT 2006
All contents are Copyright © 1992--2006 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.