Advanced Insight Scripts (AI-Scripts) 2.5 Release Notes
36
Copyright
©
2010, Juniper Networks, Inc.
NOTE:
If you configure the
load-scripts-from-flash
option, the system reads AI-
Scripts from
the /config/scripts/
directory; otherwise, the system reads AI-
Scripts from the
/var/db/scripts/
directory. The
/var/run/scripts
directory will
always point to the right scripts directory.
3. Verify that the syntax of a configuration is correct by using the configuration mode
commit
check
command:
[edit]
user@host#
commit check
configuration check succeeds
4. Commit the configuration. To save software configuration changes to the configuration
database and activate the configuration on the router, use the commit configuration mode
command. You can issue the
commit
command from any hierarchy level.
[edit]
user@host#
commit
commit complete
5. View the configuration:
Example Configuration for AIM
groups {
juniper-ais {
system {
scripts {
commit {
allow-transients;
file jais-activate-scripts.slax {
optional;
}
}
load-scripts-from-flash;
}
}
event-options {
destinations {
juniper-aim {
archive-sites {
"ftp://[email protected]/aimdemo";
}
. . .
Example Configuration for Junos Space
groups {
juniper-ais {
system {
scripts {
commit {
allow-transients;
file jais-activate-scripts.slax {
optional;
}
}
}
}