retry-max-attempts
Use this command to specify the number of retries the OcNOS should attempt to the call home server before giving up.
Use the no
form of this command to reset the maximum attempts to its default value (3).
Command Syntax
retry-max-attempts <0-255>
no retry-max-attempts
Parameters
<0-255>
Number of retries; specify zero (0) to retry infinitely.
Default
By default, when the reconnect feature is enabled, 3 attempts will be made.
Command Mode
NetConf call home mode
Applicability
This command was introduced in OcNOS version 6.0.0.
When users update the reconnect parameters, note the following:
- Servers that haven't completed the configured retry count with the updated configurations will be included in the new count.
- Servers for which the configured retry count has already been completed will restart the retrial process with the new configuration.
Example
-
Enable the NetConf callhome feature and reconnect commands:
Copy(netconf-callhome)#do show running-config netconf-callhome
!
netconf callhome
feature netconf callhome enable
reconnect enable
! -
Configure retry maximum attempts:
Copy(netconf-callhome)#retry-max-attempts 10
(netconf-callhome)#commit
(netconf-callhome)# -
Check the NetConf callhome show output:
Copy(netconf-callhome)#do show running-config netconf-callhome
!
netconf callhome
feature netconf callhome enable
reconnect enable
retry-max-attempts 10
! -
Reset the attempts to its default value:
Copy(netconf-callhome)#no retry-max-attempts
(netconf-callhome)#commit -
Check the NetConf callhome show output:
Copy(netconf-callhome)#do show running-config netconf-callhome
!
netconf callhome
feature netconf callhome enable
reconnect enable
!
(netconf-callhome)#exit