HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 27

Using the no Form

Page 27 highlights

Rev 1.6.9 The following session shows how to move between command modes: \ switch > switch > enable switch # switch # configure terminal switch (config) # switch (config) # exit switch # switch # disable switch > (You start in Standard mode) (Move to Enable mode) (You are in Enable mode) (Move to Config mode) (You are in Config mode) (Exit Config mode) (You are back in Enable mode) (Exit Enable mode) (You are back in Standard mode) 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 "no" 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 Mellanox Technologies 27 Mellanox Technologies Confidential

  • 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

Rev 1.6.9
Mellanox Technologies
27
Mellanox Technologies Confidential
The following session shows how to move between command modes:
switch >
(You start in Standard mode)
switch > enable
(Move to Enable mode)
switch #
(You are in Enable mode)
switch # configure terminal
(Move to Config mode)
switch (config) #
(You are in Config mode)
switch (config) # exit
(Exit Config mode)
switch #
(You are back in Enable mode)
switch # disable
(Exit Enable mode)
switch >
(You are back in Standard mode)
\
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 “no” 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