[j-nsp] Juniper vmx not able to find op and event script files
Martin T
m4rtntns at gmail.com
Thu May 19 10:33:34 EDT 2016
Hi,
I have a Juniper vmx router running Junos 14.1R1.10. For some reason
it does not find op and event scripts. For example:
root at vMX-A> file list detail /var/db/scripts/op/
/var/db/scripts/op/:
total blocks: 12
-rw-r--r-- 1 root wheel 286 May 19 13:37 test.slax
total files: 1
root at vMX-A> show configuration system scripts
op {
file test.slax;
}
root at vMX-A> op test.slax detail
error: invalid filename: /var/db/scripts/op/test.slax
root at vMX-A>
..or in case of an event script:
[edit]
root at vMX-A# run file list detail /var/db/scripts/event/
/var/db/scripts/event/:
total blocks: 12
-rw-r--r-- 1 root wheel 286 May 19 13:25 test.slax
total files: 1
[edit]
root at vMX-A# run file show /var/db/scripts/event/test.slax
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 / {
<event-script-results> {
}
}
[edit]
root at vMX-A# show | compare
[edit]
+ event-options {
+ event-script {
+ file test.slax;
+ }
+ }
[edit]
root at vMX-A# commit check
error: invalid filename: /var/db/scripts/event//test.slax
error: Reading the configuration from event scripts failed
error: configuration check-out failed
[edit]
root at vMX-A#
I also tried to load scripts from flash("load-scripts-from-flash") and
stored the scripts in respective directory under /config, but this
didn't help.
Am I doing something wrong?
thanks,
Martin
More information about the juniper-nsp
mailing list