S5232 ------wd---- c.arm(70) c.get_remaining_time() c.disarm() c.is_armed() c.arm(70) c.is_armed() c.di>>> c= Watchdog() >>> c.arm(70) 70 >>> c.get_remaining_time() 70 >>> c.disarm() True >>> c.is_armed() False >>> c.arm(70) 70 >>> c.is_armed() True >>> c.disarm() True >>> c.arm(70) 70 >>> c.get_remaining_time() 63 >>> c.disarm() -----component---------- >>> from sonic_platform.component import Component >>> c=Component() t_description() c.get_firmware_version() >>> c.get_name() 'BIOS' >>> c.get_description() 'Performs initialization of hardware components during booting' >>> c.get_firmware_version() '3.40.0.B-12' >>> ---------Eeprom---------- >>> from sonic_platform.eeprom import Eeprom rial_number_str() c.base_mac_addr() c.modelstr() c.serial_str() c.revision_str() c.system_eeprom_info() >>> c=Eeprom() >>> c.serial_number_str() 'CN01WJVTCES0094Q0019' >>> c.modelstr() 'S5232F-ON' >>> c.serial_str() 'H6RZZP2' >>> c.revision_str() '\x01' >>> c.system_eeprom_info() {'0xFE': '0x854E197C', '0x28': 'x86_64-dellemc_s5232f_c3538-r0', '0x29': '3.40.1.3-7', '0x22': '01WJVT', '0x23': 'CN01WJVTCES0094Q0019', '0x21': 'S5232F-ON', '0x26': '1', '0x27': 'A00', '0x24': '3C:2C:30:6D:7E:80', '0x25': '05/09/2019 01:47:28', '0x2B': 'CES00', '0x2C': 'CN', '0xFD': '674', '0x2A': '384', '0x2F': 'H6RZZP2', '0x2D': 'Dell EMC', '0x2E': '3.00.3.43-3'} >>> ---------------Fan--------- >>> from sonic_platform.fan import Fan >>> c=Fan() us() c.get_direction() c.get_speed() c.get_name() c.get_model() c.get_serial() >>> c.get_presence() True >>> c.get_status() False >>> c.get_direction() 'NA' >>> c.get_speed() 39 >>> c.get_name() 'FanTray2-Fan2' >>> c.get_model() '0CNY0XA00' >>> c.get_serial() 'CN0CNY0XCES009480071' >>> ---------------PSU------- >>> from sonic_platform.psu import Psu >>> c=Psu(0) c.get_serial() c.get_status() c=Psu(1) c.get_status() c.get_serial() c.get_model() c.get_current() c.get_p>>> c.get_name() 'PSU1' >>> c.get_model() '02RPHXA00' >>> c.get_serial() 'CNDED0092L00KB' >>> c.get_status() True >>> c=Psu(1) >>> c.get_status() True >>> c.get_serial() 'CNDED0092L00HX' >>> c.get_model() '02RPHXA00' >>> c.get_current() '6.0' >>> c.get_power() '70.0' >>> c.get_powergood_status() True >>> -------------SFP------- >>> from sonic_platform.sfp import Sfp ','/sys/class/i2c-adapter/i2c-0/0-0050/eeprom') c.get_temperature() c.get_model(>>> c=Sfp(0,'QSFP','/sys/class/i2c-adapter/i2c-0/0-0050/eeprom') >>> c.get_temperature() '34.0234C' >>> c.get_model() '1.3-7.\x0b3.00.3.43' >>> c.get_transceiver_bulk_status() {'rx4power': '2.3606dBm', 'tx3power': 'N/A', 'tx_disable_channel': '0x1', 'temperature': '34.0234C', 'tx2power': 'N/A', 'rx_los': False, 'power_lpmode': False, 'rx1power': '0.9121dBm', 'tx1power': 'N/A', 'tx_fault': False, 'tx2bias': '24.6900mA', 'rx2power': '3.4920dBm', 'voltage': '2.2346Volts', 'tx_disable': False, 'tx4bias': '24.6720mA', 'reset_status': True, 'tx3bias': '26.7860mA', 'rx3power': '3.4439dBm', 'tx1bias': '42.5920mA', 'tx4power': 'N/A'} >>> c.get_transceiver_info() {'specification_compliance': "{'Fibre Channel Speed': '100 Mbytes/Sec', '10/40G Ethernet Compliance Code': '10GBase-LR', 'SAS/SATA compliance codes': 'SAS 3.0G', 'Fibre Channel link length/Transmitter Technology': 'Intermediate distance (I)', 'Fibre Channel transmission media': 'Miniature Coax (MI)', 'SONET Compliance codes': '40G OTN (OTU3B/OTU3C)', 'Gigabit Ethernet Compliant codes': '1000BASE-CX'}", 'encoding': 'Unknown', 'vendor_oui': '34-30-2e', 'cable_type': 'Length Cable Assembly(m)', 'vendor_date': '20\xff\xff-\xff\xff-\xff\xff \xff\xff', 'type_abbrv_name': 'Unknown', 'connector': 'Unknown', 'nominal_bit_rate': '108', 'ext_identifier': 'Unknown', 'cable_length': '115', 'ext_rateselect_compliance': 'Unknown', 'model': '1.3-7.\x0b3.00.3.43', 'type': 'Unknown', 'hardware_rev': '-3', 'serial': '\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff', 'manufacturer': '232f_c3538-r0)\n3'} >>> c.get_voltage() '2.2346Volts' >>> c.get_tx_bias() ['42.5920mA', '24.6900mA', '26.7860mA', '24.6720mA'] >>> -----------Thermal---------- >>> from sonic_platform.thermal import Thermal >>> c=Thermal(0) >>> c.get_name() 'CPU On-board' 1) c.get_presence() c.get_name() c=Thermal(2) c.get_name() c=Thermal(3) c.get_name() c=Thermal(4) c.get_name() c=Thermal(5) c.get_name() c=Thermal(6) c.get_name() c=Thermal(7) c.get_name() c=Thermal(0) c.get_name() c.get_temperature() c.get_high_threshold() c.get_low_threshold()>>> c.get_presence() True >>> c=Thermal(1) >>> c.get_presence() True >>> c.get_name() 'ASIC On-board' >>> c=Thermal(2) >>> c.get_name() 'System Front Left' >>> c=Thermal(3) >>> c.get_name() 'System Front Middle' >>> c=Thermal(4) >>> c.get_name() 'System Front Right' >>> c=Thermal(5) >>> c.get_name() 'Inlet Airflow Sensor' >>> c=Thermal(6) >>> c.get_name() 'PSU1 Airflow Sensor' >>> c=Thermal(7) >>> c.get_name() 'PSU2 Airflow Sensor' >>> c=Thermal(0) >>> c.get_name() 'CPU On-board' >>> c.get_temperature() '36.000' >>> c.get_high_threshold() '0.000' >>> c.get_low_threshold() '0.000' >>> ----------Chassis------------ >>> from sonic_platform.chassis import Chassis >>> c=Chassis() c.get_serial() c.get_base_mac() c.get_sfp(1) c.get_sfp(30) c.get_sfp(31) c.get_sfp(34) c.get_sfp(35)>>> c.get_name() 'S5232F-ON' >>> c.get_model() '01WJVT' >>> c.get_serial() 'H6RZZP2' >>> c.get_base_mac() '3c:2c:30:6d:7e:80' >>> c.get_sfp(1) >>> c.get_sfp(30) >>> c.get_sfp(31) >>> c.get_sfp(34) >>> c.get_sfp(35) SFP index 35 out of range (0-33) >>>