Converting Show Command Output To Xml - Cisco Nexus 7000 Series Configuration Manual

Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

Converting CLI Commands to Network Configuration Format
Step 5
Step 6

Converting Show Command Output to XML

You can convert the output of show commands to XML.
Before You Begin
Make sure that all features for the commands you want to convert are installed and enabled on the device.
Otherwise, the commands will fail.
You can use the terminal verify-only command to verify that a feature is enabled without entering it on the
device.
Make sure that all required hardware for the commands you want to convert are present on the device.
Otherwise, the commands will fail.
Make sure that the XMLIN tool is installed.
Procedure
Step 1
Configuration Examples for XMLIN
The following example shows how the XMLIN tool is installed on the device and used to convert a set of
configuration commands to an <edit-config> instance.
switch# xmlin
******************************************
Loading the xmlin tool. Please be patient.
******************************************
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Command or Action
switch(config-if-verify)(xmlin)# show
commands
switch(config-if-verify)(xmlin)# exit
Command or Action
switch# show-command | xmlin
©
) 2002-2013, Cisco Systems, Inc. All rights reserved.
Cisco Nexus 7000 Series NX-OS System Management Configuration Guide
Converting Show Command Output to XML
Purpose
(Optional)
Converts show commands to NETCONF format.
(Optional)
Returns to EXEC mode.
Purpose
Enters global configuration mode.
You cannot use this command with
Note
configuration commands.
403

Advertisement

Table of Contents
loading

Table of Contents