Automation

How can I set up my script to deal with errors?

By Elevate posted 08-07-2015 04:47

  

The <xnm:error> element is used by Junos OS to communicate to a script that an error has occurred. It is important to check for the presence of this element when errors are possible and your script should react to them.  For example, anytime an op or event script performs a commit, it should be ready to handle the various errors that are possible such as a configuration load error, a database locking error, and a commit error.

 

For more information, see the Error Detection document.


#JunosOS
#How-To
0 comments
0 views

Permalink