</variable>
</key_ids>
</names>
</schemas>
</file>
<file>
<number>2</number>
<schemas>
<schema>system</schema>
<names>
<name>system</name>
<key_ids>
<key_id>none</key_id>
<variable>
<name>host</name>
<value><host_name></value>
</variable>
<variable>
<name>ipaddr</name>
<value>1.2.3.4</value>
</variable>
<variable>
<name>uptime</name>
<value>5781</value>
</variable>
</key_ids>
</names>
</schemas>
</file>
</bulkstats-operational>
Exec CLI Model
The following examples use the Exec CLI model.
Using Curl to Obtain the 'show version' Output
See below for a sample use of curl to obtain the
show version
output:
cat exec_cli_show_version.xml
<input><args>show version</args></input>
************
[<user>@server] ]$ curl -u admin:pswd!
https://rtp-mitg-si06.cisco.com:234/api/running/staros_exec/_operations/exec --cert
/users/<user>/ssl_cert/client_cert/client.crt --key
/users/<user>/ssl_cert/client_cert/client.key --cacert
/users/<user>/ssl_cert/root_cert/rootCA.pem -X POST -T ./exec_cli_show_version.xml
<output xmlns='http://www.cisco.com/staros-exec'>
<result>Active Software:
Image Version:
21.2.M0.private
Image Build Number:
private
Image Description:
Developer_Build
Image Date:
Thu Feb 23 15:25:47 EST 2017
Boot Image:
/flash/qvpc-si.bin.confd
Source Commit ID:
bd234043a93c68873ea77444733a8c632356d161
</result>
</output>
Using Curl to Obtain Multiple Show Command Outputs
See below for a sample use of curl to obtain the
show build
and
show confdmgr
outputs, using "\r\n" as the
delimiter between commands:
cat exec_cli_show_build_and_confdmgr.xml
<input><args>show build \r\n show confdmgr</args></input>
************
[<user>@server] ]$ curl -u admin:pswd!
https://rtp-mitg-si06.cisco.com:234/api/running/staros_exec/_operations/exec --cert
ASR 5500 System Administration Guide, StarOS Release 21.5
357
NETCONF and ConfD
Exec CLI Model
Содержание ASR 5500
Страница 100: ...ASR 5500 System Administration Guide StarOS Release 21 5 74 System Interfaces and Ports VLANs and Management Ports ...
Страница 136: ...ASR 5500 System Administration Guide StarOS Release 21 5 110 Smart Licensing Smart Licensing Bulk Statistics ...
Страница 140: ...ASR 5500 System Administration Guide StarOS Release 21 5 114 Monitoring the System Clearing Statistics and Counters ...
Страница 260: ...ASR 5500 System Administration Guide StarOS Release 21 5 234 Routing Viewing Routing Information ...
Страница 278: ...ASR 5500 System Administration Guide StarOS Release 21 5 252 BGP MPLS VPNs VPN Related CLI Commands ...
Страница 292: ...ASR 5500 System Administration Guide StarOS Release 21 5 266 Session Recovery Sample Output for show rct stats verbose ...
Страница 324: ...ASR 5500 System Administration Guide StarOS Release 21 5 298 Interchassis Session Recovery Fallback Procedure ...
Страница 338: ...ASR 5500 System Administration Guide StarOS Release 21 5 312 Engineering Rules ECMP Groups ...
Страница 362: ...ASR 5500 System Administration Guide StarOS Release 21 5 336 StarOS Tasks Management Processes ...