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

Echo Command Mode, Exit Script on Error Mode

Page 36 highlights

By default, completion code mode returns a message when the command line has one or more errors. To enable completion codes for all command lines, type: Mode completionCodeMode Always To display completion codes only when an error occurs, type: Mode completionCodeMode ErrorsOnly 3.2.5 Echo Command Mode Echo command mode repeats everything you type. In the following example, echo command mode repeated the command typed next to the IP address. 192.168.59.25 :: Mode EchoCommandMode Enabled ← typed by user Mode EchoCommandMode Enabled ← returned by CLI By default, echo command mode is disabled To enable it, type: Mode echoCommand Enabled To disable echo command mode, type: Mode EchoCommand Disabled 3.2.6 Exit Script on Error Mode Exit script on error mode allows the CLI to exit a script automatically if the CLI encounters an error in the script. This mode is useful when running the CLI from a shell script. By default, exit script on error mode is enabled To disable it, type: Mode ExitScriptonError Disabled To enable exit script on error mode, type: Mode ExitScriptonError Enabled 26 Chapter 3 Using the CLI

  • 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

26
Chapter 3
Using the CLI
By default, completion code mode returns a message when the command line has one or
more errors. To enable completion codes for all command lines, type:
Mode
completionCodeMode
Always
To display completion codes only when an error occurs, type:
Mode
completionCodeMode
ErrorsOnly
3.2.5
Echo Command Mode
Echo command mode repeats everything you type. In the following example, echo command
mode repeated the command typed next to the IP address.
192.168.59.25
::
Mode EchoCommandMode Enabled
typed by user
Mode EchoCommandMode Enabled
returned by CLI
By default, echo command mode is disabled To enable it, type:
Mode echoCommand Enabled
To disable echo command mode, type:
Mode
EchoCommand Disabled
3.2.6
Exit Script on Error Mode
Exit script on error mode allows the CLI to exit a script automatically if the CLI encounters
an error in the script. This mode is useful when running the CLI from a shell script.
By default, exit script on error mode is enabled To disable it, type:
Mode ExitScriptonError Disabled
To enable exit script on error mode, type:
Mode ExitScriptonError Enabled