Green Ethernet Commands
Use these commands to configure Green Ethernet modes on the system.
The purpose of the Green Ethernet features is to save power. The switch supports the following Green Ethernet modes:
- Energy-detect mode
- Energy-efficient Ethernet (EEE) mode
green-mode energy-detect
M4250
M4350
Use this command to enable energy-detect mode on an interface or on a range of interfaces. With this mode enabled, when the port link is down, the port automatically powers down for short period of time and then wakes up to check link pulses. In energy-detect mode, the port can perform auto-negotiation and consume less power when no link partner is present.
| Default | disabled |
| Format | green-mode energy-detect |
| Mode | Interface Config |
no green-mode energy-detect
Use this command to disable energy-detect mode on the interface(s).
| Format | no green-mode energy-detect |
| Mode | Interface Config |
green-mode eee
M4250
M4350
Use this command to enable EEE low-power idle mode on an interface or on a range of interfaces. The EEE mode enables both send and receive sides of the link to disable some functionality for power saving when lightly loaded. The transition to EEE low-power mode does not change the port link status. Frames in transit are not dropped or corrupted in transition to and from this mode.
| Default | disabled |
| Format | green-mode eee |
| Mode | Interface Config |
no green-mode eee
Use this command to disable EEE mode on the interface(s).
| Format | no green-mode eee |
| Mode | Interface Config |
green-mode eee tx-idle-time
M4250
M4350
Use this command to configure the EEE mode transmit idle time for an interface or range of interfaces. The idle time is in microseconds (0–4294977295). The transmit idle time is the amount of time the port waits before moving to the MAC TX transitions to the LPI state.
| Default | 0 |
| Format | green-mode eee tx-idle-time microseconds |
| Mode | Interface Config |
no green-mode eee tx-idle-time
Use this command to return the EEE idle time to the default value.
| Format | no green-mode eee tx-idle-time |
| Mode | Interface Config |
green-mode eee tx-wake-time
M4250
M4350
Use this command to configure the EEE mode transmit wake time for an interface or range of interfaces. The wake time is in microseconds (0–65535). The transmit wake time is the amount of time the switch must wait to go back to the ACTIVE state from the LPI state when it receives a packet for transmission.
| Default | 0 |
| Format | green-mode eee tx-wake-time microseconds |
| Mode | Interface Config |
no green-mode eee tx-wake-time
Use this command to return the EEE wake time to the default value.
| Format | no green-mode eee tx-wake-time |
| Mode | Interface Config |
green-mode eee-lpi-history sampling-interval
M4250
M4350
Use this command to configure global EEE LPI history collection interval for the system. The value specified in this command is applied globally on all interfaces in the switch. The sampling interval unit is seconds (30–36000).
The sampling interval takes effect immediately; the current and future samples are collected at this new sampling interval.
| Default | 3600 seconds |
| Format | green-mode eee-lpi-history sampling-interval seconds |
| Mode | Global Config |
no green-mode eee-lpi-history sampling-interval
Use this command to return the global EEE LPI history collection interval to the default value.
| Format | no green-mode eee-lpi-history sampling-interval |
| Mode | Global Config |
green-mode eee-lpi-history max-samples
M4250
M4350
Use this command to configure global EEE LPI history collection buffer size for the system. The size value (1–168) specified in this command is applied globally on all interfaces in the switch.
| Default | 168 |
| Format | green-mode eee-lpi-history max-samples size |
| Mode | Global Config |
no green-mode eee-lpi-history max-samples
Use this command to return the global EEE LPI history collection buffer size to the default value.
| Format | no green-mode eee-lpi-history max-samples |
| Mode | Global Config |
show green-mode
M4250
M4350
Use this command to display the green-mode configuration and operational status on all ports or on the specified port.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show green-mode [unit/slot/port] |
| Mode | Privileged EXEC |
If you do not specify a port, the command displays the information in the following table.
| Term | Definition |
|---|---|
| Global | |
| Cumulative Energy Saving per Stack | Estimated cumulative energy saved in the stack in (watts * hours) due to all green modes enabled. |
| Current Power Consumption per Stack | Power consumption by all ports in the stack in mWatts. |
| Power Saving | Estimated percentage power saved on all ports in the stack due to Green mode(s) enabled. |
| Unit | Unit Index of the stack member. |
| Green Ethernet Features supported | List of Green Features supported on the unit which could be one or more of the following: Energy-Detect (Energy Detect), EEE (Energy Efficient Ethernet), LPI-History (EEE Low Power Idle History), LLDP-Cap-Exchg (EEE LLDP Capability Exchange), Pwr-Usg-Est (Power Usage Estimates). |
| Energy Detect | |
| Energy-detect Config | Energy-detect Admin mode is enabled or disabled. |
| Energy-detect Opr | Energy detect mode is currently active or inactive. The energy detect mode may be administratively enabled, but the operational status may be inactive. |
| EEE | |
| EEE Config | EEE Admin Mode is enabled or disabled. |
Command example:
The following example shows that the system supports all green Ethernet features:
(NETGEAR Switch) (Config)#show green-mode
Current Power Consumption /Stack (mW).......... 12259
Percentage Power Saving /Stack (%)............. 0
Cumulative Energy Saving /Stack (W * H)........ 0
Unit Green Ethernet Features Supported
---- ---------------------------------
1 Energy-Detect EEE LPI-History LLDP-Cap-Exchg Pwr-Usg-Est
Interface Energy-Detect EEE
Config Opr Config
--------- --------- --------- --------
1/0/1 Disabled Inactive Disabled
1/0/2 Disabled Inactive Disabled
1/0/3 Disabled Inactive Disabled
1/0/4 Disabled Inactive Disabled
1/0/5 Disabled Inactive Disabled
1/0/6 Disabled Inactive Disabled
1/0/7 Disabled Inactive Disabled
1/0/8 Disabled Inactive Disabled
1/0/9 Disabled Inactive Disabled
If you specify the port, the command displays the information in the following table.
| Term | Definition |
|---|---|
| Energy Detect | |
| Energy-detect admin mode | Energy-detect mode is enabled or disabled. |
| Energy-detect operational status | Energy detect mode is currently active or inactive. The energy-detect mode may be administratively enabled, but the operational status may be inactive. The possible reasons for the status are described below. |
| Reason for Energy-detect current operational status |
The energy detect mode may be administratively enabled, but the operational status may be inactive for one of the following reasons:
If the energy-detect operational status is active, this field displays No energy detected. |
| EEE | |
| EEE Admin Mode | EEE Admin Mode is enabled or disabled. |
| Transmit Idle Time | It is the time for which condition to move to LPI state is satisfied, at the end of which MAC TX transitions to LPI state. The Range is (0 to 429496729). The Default value is 0. |
| Transmit Wake Time | It is the time for which MAC / switch has to wait to go back to ACTIVE state from LPI state when it receives packet for transmission. The Range is (0 to 65535). The Default value is 0. |
| Rx Low Power Idle Event Count | This field is incremented each time MAC RX enters LP IDLE state. Shows the total number of Rx LPI Events since EEE counters are last cleared. |
| Rx Low Power Idle Duration (μSec) | This field indicates duration of Rx LPI state in 10 μs increments. Shows the total duration of Rx LPI since the EEE counters are last cleared. |
| Tx Low Power Idle Event Count | This field is incremented each time MAC TX enters LP IDLE state. Shows the total number of Tx LPI Events since EEE counters are last cleared. |
| Rx Low Power Idle Duration (μSec) | This field indicates duration of Tx LPI state in 10 μs increments. Shows the total duration of Tx LPI since the EEE counters are last cleared. |
| Tw_sys_tx (μSec) | Integer that indicates the value of Tw_sys that the local system can support. This value is updated by the EEE DLL Transmitter state diagram. |
| Tw_sys Echo (μSec) | Integer that indicates the remote system’s Transmit Tw_sys that was used by the local system to compute the Tw_sys that it wants to request from the remote system. |
| Tw_sys_rx (μSec) | Integer that indicates the value of Tw_sys that the local system requests from the remote system. This value is updated by the EEE Receiver L2 state diagram. |
| Tw_sys_rx Echo (μSec) | Integer that indicates the remote systems Receive Tw_sys that was used by the local system to compute the Tw_sys that it can support. |
| Fallback Tw_sys (μSec) | Integer that indicates the value of fallback Tw_sys that the local system requests from the remote system. |
| Remote Tw_sys_tx (μSec) | Integer that indicates the value of Tw_sys that the remote system can support. |
| Remote Tw_sys Echo (μSec) | Integer that indicates the value Transmit Tw_sys echoed back by the remote system. |
| Remote Tw_sys_rx (μSec) | Integer that indicates the value of Tw_sys that the remote system requests from the local system. |
| Remote Tw_sys_rx Echo (μSec) | Integer that indicates the value of Receive Tw_sys echoed back by the remote system. |
| Remote Fallback Tw_sys (μSec) | Integer that indicates the value of fallback Tw_sys that the remote system is advertising. |
| Tx_dll_enabled | Initialization status of the EEE transmit Data Link Layer management function on the local system. |
| Tx_dll_ready | Data Link Layer ready: This variable indicates that the TX system initialization is complete and is ready to update/receive LLDPDU containing EEE TLV. This variable is updated by the local system software. |
| Rx_dll_enabled | Status of the EEE capability negotiation on the local system. |
| Rx_dll_ready | Data Link Layer ready: This variable indicates that the RX system initialization is complete and is ready to update/receive LLDPDU containing EEE TLV. This variable is updated by the local system software. |
| Cumulative Energy Saving | Estimated Cumulative energy saved on this port in (Watts × hours) due to all green modes enabled. |
| Time Since Counters Last Cleared | Time Since Counters Last Cleared (since the time of power up, or after the clear eee statistics command is executed) |
Command example:
The following example shows that the system supports all green Ethernet features:
(NETGEAR Switch) #show green-mode 1/0/1
Energy Detect Admin Mode.................... Enabled
Operational Status....................... Active
Reason................................... No Energy Detected
Auto Short Reach Admin Mode................. Enabled
Forced Short Reach Admin Mode............... Enabled
Operational Status....................... Active
Reason................................... Forced
EEE Admin Mode.............................. Enabled
Transmit Idle Time....................... 0
Transmit Wake Time....................... 0
Rx Low Power Idle Event Count............ 0
Rx Low Power Idle Duration (uSec)........ 0
Tx Low Power Idle Event Count............ 0
Tx Low Power Idle Duration (uSec)........ 0
Tw_sys_tx (usec)......................... XX
Tw_sys_tx Echo(usec)..................... XX
Tw_sys_rx (usec)......................... XX
Tw_sys_tx Echo(usec)..................... XX
Fallback Tw_sys (usec)................... XX
Remote Tw_sys_tx (usec).................. XX
Remote Tw_sys_tx Echo(usec).............. XX
Remote Tw_sys_rx (usec).................. XX
Remote Tw_sys_tx Echo(usec).............. XX
Remote fallback Tw_sys (usec)............ XX
Tx DLL enabled........................... Yes
Tx DLL ready............................. Yes
Rx DLL enabled........................... Yes
Rx DLL ready............................. Yes
Cumulative Energy Saving (W * H).......... XX
Time Since Counters Last Cleared......... 1 day 20 hr 47 min 34 sec
show green-mode eee-lpi-history
M4250
M4350
Use this command to display interface green-mode EEE LPI history.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | show green-mode eee-lpi-history interface unit/slot/port |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Sampling Interval | Interval at which EEE LPI statistics are collected. |
| Total No. of Samples to Keep | Maximum number of samples to keep. |
| Percentage LPI time per switch | Percentage of total time spent in LPI mode by all ports in a switch when compared to total time since reset. |
| Sample No. | Sample Index. |
| Sample Time | Time since last reset. |
| %time spent in LPI mode since last sample | Percentage of time spent in LPI mode on this port when compared to sampling interval. |
| %time spent in LPI mode since last reset | Percentage of total time spent in LPI mode on this port when compared to time since reset. |
Command example:
The following example shows that the system has the EEE feature enabled:
(NETGEAR Switch) #show green-mode eee-lpi-history interface 1/0/1
Sampling Interval (sec)........................ 30
Total No. of Samples to Keep................... 168
Percentage LPI time per Stack.................. 29
Percentage of Percentage of
Sample Time Since Time spent in Time spent in
No. The Sample LPI mode since LPI mode since
Was Recorded last sample last reset
------ -------------------- -------------- --------------
10 0d:00:00:13 3 2
9 0d:00:00:44 3 2
8 0d:00:01:15 3 2
7 0d:00:01:46 3 2
6 0d:00:02:18 3 2
5 0d:00:02:49 3 2
4 0d:00:03:20 3 2
3 0d:00:03:51 3 1
2 0d:00:04:22 3 1
1 0d:00:04:53 3 1
clear green-mode statistics
M4250
M4350
Use this command to clear the following Green Ethernet mode statistics:
- EEE LPI event count and LPI duration
- EEE LPI history table entries
- Cumulative power-savings estimates
You can clear the statistics for a specified port or for all ports.
To specify an actual interface or port, do the following:
- For an M4250 series switch, use the argument slot/port.
- For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
| Format | clear green-mode statistics {unit/slot/port | all} |
| Mode | Privileged EXEC |