Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure Help Text for Op Scripts

date_range 29-Nov-23

You can provide help text to describe an op script and its arguments when the ? is used to list possible completions in the CLI. To configure help text, include the description statement:

content_copy zoom_out_map
description descriptive-text;

You can include this statement at the following hierarchy levels:

The following examples show the configuration and the resulting output.

Examples: Configuring Help Text for Op Scripts

Configure help text for a script and display the resulting output:

content_copy zoom_out_map
[edit system scripts op]
user@host# set file interface.xsl description "Test the interface"
user@host# commit
 ... 
[edit system scripts op]
user@host# set file ?
Possible completions:
  <name>               Local filename of the script file
  interface.xsl         Test the interface

Configure help text for a script’s command-line arguments and display the resulting output:

content_copy zoom_out_map
[edit system scripts op file interface.xsl arguments]
user@host# set t1 description "Search for T1 interfaces"
user@host# set t3 description "Search for T3 interfaces"
user@host# commit
 
[edit system scripts op file interface.xsl arguments]
user@host# set ?
Possible completions:
  <name>            Name of the argument
  t1                     Search for T1 interfaces
  t3                     Search for T3 interfaces
footer-navigation