Setup Cisco Optical Site Manager

This chapter describes the tasks related to standalone Cisco Optical Site Manager configuration and activating Cisco Optical Site Manager.

Setting up Cisco Optical Site Manager involves these tasks:

Configure Cisco Optical Site Manager in standalone mode

Cisco Optical Site Manager can be configured in standalone mode on a single NCS 1010 or NCS 1014 controller card. This mode is useful for deployments where local management via a GUI is needed, or where interaction with third-party controllers is required without full network-wide SDN automation.

The configuration involves setting up Cisco Optical Site Manager interfaces, defining management interface parameters, and establishing user credentials for access.

Before you begin

Ensure that these configurations are enabled before configuring Cisco Optical Site Manager in standalone mode:

  • NETCONF over SSH is enabled.

  • Configure static routes on peer devices.

Follow these steps to configure Cisco Optical Site Manager in standalone mode:

Procedure


Step 1

Enter into the IOS XR and COSM configuration mode using the configure terminal and cosm commands.

Example:

RP/0/RP0/CPU0:ios#configure terminal
RP/0/RSP0/CPU0:ios(config)# cosm

Step 2

Configure the interface of the device running the Cisco Optical Site Manager by using mgmt-interface-name MgmtEth R/S/I/P command.

Example:

RP/0/RP0/CPU0:ios(config-cosm)# mgmt-interface-name MgmtEth 0/RP0/CPU0/0

Step 3

Configure the username using the user-name user name command.

Example:

RP/0/RP0/CPU0:ios(config-cosm)# user-name cisco

Note

 

The username must match the username of the host device.

Step 4

Configure the password using the user-password password command.

Example:

RP/0/RP0/CPU0:ios(config-cosm)# user-password ***

Note

 

The password must match the password of the host device.

Step 5

(Optional) From R24.3.1, enable auto-onboarding of the Cisco Optical Site Manager host devices.

Example:

RP/0/RP0/CPU0:ios(config-cosm)#cosm auto-onboard enable

Step 6

Commit the changes and exit the configuration modes using the commit and end commands.

Example:

RP/0/RP0/CPU0:ios(config-cosm) commit
RP/0/RP0/CPU0:ios(config-cosm) end

Step 7

Verify the configuration using the show running-config cosm command.

Example:

This example shows the standalone Cisco Optical Site Manager configuration.
RP/0/RP0/CPU0:ios#show running-config cosm
Fri Oct 18 12:53:47.056 UTC
cosm
 mgmt-interface-name Loopback1
!

The configured user-name and user-password are not displayed in the output of the show running-config cosm command.


Cisco Optical Site Manager is configured in the standalone mode.

What to do next

Activate Cisco Optical Site Manager

Enable or disable Cisco Optical Site Manager interfaces

Cisco Optical Site Manager provides three control interfaces. By default, all these interfaces are enabled. If required, individual interfaces can be disabled.

  • NETCONF

  • RESTCONF

  • Interactive Web-UI

This configuration must be completed before activating Cisco Optical Site Manager on the device. Use the device's CLI in COSM configuration mode to enable or disable interfaces individually. The default NETCONF port is 2022. You may change this port during configuration.

Before you begin

Ensure that Cisco Optical Site Manager is configured in standalone or HA mode.

Follow these steps to enable or disable Cisco Optical Site Manager interfaces.

Procedure


Step 1

Enter IOS XR and COSM configuration modes using the configure terminal and cosm commands.

Example:

RP/0/RP0/CPU0:ios#configure terminal
RP/0/RSP0/CPU0:ios(config)# cosm

Step 2

(Optional) Configure the NETCONF port if you want to use a port other than 2022 using the netconf port port-number command

Example:

RP/0/RP0/CPU0:ios(config-cosm)#netconf port 2021
Configures the specified port for the NETCONF SSH server. If no port is specified, port 2022 is used by default.

Step 3

Enable or disable the Cisco Optical Site Manager interfaces using the <interface-name> enable | disable command.

Example:

RP/0/RP0/CPU0:ios(config-cosm)# netconf enable
RP/0/RP0/CPU0:ios(config-cosm)# restconf disable
RP/0/RP0/CPU0:ios(config-cosm)# webui enable
Enables or disables the specified Cisco Optical Site Manager interfaces.

Step 4

Commit the changes using the commit command.


After configuration changes are committed, the application operates with the specified interface availability. Only enabled interfaces are accessible for management and monitoring, and disabled interfaces do not accept connections.

What to do next

Login to Cisco Optical Site Manager.

Activate Cisco Optical Site Manager

After configuration is complete, activate Cisco Optical Site Manager to enable the application.

After configuring Cisco Optical Site Manager in standalone or high availability mode, including setting management interfaces, user credentials, and optional features like auto-onboarding, the application remains inactive until explicitly activated.

  • It may take a few minutes to activate Cisco Optical Site Manager.

  • After activating, wait a few minutes before logging in to the Cisco Optical Site Manager GUI.


Important


The configuration of interfaces used by Cisco Optical Site Manager should not be changed after activation.


Before you begin

Ensure that Cisco Optical Site Manager is activated.

Follow these steps to activate Cisco Optical Site Manager.

Procedure


Step 1

Activate Cisco Optical Site Manager using the cosm activate command.

Example:

RP/0/RP0/CPU0:ios# cosm activate

Step 2

Verify the status of the application using the show cosm status command.


Upon successful activation, the application transitions to an active state. Status commands display APP_ACTIVATED and ACTIVATED states.

This example shows the status of Cisco Optical Site Manager configured in standalone mode.

RP/0/RP0/CPU0:OLT-2#show cosm status
Fri Oct 18 13:06:09.862 UTC
COSM state: APP_ACTIVATED
AppMgr app state: ACTIVATED
AppMgr container state: RUNNING
Container status: Up 3 weeks
Last error: No error
COSM version: 24.3.1.D0186

This example shows the status of Active instance of the Cisco Optical Site Manager configured in HA mode.

RP/0/RP0/CPU0:HAN-1#show cosm status 
Thu Oct 30 10:21:25.374 UTC
COSM state: APP_ACTIVATED
AppMgr app state: ACTIVATED
AppMgr container state: RUNNING
Container status: Up 2 days
Last error: No error
COSM version: 25.1.1.R0366
Redundancy role: ACTIVE (connected standby 2.2.2.2-COSM)

This example shows the status of Standby instance of the Cisco Optical Site Manager configured in HA mode.

RP/0/RP0/CPU0:HAN-2#show cosm status 
Thu Oct 30 10:23:01.366 UTC
COSM state: APP_ACTIVATED
AppMgr app state: ACTIVATED
AppMgr container state: RUNNING
Container status: Up 2 days
Last error: No error
COSM version: 25.1.1.R0366
Redundancy role: STANDBY (connected active 1.1.1.1-COSM)

Deactivate Cisco Optical Site Manager

Deactivating Cisco Optical Site Manager should be performed only when:

  • A change in the IP address of the Cisco Optical Site Manager instance is required.

  • The deployment is transitioning from a standalone setup to a high availability (HA) configuration.

  • The device hosting Cisco Optical Site Manager is being decommissioned and needs to be relocated to another device within the same aggregation site.

  • The Cisco Optical Site Manager installation is incomplete or corrupted and requires removal and reinstallation.


Note


Deactivating Cisco Optical Site Manager for general debugging or troubleshooting is not recommended.


Before you begin

Before deactivating Cisco Optical Site Manager:

  • Create a backup of Cisco Optical Site Manager database. For more details, see Backup and Download Database .

  • Download the current diagnostic logs in case required for troubleshooting. For more details, see View Cisco Optical Site Manager Diagnostics .

  • Ensure that all the devices are in sync completed state in Cisco Optical Site Manager. If multiple devices are managed in Cisco Optical Site Manager, prepare to delete all associated devices simultaneously.

Follow these steps to deactivate Cisco Optical System Manager from your host devices. This process is not traffic impacting.

Procedure


Step 1

Perform these steps from the Cisco Optical Site Manager WEB-UI.

  1. Lock the devices.

  2. Back up the device configuration.

  3. Unlock the devices.

  4. Wait for synchronization to complete for all devices.

  5. Select all devices and delete them from the Cisco Optical Site Manager.

Step 2

Perform these steps from the IOS XR CLI.

  1. Run the no lldp system-description command to remove the LLDP system description on each device deleted from the Cisco Optical Site Manager.

    Example:

     
    RP/0/RP0/CPU0:COSM_OLT-4_215#conf t
    Thu Oct 23 16:34:24.928 +0530
    RP/0/RP0/CPU0:COSM_OLT-4_215(config)#no lldp system-description
    RP/0/RP0/CPU0:COSM_OLT-4_215(config)#commit
  2. Run the cosm deactivate command to deactivate the Cisco Optical System Manager.

    Example:

    RP/0/RP0/CPU0:ios# cosm deactivate
  3. Run the show cosm status command to verify the status of the Cisco Optical Site Manager instance.

    Example:

    
    RP/0/RP0/CPU0: ios#show cosm status
    COSM state: APP DEACTIVATED
    AppMgr app state: DEACTIVATED
    AppMgr container state: UNKNOWN
    Container status: Not present
    Last error: No error
    COSM version: 24.3.1.D0186