The laser turn-on command enables the optical module laser.
The laser turn-off command disables the optical module laser.
By default, the optical module laser is enabled.
Parameter | Description | Value |
---|---|---|
duration value |
Specifies a duration for which the optical module laser is enabled temporarily. duration takes effect only if the laser autoshutdown enable command has been run. |
The value is an integer ranging from 200 to 30000, in 10 ms. The default value is 9000. |
turn-off |
Set the laser off. |
- |
turn-on |
Set the laser on. |
- |
Usage Scenario
Before locating or troubleshooting a link failure, maintenance engineers can run the laser turn-off command to disable the optical module laser manually to protect themselves from the laser.The laser The turn on command can be run in the following scenarios:
Prerequisites
The optical module has been installed, and the interface has been Up.
Configuration Impact
If maintenance engineers run the laser autoshutdown enable command first and then the laser turn-on command after the link failure is cleared, the optical module laser is enabled temporarily for the configured duration, and the system checks whether the link failure is cleared during opentime-interval and closetime-interval configured in the laser atuo-shutdown-interval command.
duration: The duration timer starts when the optical module laser is enabled, and the optical module laser remain enabled during duration. After the duration timer expires, the system checks whether the LOS alarm is cleared to determine to start the opentime-interval or closetime-interval timer.Follow-up Procedure
Run the laser turn-on command to enable the optical module laser manually so that it can go back to the normal working state.
Precautions
Running the laser turn-off command interrupts services on the interface. Therefore, do not run the command when the interface is working properly.
duration configured in the laser turn-on duration duration command takes effect only once. In addition, it takes effect only after the laser autoshutdown enable command is run. If the device or the board on which the optical module resides is restarted, the laser turn-off command no longer takes effect.<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] laser turn-on
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [~HUAWEI-GigabitEthernet0/1/0] laser turn-off