D-Link DSN-540 CLI User's Guide for DSN-1100-10 - Page 53

ShiftArgs

Page 53 highlights

Help Select Displays help for the Select command. 4.2.12 Set Use the Set command to set a property in the current context. Syntax Set Examples Set name Zeus Sets the array name to Zeus. Help Set Displays help for the Set command. 4.2.13 ShiftArgs The shiftArgs command is an advanced feature intended for use with script files. This command left-shifts off a minimum number of arguments. This command is useful when working with an external text file containing command line parameters and arguments. It is particularly useful if you will be performing repetitive operations on several systems where argument shifting is required. If is omitted from the command line, 1 is assumed. Syntax shiftArgs Examples shiftArgs If a script has arguments 0, 1, and 2, including this command strips the leftmost argument (0), resulting in arguments 1 and 2 being passed (as arguments #0 and #1). shiftArgs 2 If a script has arguments 0, 1, and 2, including this command strips the two leftmost arguments (0,1), resulting in argument 2 being passed (as argument #0). Help shiftArgs Displays help for the ShiftArgs command. Command Line Interface User's Guide 43

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97

Command Line Interface User’s Guide
43
°
Help Select
Displays help for the
Select
command.
4.2.12
Set
Use the
Set
command to set a property in the current context.
Syntax
Set <memberName> <newvalue>
Examples
°
Set
name Zeus
Sets the array name to Zeus.
°
Help Set
Displays help for the
Set
command.
4.2.13
ShiftArgs
The
shiftArgs
command is an advanced feature intended for use with script files. This
command left-shifts off a minimum number of arguments.
This command is useful when working with an external text file containing command line
parameters and arguments. It is particularly useful if you will be performing repetitive
operations on several systems where argument shifting is required. If
<
integer
>
is omitted
from the command line, 1 is assumed.
Syntax
shiftArgs <integer>
Examples
°
shiftArgs
If a script has arguments 0, 1, and 2, including this command strips the leftmost
argument (0), resulting in arguments 1 and 2 being passed (as arguments #0 and #1).
°
shiftArgs 2
If a script has arguments 0, 1, and 2, including this command strips the two leftmost
arguments (0,1), resulting in argument 2 being passed (as argument #0).
°
Help shiftArgs
Displays help for the
ShiftArgs
command.