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
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
-
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
! -
Enable Reconnect:
Copy(netconf-callhome)#reconnect enable
(netconf-callhome)#commit -
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
! -
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 -
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
! -
Disable Reconnect:
Copy(netconf-callhome)#reconnect disable
(netconf-callhome)#commit -
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)#