Trigger Failover Commands
This chapter describes the trigger failover (TFO) commands.
clear tfo counter
Use this command to clear the TFO counters. If you do not specify a parameter, this command clears counters for all FOG indexes.
Command Syntax
clear tfo counter
clear tfo counter fog <1-64>
Parameters
<1-64>
Clear counters for this Failover Group Index
Default
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#clear tfo counter
fog
Use this command to:
• Create or delete a failover group (FOG)
• Enable or disable an exisitng FOG
Even if FOG index do not exit, FOG can be created as enabled with “enable” option in CLI.
If the FOG index already exists:
• When the FOG status is disabled and Control Port Group (CPG) links are previously disabled (because of TFO), then the links are enabled. If a particular CPG member belongs to multiple CPGs, then this CPG member is enabled only if all corresponding Monitor Port Groups (MPG) are enabled.
• When the FOG status is enabled and MPG is down, then the corresponding CPG links are disabled.
Use the no form of this command to delete a FOG.
Command Syntax
fog <1-64> (enable|disable)
no fog <1-64>
Parameters
<1-64>
Failover Group Index
enable
Enable Failover Group
disable
Disable Failover Group
Default
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#fog 5 enable
fog tfc
Use this command to set the number of links to trigger failover for a Monitor Port Groups (MPG).
Command Syntax
fog <1-64> tfc <0-63>
Parameters
<1-64>
Failover Group index
<0-63>
Trigger failover count
Default
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#fog 5 tfc 7
fog type
Use this command to map upstream/downstream links in a FOG as a Monitor Port Group (MPG) or Control Port Group (CPG).
Use the no form of this command to unmap upstream/downstream links.
Command Syntax
fog <1-64> type (mpg|cpg)
no fog <1-64> type (mpg|cpg)
Parameters
<1-64>
Failover Group Index
mpg
Map the interface to an MPG
cpg
Map the interface to a CPG
Default
None
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
#interface eth1
(config-if)#fog 5 type mpg
link-type
Use this command to make a port an uplink or downlink.
Use the no form of this command to remove the configuration.
Command Syntax
link-type (uplink|downlink)
no link-type
Parameters
uplink
Make the port an uplink
downlink
Make the port a downlink
Default
None
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
#interface eth1
(config-if)#link-type downlink
show tfo
Use this command to display FOG configuration and statistics.
Command Syntax
show tfo
Parameters
None
Default
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show tfo
TFO : Enable
Failover Group 1 : Enable
Failover Status : MPG Link Failure
No. of links to trigger failover : 0
MPG Port(s) :
xe9 Status : DOWN
xe12 Status : DOWN
CPG Port :
xe4 Status : DOWN
No. of times MPG link failure : 1
No. of times MPG link recovered : 0
No. of times CPG got auto disabled : 1
No. of times CPG got auto enable : 0
Table P‑1-59 Explains the show command output fields.
Table 1-59: show tfo output fields
Field | Description |
---|
Failover Group | Enable the failover group. |
Failover Status | Display the failover status. |
No. of links to trigger failover | Number of links to trigger the failover group. |
MPG Port | Details of the monitor port group. |
CPG Port | Details of the control port group. |
tfo
Use this command to enable or disable trigger failover (TFO).
Command Syntax
tfo (enable|disable)
Parameters
enable
Enables Trigger failover
disable
Disables Trigger failover
Default
By default, TFO is disabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#tfo enable