OcNOS-SP : System Management Guide : System Management Command Reference : Common Management Layer Commands : cmlsh cli-format
cmlsh cli-format
Use this command to display command strings in CLI error messages. By default, OcNOS displays error messages with Xpaths (path notation for navigating through the hierarchical structure of an XML document) which is not very clear for users.
Command Syntax
cmlsh cli-format (enable | disable)
Parameters
enable
Display command strings in CLI error messages.
disble
Display Xpaths in CLI error messages.
Default
Display Xpaths in CLI error messages
Mode
Exec mode
Applicability
This command was introduced in OcNOS version 6.3.0.
Example
This is the default behavior where an Xpath is displayed:
>en
#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
(config)#router ospf 10
(config-router)#area 3.3.3.3 interface xe1
(config-router)#commit
% Configuration " /ospfv2/processes/process[ospf-id='10']/areas/area[area-id='3.3.3.3']/interfaces/interface[name='xe1']/vrf-name" depends on "/ospfv2/global/config/area-interface-config-mode"
% Failed to commit .. As error(s) encountered during commit operation…
If you enable this feature, the Xpath is replaced with the respective command string:
>en
#cmlsh cli-format enable
#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
(config)#router ospf 10
(config-router)#area 3.3.3.3 interface xe1
(config-router)#commit
% Configuration " area <value-option> interface <value-option>" depends on " ospf area-interface-config-mode"
% Failed to commit .. As error(s) encountered during commit operation…
Last modified date: 08/28/2023