HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

184
NETCONF commands
xml
Use xml to enter XML view.
Syntax
xml
Views
User view
Predefined user roles
network-admin
network-operator
Usage guidelines
After entering XML view, you can use NETCONF messages to configure the device or obtain data from
the device. NETCONF operations you can perform depend on the user roles you have, as shown in Table
42.
Table 42 NETCONF operations avail
able for the predefined user role
User role NETCONF o
p
erations
network-admin All NETCONF operations
network-operator
Get
Get-bulk
Get-bulk-config
Get-config
Get-sessions
Close-session
NETCONF messages must comply with the XML format requirement and the XSD file semantic and
syntactic requirements. To ensure successful configuration, HP recommends that you use third-party
software to generate NETCONF messages.
To quit XML view, use a NETCONF message instead of the quit command.
Examples
# Enter XML view.
<Sysname> xml
<?xml version="1.0" encoding="UTF-8"?><hello
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><capabilities><capability>urn:ietf:pa
rams:netconf:base:1.1</capability><capability>urn:ietf:params:netconf:writable-runnin
g</capability><capability>urn:ietf:params:netconf:capability:notification:1.0</capabi
lity><capability>urn:ietf:params:netconf:capability:validate:1.1</capability><capabil
ity>urn:ietf:params:netconf:capability:interleave:1.0</capability><capability>urn:iet