reconnect

Use this command to enable or disable the reconnect feature in OcNOS, allowing users to control whether the system attempts to re-establish a connection if it fails. When enabled, OcNOS will make repeated connection attempts if the initial connection fails. If disabled, OcNOS will make only a single connection attempt; if it fails, it will not re-attempt the connection.

Command Syntax

Copy
reconnect (enable|disable)

Parameters

enable

Enable reconnect

disable

Disable reconnect

Default

By default, the reconnect feature is not enabled.

Command Mode

NetConf call home mode

Applicability

This command was introduced in OcNOS version 6.0.0.

Example

  1. Check the existing NetConf Callhome configuration using the show running-config netconf-callhome command.

    Copy
    (netconf-callhome)#do show running-config netconf-callhome
    !
    netconf callhome
     feature netconf callhome enable
    !
  2. Enable Reconnect:

    Copy
    (netconf-callhome)#reconnect enable
    (netconf-callhome)#commit
  3. Check the current NetConf Callhome configuration using the show running-config netconf-callhome command.

    Copy
    (netconf-callhome)#do show running-config netconf-callhome
    !
    netconf callhome
     feature netconf callhome enable
     reconnect enable
    !
  4. Configure Retry Attempts and Interval for the system to re-establish a connection after failing a maximum number of attempts with a specified time interval.

    Copy
    (netconf-callhome)#retry-max-attempts 10
    (netconf-callhome)#retry-interval 30
    (netconf-callhome)#commit
  5. Check the current NetConf Callhome configuration using the show running-config netconf-callhome command.

    Copy
    (netconf-callhome)#do show running-config netconf-callhome
    !
    netconf callhome
     feature netconf callhome enable
     reconnect enable
     retry-max-attempts 10
     retry-interval 30
    !
  6. Disable Reconnect:

    Copy
    (netconf-callhome)#reconnect disable
    (netconf-callhome)#commit
  7. Check the current NetConf Callhome configuration using the show running-config netconf-callhome command.

    Copy
    (netconf-callhome)#do show running-config netconf-callhome
    !
    netconf callhome
     feature netconf callhome enable
    !
    (netconf-callhome)#