194
Usage guidelines
Some protocols might shut down ports under specific circumstances. For example, MSTP shuts down a
BPDU guard–enabled port when the port receives a BPDU. In this case, you can set the port status
detection timer. If the port is still down when the detection timer expires, the protocol module
automatically cancel the shutdown action and restore the port to its original physical status.
•
If you change the detection timer to T1 during port detection, the interval from when you change the
timer to the time when the protocol module shuts down the port is T. If T<T1, the down port will be
recovered after T1-T time. If T>=T1, the down port is recovered immediately. For example, if the
detection timer is set to 30 seconds and you change it to 10 seconds (T1=10) two seconds after the
port is shut down (T=2), this port will be recovered 8 seconds later. If the detection timer is set to 30
seconds and you change it to 2 seconds ten seconds after the port is shut down, this port is
recovered immediately.
•
If the detection timer is set to 0, the protocol module never automatically recovers the port. You need
to manually bring up the port by using the
undo shutdown
command or change the detection timer
to a non-zero value.
Examples
# Set the port status detection timer to 100 seconds.
<Sysname> system-view
[Sysname] shutdown-interval 100
sysname
Use
sysname
to set the device name.
Use
undo sysname
to restore the default.
Syntax
sysname
sys
name
undo sysname
Default
The device name is H3C.
Views
System view
Default command level
2: System level
Parameters
sysname
: Name of the device, which is a string of 1 to 30 characters.
Usage guidelines
A device name identifies a device in a network and works as the user view prompt at the CLI. For
example, if the device name is
Sysname
, the user view prompt is <Sysname>.
Examples
# Set the name of the device to
R2000
.
<Sysname> system-view
[Sysname] sysname R2000