[j-nsp] CLI/OP Script Interaction
Judah Scott
judah.scott.iam at gmail.com
Fri Oct 23 13:39:14 EDT 2009
Actually, I was talking about the more automated features rather than an
extra ruleset. Thanks for this info, though, I was unaware of this ability
which also sounds very powerful.
-J Scott
On Thu, Oct 22, 2009 at 6:50 PM, Nilesh Khambal <nkhambal at juniper.net>wrote:
> I think you should be looking for commit-script for your requirements. I
> don't think JUNOS can validate the configuration as they are being entered.
> It can only perform the built-in CLI validity checks. Commit-script has the
> ability to validate your candidate configuration at commit time against the
> rules you define in the script. It can either add/fix your broken
> configuration by adding the missing configuration or fail your commit with
> an error or give you a commit time warning if the configuration being
> committed does not meet the standard you define in commit-script.
>
> AFAIK, OP scripts are mainly used for simplifying or automating some cli
> operations to show you the customized outputs or do some other customized
> tasks. It is generally not a good practice to perform configuration
> changes/commits using OP scripts.
>
> I am not a script expert. So I would defer it to the experts on the list.
>
> Thanks,
> Nilesh.
>
>
> On 10/22/09 6:31 PM, "Judah Scott" <judah.scott.iam at gmail.com> wrote:
>
> > I am just starting to look into the scripting abilities of the JUNOS
> > software and am wondering just in general how it interacts with the
> > configuration performed through CLI. I have some general questions such
> as:
> >
> > When a configuration change happens simultaneously as an admin is
> building a
> > candidate config to be commited...
> >
> > Do the scripting changes get incorporated into this candidate config or
> are
> > they commited through another channel?
> >
> > Does the user editing the config see the changes being added to his
> config
> > changes or are the scripting changes applied in the background to the
> > running config?
> >
> > Does the 'config exclusive' mode block the script?
> >
> > Does config private/dynamic affect this behavior?
> >
> > Thanks in advance!
> > -J Scott
> > _______________________________________________
> > juniper-nsp mailing list juniper-nsp at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/juniper-nsp
>
>
More information about the juniper-nsp
mailing list