[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Minimum Configuration for Enabling and Viewing Traceoptions
Output
If no automation script trace options are configured
yet, the simplest way to view the trace output of an automation script
is to configure the output trace flag and issue the show
log op-script.log | last command. To do this, perform the following
steps:
- If you have not done so already, enable
an automation script by including the file statement at the [edit system scripts op] hierarchy level:
- [edit system scripts op]
-
file filename;
- Enable trace options by including the traceoptions
flag output statement at the [edit system scripts op] hierarchy level:
- [edit system scripts op]
-
traceoptions flag output;
- Issue the commit command:
- [edit]
- user@host# commit
- Display the resulting trace messages recorded in the /var/log/op-script.log file. At the end of the log is the output
generated by the automation script you enabled in Step item. To display the end of the log, issue
the show log op-script.log | last operational mode command:
- [edit]
- user@host# run show log op-script.log | last
Table 19 summarizes useful
filtering commands that display selected portions of the op-script.log file.
Table 19: Op Script
Tracing Operational Mode Commands
|
Task
|
Command
|
|
Display logging data associated with all script processing.
|
show log op-script.log
|
|
Display script processing for only the most recent commit operation.
|
show log op-script.log | last
|
|
Display processing for script errors.
|
show log op-script.log | match error
|
|
Display script processing for a particular script.
|
show log op-script.log | match script-name
|
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]