Manuals

Manuals
Automated Scripts : Command Line Interface Reference Back to Contents Page

Automated Scripts

You can use the CLI commands alone in CLI command scripts or in combination with DOS commands in DOS batch files to perform a variety of tasks. You can also invoke CLI command scripts in a DOS batch file. This appendix describes how to write DOS batch files and CLI command scripts to accomplish the following:

You should already understand how to write DOS batch files and be familiar with Windows-related backup commands.

To execute a CLI command script at the CLI command prompt, use the @ (at sign) followed by the file name that contains the CLI commands, for example:

 AFA0> @container.txt

Performing Controller Details Task

A CLI command script, in its simplest form, is a text file that contains valid CLI commands. Each command is followed by a carriage return linefeed. The following example opens a controller, uses the controller details command to display details about the opened controller, closes the controller, and exits the command script:

open afa0

controller details

close afa0

exit

The following list provides descriptions related to the ctrdetls.txt CLI command script:

  1. The first line opens controller afa0 by invoking the CLI command open.
  2. The second line displays details about the open controller by invoking the CLI command controller details.
  3. The third line closes controller afa0 by invoking the CLI command close.
  4. The fourth line exits the example CLI command script.


Back to Contents Page

Laptops| Desktops| Business Laptops| Business Desktops| Workstations| Servers| Storage| Monitors| Printers| Services, Help & Advice with your PC| LCD TVs| Electronics
Copyright 1999-2009 Dell Inc. | Terms and Conditions | Unresolved Issues | Privacy Practices | Dell Recycling | Contact | Feedback |

Finance from Dell Financial Services (CIT Group Finance (Ireland)). Republic of Ireland consumers aged 18 years or above only, subject to status. Prices shown may vary without notice. APR dependent on credit score and may differ from typical rate shown. Terms and conditions and written quotations available upon request. Credit Card deposit, picture ID and bank statement may be required.
Dell Products, c/o Cherrywood Science & Technology Park, Dublin 18, Ireland. Subject to availability. Prices and specifications may change without notice. Terms and Conditions of Sales, Service and Finance apply and are available from www.dell.ie Dell Services do not affect customer's statutory rights. They are subject to Terms and Conditions which can be found at www.dell.ie/consumerservices/termsandconditions

Promotional offers limited to maximum 5 systems per customer. All of the products forming part of any system or bundle offer are available to be purchased separately. 'Saving' is the difference between the featured package versus the current online price if the promotional components were upgraded individually. For further details and prices of components if purchases separately, please see www.dell.ie/totalsavings
Free Consumer Recycling- www.dell.ie/recycling

snWEB3