The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS system management commands that begin with the letter X.
To configure the number of allowed XML server sessions, use the xml server max-session command. To reset the number to the default, use the no form of this command.
xml server max-session max-sessions
no xml server max-session max-sessions
Maximum number of allowed XML server sessions. The range is from 1 to 8. The default is 8. |
Global configuration mode (config)
|
|
This example shows how to configure the number of allowed XML server sessions:
switch(
config)#
xml server max-session 4
This example shows how to reset the number of allowed XML server sessions to the default:
switch(
config)#
no xml server max-session 4
|
|
---|---|
To terminate an XML server session, use the xml server terminate session command.
xml server terminate session session_id
network-admin
network-operator
vdc-admin
vdc-operator
|
|
This example shows how to terminate an XML server session:
switch(
config)#
xml server terminate session 3
|
|
---|---|
To configure the XML server session timeout, use the xml server timeout command. To reset the timeout to the default, use the no form of this command.
xml server timeout timeout [ session_id ]
no xml server timeout timeout [ session_id ]
Timeout in seconds. The range is from 0 to 1200. The default is 1200. |
|
(Optional) XML server session number. The range is from 0 to 2147483647. |
Global configuration mode (config)
|
|
You can apply the XML server timeout only to active sessions.
This example shows how to configure the XML server timeout for active sessions:
switch(
config)#
xml server timeout 800
This example shows how to reset the timeout to the default:
switch(
config)#
no xml server timeout 800
To validate XML documents, use the xml server validate command. To disable XML document validation, use the no form of this command.
xml server validate { all | session_id }
no xml server validate { all | session_id }
network-admin
network-operator
vdc-admin
vdc-operator
|
|
This example shows how to validate XML documents for all active sessions:
switch(
config)#
xml server validate all
This example shows how to disable validation of XML documents for all sessions:
switch(
config)#
no xml server validate all
To install the XMLIN tool on the device and generate equivalent Network Configuration (NETCONF) formats of all CLI commands entered in this mode, use the xmlin command.
network-admin
network-operator
vdc-admin
vdc-operator
|
|
The XMLIN tool converts CLI commands to the NETCONF protocol format. NETCONF is a network management protocol that provides mechanisms to install, manipulate, and delete the configuration of network devices. It uses XML-based encoding for configuration data and protocol messages. The Cisco NX-OS implementation of the NETCONF protocol supports the following protocol operations: <get>, <edit-config>, <close-session>, <kill-session>, and <exec-command>.
The XMLIN tool converts show, EXEC, and configuration commands to corresponding NETCONF <get>, <exec-command>, and <edit-config> requests. You can enter multiple configuration commands into a single NETCONF <edit-config> instance.
Note the following restrictions:
Note Although the XMLIN tool is usually capable of generating NETCONF instances of commands even if the corresponding feature sets or the required hardware capabilities are not available on the device, you might have to install some feature sets before entering the xmlin command.
The XMLIN tool also converts the output of show commands to XML format by using the show-command | xmlin command.
Ensure the XMLIN tool is installed before you use the show-command | xmlin command.
Note XMLIN requires no license. Any feature not included in a license package is bundled with the Cisco NX-OS system images and is provided at no extra charge to you. For a complete explanation of the Cisco NX-OS licensing scheme, see the Cisco NX-OS Licensing Guide.
This 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:
This example shows how to convert the output of the show interface brief command to XML: