![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
To simplify the loading of common or repetitive configuration setups, the TIBCO Messaging Appliance P-7500 CLI has a basic scripting facility that enables you to define and run scripts that run multiple CLI commands. Basic script files can be used to store more than one CLI command. Depending on your needs, you might want to store all of your CLI commands in one script file, or group scripts by function.This basic scripting facility does not include structures for control flow, environment variables, or other more sophisticated scripting features.To run a CLI script file, you must first write the script on your computer using the editor of your choice, save the script as a file with no extension, then transfer the script to the system using the copy Privileged EXEC command. Refer to “Adding or Removing System Files” on page 7 in TIBCO Messaging Appliance P-7500 Operations Guide for more details on using the copy command.tibco> source script <script-name>where script-name specifies the name of the CLI script file. The file must be in a directory on the system.
• if a command inside a script contains a syntax error, or fails for some other reason, the remainder of the commands in the file are still run (that is, script execution does not abort on failure)
• a script does not require an exit or logout command at the end. If present, these commands are run normally, such that if run in user mode the CLI session is exited.
• comments can be included directly in the CLI script file itself and are identified with an exclamation mark (!) at the start of a line. This tells P-7500 systems that the information is a comment and should not be displayed or parsed. Comments do not require an end tag.
Note: If you decide to include comments, anyone who reads or edits your CLI script may read them. Any system or application that parses or validates your CLI script ignores commented information.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |