6.In the Description field, type a description, for example, This command activates a script that backs up an element.

7.In the Command Line field type a command, which will run on the management server.

This could be a command required to start a script, for example the following:

myscript.bat

The remote console automatically becomes inactive once the command finishes. (Windows Only) If you want the remote console to stay open, prefix the command with the following:

cmd /k

For example:

cmd /k dir

IMPORTANT: When the command in the above example runs, it leaves the remote console window open, so you can enter additional commands. Users can traverse the directory structure of the management server when the remove console is left open.

The file is appended to the command line.(Optional) If you plan to use a file in the command, select the file from the Files drop-down menu. Then, click the Append To Command Line button.

If the file is missing, repeat step 3.

8.Select one of the following options to determine which elements you want the command to be visible. For example if you select the All Elements option, the command is visible in the drop-down menu when you right-click any element.

Name of the Element - Select the name of the element if you want the command to be visible in the drop-down menu when you right-click only this element.

All Elements - Select this option if you want the command to be visible in the drop-down menu when any element is right-clicked.

Selected element types and filter criteria - Select this option if you want to narrow the filtering criteria for an element type. For example, you could specify that the command is only in the drop-down menu when a Brocade switch is right-clicked. The options are as follows:

Applications - (Optional) If you want the command to be visible in the drop-down menu when a particular application is right-clicked, type the name of the product in the Product Name field. To make sure you type the correct product name, type the product name displayed in the Product Name field on the Properties tab, accessible by double-clicking the application in System Manager and clicking the Properties tab.

Hosts - (Optional) If you want the command to be visible in the drop-down menu when a particular host is right-clicked, type the name of the operating system in the OS Name field. To make sure you type the correct operating system, type the operating system displayed in the Target Operating System field on the Properties tab, accessible by double-clicking the host in System Manager and clicking the Properties tab.

Switches - (Optional) If you want the command to be visible in the drop-down menu when a switch from a particular vendor is right-clicked, type the name of the vendor in the Vendor Name field. To make sure you type the correct vendor name, type the vendor

262 Viewing Element Topology and Properties