Information

This site will undergo a brief period of maintenance on Thursday, 23 April at 2:30 AM Central/1:00 PM IST. During a 30 minute window, site availability may be intermittent.

Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Adding a Network Shell script


You can create Network Shell scripts and store them in the Depot. After you add a Network Shell script to the Depot, you can run the script using a Network Shell Script Job.

Warning

Note

  • Avoid dumping raw information in NSH Scripts as a method of data consolidation. Instead, author your script in a separate file, and copy that file to the central location.
  • Be careful of running expensive or high CPU commands in parallel. Instead of running many parallel CLI commands, collect information on the edge nodes and then use a separate loop or process to load them sequentially.

To add a Network Shell script to the Depot

  1. Take one of the following actions:
    • Right-click a depot folder and select New > NSH Script from the pop-up menu.
    • Open the Servers folder and navigate to a file that you want to add to the Depot as a Network Shell script. Right-click the file and select Add to Depot As > NSH Script.
    • The Add NSH Script to Depot wizard opens.
  2. Using the wizard, define the script, as described in the following sections:

  3. Click Finish to close the wizard and save your changes.
    For information about creating a job that runs the script you have added, see Creating-Network-Shell-Script-Jobs.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Server Automation 8.3