Hi guys,
trying to run an op-Script on the SRX340:
version 1.0;
ns junos = "http://xml.juniper.net/junos/*/junos";
ns xnm = "http://xml.juniper.net/xnm/1.1/xnm";
ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0";
import "../import/junos.xsl";
match / {
<op-script-results> {
var $variable1 = <rpc> {
<command format="text"> "show dhcp server binding | match reth0.68 | except 192.168.1";
}
var $variable2 = jcs:invoke($variable1);
<output> "reth0.68 - Bad-Bindings:";
<output> $variable2;
}
}
The Reason is to find IP's that don't belong to the range due to a bug in the Software.
However the SRX keeps getting me the complete binding for reth0.68 - not the "filtered" - if I run the command directly on the cli it works fine.
Is there any way to make the pipe work in op-Scripts?
Regards
Chris