Troubleshoot Commit Scripts
After you enable a commit script and issue a commit
command, the commit script takes effect immediately.
Table 1 describes some common problems that might occur.
Problem |
Solution |
---|---|
The output of the |
Make sure you have enabled all the scripts by including
the |
The output contains the error message: error: could not open commit script: /var/db/scripts/commit/filename: No such file or directory |
Make sure the commit script is present in the /var/db/scripts/commit/ directory on your Junos device. |
The following error and warning messages appear: error: invalid transient change generated by commit script: filename warning: 1 transient change was generated without [system scripts commit allow-transients] |
One of your commit scripts contains instructions to generate a transient change, but you have not enabled transient changes. To rectify this problem, take one of the following actions:
|
An expected action does not occur. For example, a warning message does not appear even though the configuration contains the problem that is supposed to evoke the warning message. |
|
|
|
|
|
|
|
The commit operation fails, and an error message in the system log file indicates: Process (pid,cscript) attempted to exceed RLIMIT_DATA |
When committing a configuration that is inspected by one or more commit scripts, you might need to increase the amount of memory allocated to the commit scripts to accommodate the processing of large configurations. To increase the maximum memory allocated for each executed commit script, configure the
|