HP NetRAID-4M Controller User Manual
Page 315

15-5
Working with Scripts
Executing Scripts at the NetWare and Windows NT/2000 Command
Prompts
You can execute a CLI script at the NetWare command prompt as
follows. Note that there are three ways to run a NetWare script
remotely from Windows NT/Windows 2000 (basic disk only), and
one way to run a script from the NetWare console.
■
Enter the script filename at the NetWare console or Windows
NT/Windows 2000 (basic disk only) command prompt and
press Enter, as in the following example.
> clist.txt
The CLI commands in this script file must be entered on a
single line and separated by a ";" (semicolon), as in the
following example. The script file may contain CLI and
NetWare commands. In the example, the first line of the script
is the NetWare ndir command. The second line of the script is a
series of CLI commands separated by a ";".
ndir clist.txt
afacli; open HPN0; container list; close; exit
■
From Windows NT/Windows 2000 (basic disk) only, enter the
afacli
command followed by "@" (at sign) and a script
filename with a .afa filename extension, as in the following
example.
> afacli @clist.afa
The commands in this script file must be separated by a
carriage return. The script file may contain CLI commands
only. See Executing a Script from the CLI Command Prompt on
page 15-2 for an example of a script with commands separated
by a carriage return.
■
Enter a series of CLI commands at the Windows NT/Windows
2000 (basic disk only) command prompt. A series of
commands entered after the
afacli
command, must be
delimited by a ";" (semicolon) and enclosed in a pair of double
quotation marks (" "), as in the following example. Note that
the server name must be specified with the
open
command.
> afacli "open \\serverx\HPN0;logfile start /append=true
3-22-log.txt; container list; logfile end;close;exit"