HP Mellanox SX1018 Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed - Page 28

Using the Negation Form

Page 28 highlights

Rev 1.6.2 Commands entered do not print any response and simply show the command prompt after you press . If an error is encountered in executing a command, the response will begin with "%", followed by some text describing the error. 3.1.5 Using the Negation Form Several Config mode commands offer the negation form using the keyword "no". This no form can be used to disable a function, to cancel certain command parameters or options, or to reset a parameter value to its default. To re-enable a function or to set cancelled command parameters or options, enter the command without the "no" keyword (with parameter values if necessary). The following example performs the following: 1. Displays the current CLI session options. 2. Disables auto-logout. 3. Displays the new CLI session options (auto-logout is disabled). 4. Re-enables auto-logout (after 15 minutes). 5. Displays the final CLI session options (auto-logout is enabled) // 1. Display the current CLI session options switch (config) # show cli CLI current session settings: Maximum line size: 8192 Terminal width: 157 columns Terminal length: 60 rows Terminal type: xterm Auto-logout: 15 minutes Paging: enabled Progress tracking: enabled Prefix modes: enabled ... // 2. Disable auto-logout switch (config) # no cli session auto-logout // 3. Display the new CLI session options switch-1 [standalone: master] (config) # show cli CLI current session settings: Maximum line size: 8192 Terminal width: 157 columns Terminal length: 60 rows Terminal type: xterm Auto-logout: disabled Paging: enabled Progress tracking: enabled Prefix modes: enabled ... // 4. Re-enable auto-logout after 15 minutes switch (config) # cli session auto-logout 15 // 5. Display the final CLI session options switch (config) # show cli CLI current session settings: Mellanox Technologies 28

  • 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

Rev 1.6.2
Mellanox Technologies
28
Commands entered do not print any response and simply show the command prompt after you
press <Enter>.
If an error is encountered in executing a command, the response will begin with “
%
”, followed by
some text describing the error.
3.1.5
Using the Negation Form
Several Config mode commands offer the negation form using the keyword “no”. This no form
can be used to disable a function, to cancel certain command parameters or options, or to reset a
parameter value to its default. To re-enable a function or to set cancelled command parameters or
options, enter the command without the “no” keyword (with parameter values if necessary).
The following example performs the following:
1.
Displays the current CLI session options.
2.
Disables auto-logout.
3.
Displays the new CLI session options (auto-logout is disabled).
4.
Re-enables auto-logout (after 15 minutes).
5.
Displays the final CLI session options (auto-logout is enabled)
// 1. Display the current CLI session options
switch (config) # show cli
CLI current session settings:
Maximum line size:
8192
Terminal width:
157 columns
Terminal length:
60 rows
Terminal type:
xterm
Auto-logout:
15 minutes
Paging:
enabled
Progress tracking:
enabled
Prefix modes:
enabled
...
// 2. Disable auto-logout
switch (config) # no cli session auto-logout
// 3. Display the new CLI session options
switch-1 [standalone: master] (config) # show cli
CLI current session settings:
Maximum line size:
8192
Terminal width:
157 columns
Terminal length:
60 rows
Terminal type:
xterm
Auto-logout:
disabled
Paging:
enabled
Progress tracking:
enabled
Prefix modes:
enabled
...
// 4. Re-enable auto-logout after 15 minutes
switch (config) # cli session auto-logout 15
// 5. Display the final CLI session options
switch (config) # show cli
CLI current session settings: