Automation
Automation

Scripting How-To: Run an op script over NETCONF

by Cordelia on ‎08-10-2015 09:29 PM - edited on ‎09-15-2017 04:09 PM by Administrator Administrator (1,083 Views)

Run an op Script Over NETCONF

 

The following example demonstrates how to run an op script over NETCONF:

 

1 % cat sample.netconf
2 <rpc>
3     <op-script>
4         <script>sample</script>
5         <arg1>$arg1</arg1>
6         <arg2>$arg2</arg2>
7         <arg3>$arg3</arg3>
8     </op-script>
9 </rpc>
10  
11 $  junoscript netconf < sample.netconf