Cisco Optical Network Controller Configuration Guide, Releases 26.x.x

PDF

Cisco Optical Network Controller Configuration Guide, Releases 26.x.x

Audit and debug logs

Want to summarize with AI?

Log in

This section provides details about audit and debug logs, including log categories, display features, retention, archiving, and SEDO commands. Use it to understand log behavior and administration options.


Use this reference to understand audit and debug logs.

Audit and debug logs include:

  • Cisco Optical Network Controller supports two sets of logs:.

  • The Audit logs.

  • The developer or Debug logs.

  • Both these logs can be viewed online, using the Logs application's Audit and Debug tabs. These logs are archived every week on Monday around midnight by default. The archived logs are in the .tgz format. You can also schedule different day and time values as the archive scheduler time. These archives can be downloaded and deleted using the Archive tab.

Audit logs

Audit logs include:

  • The Audit logs option helps in:.

  • Auditing all the Cisco Optical Network Controller operations which include circuit operations, Cisco Optical Network Controller and COSM user login or logout procedures and traffic related operations that are done on COSM or node.

  • The logs can be used to learn about all the changes that have occurred as a result of external notifications that come from connected nodes. Audit logs are not added for configurations which are done on the devices before the device discovery.

Display features

Display features include:

  • Pagination and filter options are available for Audit logs.

  • Filter option is set to All by default.

Categorization of audit logs

Categorization of audit logs include:

  • Audit logs are categorized into:.

  • Only admin or internal users can view logs, collect techdump, download or delete archive files and schedule archive. Only users with read-only permission and the supervisor users can view the archived files and collect techdump. The user names are based on the type of user. The User Name field is marked as [ Unknown ] for a few scenarios. For example: when the user login authentication fails, because of incorrect credentials you get this message: User failed while logging in due to invalid CSRF token .

Table 1. Audit Logs Category

Category Field

Description

System

The events that are part of this category are:

  • Login.

  • Logout.

  • Create user.

  • Delete user.

  • CONC database backup and restore

Inventory

The events that are part of this category are:

  • Card create/delete/state update.

  • Physical port and logical port create/delete/state update.

  • Interfaces create/delete/state update.

  • Chassis create/delete.

  • IPC add and delete.

  • Degree add and delete.

  • Passive unit add/delete

  • Port Frequency

Node

The events that are part of this category are:

  • Device add/delete/resync/reconnect.

  • Device state for discovered and disconnected status.

  • Connection loss or reconnect audit logs status.

Service

The events that are part of this category are:

  • Circuit add/delete/edit/update or state change.

  • Link up and down.

Topology

The events of this category include the OMS and OTS interfaces.

Site_Audit

The events that are part of this category are:

  • COSM login/logout/login failed.

  • COSM devices version.

  • All COSM provisions, notifications which are traffic impacting and audited under site audit category.

  • COSM backup/Restore

Alarm

All the events related to Alarms.

Alien_Import

All the events related to Alien_Import.

SNMP

  • Add SNMP Manager

  • Delete SNMP Manager

  • Update SNMP Manager

Note
  • Only admin or internal users can view logs, collect techdump, download or delete archive files and schedule archive.

  • Only users with read-only permission and the supervisor users can view the archived files and collect techdump.

  • The user names are based on the type of user.

  • The User Name field is marked as [Unknown] for a few scenarios. For example: when the user login authentication fails, because of incorrect credentials you get this message: User failed while logging in due to invalid CSRF token.

Debug logs

Debug logs include:

  • Under Debug logs, all the developer logs are displayed with filters and pagination. There is also an option to enable and disable debugging of all services. Also, similar to the Audit logs, the Debug logs have the logs active for up to seven days. After seven days these logs get archived, from where they can also be downloaded.

  • Debug logs that are older than one month are cleared, as they are retained only for a month.

Note

Debug logs that are older than one month are cleared, as they are retained only for a month.

Retention and archiving and archive logs

Retention and archiving and archive logs include:

  • The Audit logs can be retained and saved as given.

  • Audit logs are retained for up to seven days which can be viewed online using the Logs application.

  • Logs beyond seven days are archived and kept in the Cisco Optical Network Controller storage. The Archive logs are maintained for three months and are deleted later.

  • The archived logs can be downloaded any time by using the Archive tab in the Logs application.

  • The Audit logs archiving can be scheduled weekly using the Audit log scheduler.

  • The active Audit logs are visible in the Audit log table for up to seven days after which they are moved to the Archive logs.

  • The archived logs can be retrieved anytime and are available in the archive tab. Archived logs which are more than three months old are deleted by Cisco Optical Network Controller by default.

  • You can download or delete the archived logs anytime. You can also suspend or resume archiving of logs anytime.

Archive logs

Archive logs include:

  • The Archive logs allow you to schedule the logs. It consists of two schedulers:.

  • Audit logs job scheduler : Refers to all the archived audit logs.

  • Debug logs job scheduler : Refers to all the archived developer logs. Techdump : Refers to the on-demand collection of logs from the services which are displayed in the table. It collects the data base (DB) snapshots for all the services. You can collect or download and also delete these logs from the table.

  • The Archive logs are saved as tar zip files. The Suspend and Modify options can be used to suspend, resume or modify the archived logs. The Modify option works on a weekly basis and you can also set any day as the value as per your requirement. The archived audit logs are stored for up to three months where as the developer logs are stored for one month. When one archive collection is proceeding, it is recommended to not change the scheduler time as otherwise it can lead to generation of multiple In Progress tasks.

Note
  • The Archive logs are saved as tar zip files.

  • The Suspend and Modify options can be used to suspend, resume or modify the archived logs. The Modify option works on a weekly basis and you can also set any day as the value as per your requirement.

  • The archived audit logs are stored for up to three months where as the developer logs are stored for one month.

  • When one archive collection is proceeding, it is recommended to not change the scheduler time as otherwise it can lead to generation of multiple In Progress tasks.

SEDO commands

SEDO commands include:

  • For any issues with the logs, you can collect the techdump data and use the sedo command logs and report them.

  • The sedo commands are as given:.

  • Step 1: Use sedo diagnostics archive-logs /tmp/logs to collect all service 7 days logs. It collects logs and stores them in the /tmp/logs directory with the file name nxfos-logs-xxxxxxx.tar.gz .

  • Step 2: Use the scp command to copy nxfos-logs-xxxxxxxx.tar.gz file to the local system.

  • Download of developer archive logs will time-out when logs are too huge, then it is recommended to use the sedo commands to download:.

  • Step 1: Use the command sedo object-store list onc-torch-service-dev-log-data-archives which lists all archived files under the developer logs. For example: Ex : root@abrageor-nxf:~# sedo object-store list onc-torch-service-dev-log-data-archives ┌─────────────────────────────┬──────────────┬───────────────────────────────┐ │ OBJECT │ SIZE (BYTES) │ LAST MODIFIED │ ├─────────────────────────────┼──────────────┼───────────────────────────────┤ │ devlogs_2024-09-20T12_40_00 │ 13606281 │ Fri, 20 Sep 2024 12:47:01 UTC │ │ devlogs_2024-09-22T07_31_00 │ 175939085 │ Sun, 22 Sep 2024 08:58:12 UTC │ └─────────────────────────────┴──────────────┴───────────────────────────────┘.

  • Step 2: Use the command sedo object-store get onc-torch-service-dev-log-data-archives/devlogs_2024-09-20T12_40_00 to download from the current directory. devlogs_2024-09-20T12_40_00 is the file name list taken from the Step 1 output.

  • Step 3: You can download the file to the local system.

Audit and debug logs details

Details about audit and debug logs details.

Figure 1. Audit Logs
Screenshot of Audit Logs
Figure 2. Archive Logs
Screenshot of Archive Logs
Figure 3. Scheduling Audit Logs Job
Screenshot of Scheduling Audit Logs Jobs
Figure 4. Debug Logs
Screenshot of Debug Logs

Benefits of logs enhancement

Log enhancements help in:.

Table 2. Benefit of Log Enhancements

Benefit

Description

Organized Log Management

Clear categorization and sub tab structure for easy navigation.

Enhanced Usability

Pagination, filters, and export options improve user experience.

Efficient Retention

Automated scheduling and archiving ensure logs are retained and managed effectively.

User Access Control

Different permissions for admin or internal users and readonly or supervisor users enhance security and control.

Comprehensive Logging

Detailed logging for various operations ensures thorough tracking and auditing.


Access logs

Use this procedure to access logs in Cisco Optical Network Controller. Complete this task when you need to configure, verify, or manage the related network operation.

To access the Logs, tab follow the steps:

Before you begin

Follow these steps to access logs:

Procedure

1.

Click Logs from the left panel.

The Logs screen is displayed.

2.

Click Audit tab.

The Audit table is visible which has the following fields:

  • Time: The time of audit log creation.

  • Category: The category type of the audit log. It can be one of the following types based on your selection:

  • System

  • Node

  • Inventory

  • Topology

  • Service

  • Alarm

  • Alien_Import

  • Site_Audit

  • Identifier: The names of unique Cisco Optical Network Controller identifiers like circuit names or device names, circuit tags or degree names which can be used to filter the Audit log table.

  • Username: The user names based on type of user.

  • Client IP: The IP address of the device or node. It can also have the Cisco Optical Network Controller IP address used for login or also appear as blank.

  • Message: Messages are information pertaining to each log that are part of the Audit.

3.

Click Refresh to refresh the Audit log table content anytime.

4.

Click Export to export the entire Audit log table content to an *.xls file.

5.

Click Archives tab to view the archived data.

This will display the archives table along with the Audit logs job scheduler, Debug logs job scheduler and Techdump options.

For more information on each of these options you can click i the information icon, provided on top of each of these options.
6.

Click Debug tab to view the developer logs.

The Debug table has the following filter options which you can select:

  • Namespace

  • Microservice

  • Container

  • Log Level

  • Time Range

  • Search

There is also an Enable Detailed Logs option which allows you to fetch detailed log information from this table for debugging purpose. By default, this option is disabled and must be enabled only when required.

The access logs task is complete.


Generate and download tech dump logs

Use this procedure to generate and download tech dump logs in Cisco Optical Network Controller. Complete this task when you need to configure, verify, or manage the related network operation.

When you generate a tech dump, Cisco Optical Network Controller compiles logs, configuration files, and operational data into a single archive file.

Before you begin

Ensure that there is sufficient space on the VM hosting the Cisco Optical Network Controller.

Follow these steps to generate and download the tech dump logs:

Procedure

1.

Click Logs.

2.

Click Tech Dump tab.

For details about the field descriptions on this tab, see Table 1.

3.

Click the Collect button to initiate the log collection.

A confirmation message appears, stating that starting a new log collection will delete the existing log file.
4.

Click the Collect the DB dump check box if you also want to collect information about CONC databases.

Note

Selecting this check box does not collect any sensitive information, including device credentials.

5.

Click Collect on the dialog box.

Collected log files remain local to the current active VM. If a switchover occurs, these files are not available on the new active VM.

Wait for the log collection to finish.
6.

Click Download to download the logs or Delete to remove them.

Warning

Do not log out during the download, as it can cause the file download to fail.

A file named in the tech_dump_<timestamp>.tar.gz format is downloaded.

The Tech Dump tab displays these fields:

Table 3. Tech dump tab field descriptions

Field

Description

File Name

Displays the name of the generated tech-dump file, including timestamp and timezone.

Status

Shows the current state of the tech-dump file generation. A green check mark indicates successful completion.

File Size

Indicates the size of the generated tech-dump archive in MB.

Triggered By

Shows the user ID that triggered the tech-dump collection.

Triggered On

Shows the exact timestamp (date and time with timezone) when the tech-dump creation started.

Action

Provides available operations for the generated file:

  • Download: Download the collected logs.

  • Delete: Delete the collected logs.

Note

These options are not displayed when the log collection is in progress.