Re: [j-nsp] CLI/OP Script Interaction

2009-10-23 Thread Phil Shafer
Judah Scott writes: >Got it. Thanks for taking the time to explain all that. No problem. Thanks for using my features ;^) I should also point you at some more recent docs: http://www.juniper.net/us/en/training/elearning/junos_scripting/index.html http://junos.juniper.net/content/Resources/D

Re: [j-nsp] CLI/OP Script Interaction

2009-10-23 Thread Judah Scott
Got it. Thanks for taking the time to explain all that. On Fri, Oct 23, 2009 at 11:13 AM, Phil Shafer wrote: > Judah Scott writes: > >What is a transient change? > > Here's some (long-ish) explanatory text: > > You can use commit scripts to generate transient changes, which are > changes t

Re: [j-nsp] CLI/OP Script Interaction

2009-10-23 Thread Phil Shafer
Judah Scott writes: >What is a transient change? Here's some (long-ish) explanatory text: You can use commit scripts to generate transient changes, which are changes that are not saved in the candidate configuration but are propagated to the components of the system. Transient changes a

Re: [j-nsp] CLI/OP Script Interaction

2009-10-23 Thread Judah Scott
Thanks Phil. Both responses are very helpful. Just a quick clarification on: "Long answer: Commit scripts can emit both normal changes and "transient" changes, and an op script can make data (say by defining an apply-macro) that will trigger an op script to make transient changes, but an op scri

Re: [j-nsp] CLI/OP Script Interaction

2009-10-23 Thread Judah Scott
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 wrote: > I think you should be looking for commit-script

Re: [j-nsp] CLI/OP Script Interaction

2009-10-22 Thread Phil Shafer
Nilesh Khambal writes: >It is generally not a good practice to perform configuration >changes/commits using OP scripts. Op scripts can build config from command line arguments, user answers to interactive questions, operational state, or any combination of the above. This means you can get script

Re: [j-nsp] CLI/OP Script Interaction

2009-10-22 Thread Phil Shafer
Judah Scott writes: >When a configuration change happens simultaneously as an admin is building a >candidate config to be commited... Any config related changes should be protected by locking the configuration (via the "lock-configuration" RPC). The "jcs:load-configuration" template does this for

Re: [j-nsp] CLI/OP Script Interaction

2009-10-22 Thread Nilesh Khambal
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 th

[j-nsp] CLI/OP Script Interaction

2009-10-22 Thread Judah Scott
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 candida