cml commit-history

Use this command to enable or disable confirmed commit operation (commit-history operation). To verify the state of the operation, use the command show cml commit-history state.

 

  • By default, cml commit-history operation is enabled.
  • After disabling the cml commit-history operation, confirmed commit CLIs cannot be used, rendering the confirm-commit (WORD|), and cancel-commit (WORD|) operations unavailable.

Command Syntax

Copy
cml commit-history (enable | disable)

Parameters

enable

Enables commit confirmed and commit rollback operations

disable

Disables commit confirmed and commit rollback operations

Default

By default, commit confirmed and commit rollback operations are enabled.

Command Mode

Configure mode

Applicability

This command is introduced in OcNOS version 6.4.1 and updated the Command Mode to Configuration mode inOcNOS version 6.6.0 .

Examples

Example for disabling Commit History:

Copy
OcNOS#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
OcNOS(config)#cml commit-history disable
OcNOS(config)#commit

Example for verifying Commit History when commit-history is disabled:

Copy
OcNOS#show run commit-history
!
cml commit-history disable
!
OcNOS#
OcNOS#show xml run netconf-server
<netconf-server xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-management-serve
r">
        .
        .
  <commit-history>
    <config>
      <disable-commit-history></disable-commit-history>
    </config>
  </commit-history>
OcNOS#
OcNOS#show cml commit-history state
cml commit-history feature is disabled

Example for enabling Commit History:

Copy
OcNOS#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
OcNOS(config)#cml commit-history enable
OcNOS(config)#commit

Example for verifying Commit History when the commit-history is enabled, either by default or explicitly, it will not be displayed in the show run or show xml commands.

Copy
OcNOS#show run commit-history
!
OcNOS#
OcNOS#
OcNOS#show xml run netconf-server
=== NO config for commit-history =====
OcNOS#
OcNOS#show cml commit-history state
cml commit-history feature is enabled
OcNOS#