D-Link DSN-5000-10 CLI User's Guide for DSN-1100-10 - Page 51
RequireArgs
UPC - 790069324024
View all D-Link DSN-5000-10 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 51 highlights
Controller[A] :: push ^iscsi.targets[$first] Changes the context to the first iSCSI target, even though the current context is Controller[A]. Help Push Displays help for the Push command. 4.2.10 RequireArgs The requireArgs command is an advanced feature intended for use with script files. This command lets you specify the required number of arguments for subsequent commands. If a CLI script has this command and the number of arguments provided does not provide at least the number of required arguments specified with RequireArgs, the script is terminated. Syntax requireArgs [optionalDisplayStringOnError] where is the required number of arguments for subsequent commands and [optionalDisplayStringOnError] is a string that is displayed to the user if the argument count is not satisfied. Examples requireArgs 8 Checks that at least 8 arguments are present for the current script, and terminates the script if not. Help requireArgs Displays help for the RequireArgs command. Command Line Interface User's Guide 41