Command Line Reference
Device Management
POE Configuration
15 min
poe configuration poe configuration show interface poe show interface poe \[command] show interface poe \[purpose] display interface poe information \[view] system view \[use cases] sonic# show interface poe show interface poe diagnose show interface poe diagnose \[command] show interface poe diagnose \[purpose] display interface poe initialization information \[view] system view \[usage scenario] this command displays information including poe hardware version, poe status, current poe temperature, alarm temperature, and the number of internal poe resets \[notes] if the command results in a "device busy" message, it is normal this indicates that the system is currently retrieving poe power information simply reissue the command to get the results \[use cases] sonic# show interface poe diagnose pse device information field value \ version 0x4a02 status ok expected poe device found (zone1) event temperature 48 c temperature alarm 110 c reset count 0 initialized true pse wrong port map interface current id expect id \ poe enable poe enable \[command] poe enable no poe enable \[purpose] enable poe power supply function of the interface \[view] interface view \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# poe enable poe delay poe delay time \[command] poe delay time no poe delay \[purpose] configure the delayed start time of the interface poe function \[parameter] parameter description time range of values 0 3600 \[view] interface view \[usage scenario] this command is used to delay the activation of power over ethernet (poe) power supply on an interface based on actual usage requirements when the uplink link state stabilizes, and the protocols are running correctly, poe power is supplied to the connected poe devices this delay mechanism is useful for ensuring that poe devices receive power only when the network is stable and ready to support them \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# poe delay 300 poe max power poe max power power \[command] poe max power power no poe max power \[purpose] configure the maximum output power of the device \[parameter] parameter description power the unit is w \[view] system configuration view \[notes] by default, the maximum output power of a device is the power actually provided by the device therefore, the configured maximum output power must be lower than or equal to the total power of poe power modules \[use cases] sonic(config)# poe max power 60 poe priority {low/high/critical} poe priority {low/high/critical} \[command] poe priority {low/high/critical} \[purpose] configure the power priority of a poe interface \[parameter] parameter description critical indicates the highest priority high indicates the second highest priority low indicates the lowest priority \[view] system configuration view \[notes] when the output power of a device is insufficient, the device in automatic power management mode provides power for the interfaces of the higher power supply priorities first and cuts off power of the interfaces of the lower power supply priorities poe switches provide power to pds connected to the interfaces in the sequence in which pds are connected to them by default, the power supply priority of an interface is low \[use cases] sonic(config)# interface ethernet 4 sonic(config if 4)# poe priority high time range time range name from date stop to date start \[command] time range name from date stop to date start no time range name \[purpose] configure poe power off time range \[parameter] parameter description name specifies the name of a time range date stop specify the stop time of a time range, the format is hh\ mm date start specify the start time of a time range, the format is hh\ mm \[view] system configuration view \[use cases] sonic(config)# time range test from 12 00 2022 01 01 to 16 00 2023 01 01 time range time range name date stop to date start day \[command] time range name date stop to date start day no time range name \[purpose] configure poe power off time range \[parameter] parameter description name specifies the name of a time range date stop specify the stop time of a time range, the format is hh\ mm date start specify the start time of a time range, the format is hh\ mm day specifies the date on which the time range takes effect a weekday includes monday the value "daily" indicates that the time range takes effect during the seven days in a week the value "off day" indicates that the time range takes effect on weekends including saturday and sunday the value "working day" indicates that the time range takes effect in five days from monday to friday \[view] system configuration view \[use cases] sonic(config)# time range test 00 00 to 23 59 off day poe power off time range poe power off time range name \[command] poe power off time range name no poe power off time range name \[purpose] configure poe power off time range effective on an interface \[view] interface view \[use cases] sonic(config)# interface ethernet 48 sonic(config if 48)# poe power off time range test warning this operation may power off some pd continue?\[y/n] y poe legacy detect enable poe legacy detect enable \[command] poe legacy detect enable poe legacy detect disable \[purpose] enable device power supply compatibility detection for pd devices \[view] interface view \[usage scenario] enable compatibility detection for pd devices, allowing the device to detect pd devices that do not comply with the 802 3af or 802 3at standards and supply power to these pd devices if the compatibility check for pd devices is not enabled, the device will not recognize non standard pd devices and will be unable to supply power to them \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# poe legacy detect disable poe reinitialize poe reinitialize \[command] poe reinitialize \[purpose] initialize poe feature \[view] system configuration view \[usage scenario] if the device has not been initialized for poe at the factory, this command can be used for manual initialization after executing this command, a device reboot is not required, but all poe functionalities will be automatically disabled once initialization is complete, poe will be enabled again \[use cases] sonic(config)# poe reinitialize
