cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1017
Views
1
Helpful
0
Replies

How to execute live-status via NETCONF

Hiro Takahashi
Cisco Employee
Cisco Employee

Following is how to execute live-status via NETCONF.

test@debian:~$ ncs_cli -C -u admin

admin connected from 127.0.0.1 using console on debian
admin@ncs# devices device R1 live-status ios-stats:exec show clock
result
*08:58:33.530 JST Wed Jun 21 2017
R1#
admin@ncs# exit

test@debian:~$ cat clock.xml
<action xmlns="http://tail-f.com/ns/netconf/actions/1.0">
<data>
<devices xmlns="http://tail-f.com/ns/ncs">
<device>
<name>R1</name>
<live-status>
<exec xmlns="urn:ios-stats">
<show>
<args>clock</args>
</show>
</exec>
</live-status>
</device>
</devices>
</data>
</action>
test@debian:~$

test@debian:~$ netconf-console --host=127.0.0.1 --port=2022 --rpc clock.xml
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<data>
<devices xmlns="http://tail-f.com/ns/ncs">
<device>
<name>R1</name>
<live-status>
<exec xmlns="urn:ios-stats">
<show>
<result>&#13;
*08:58:37.063 JST Wed Jun 21 2017&#13;
R1#</result>
</show>
</exec>
</live-status>
</device>
</devices>
</data>
</rpc-reply>
test@debian:~$

Best regards,

Hiro

0 Replies 0