This tutorial demonstrates the network element Field Replaceable Unit (FRU) functionality of the Element Service Set.
The code used in this tutorial is available in the FRUTutorial.py file located under <SDK Location>/python/tutorials/element.
These steps assume the application can connect properly to a network element. Please see the Connecting to a Network Element tutorial for information on how to make the initial connection.
Create a connection to the network element. Get a FRU List of the network element.
fru_list = tutorial.get_network_element().get_fru_list()
Get the alarm type of the FRU of the network element.
logger.info("FRU alarm type - " + fru.alarm_type)
Get the firmware version of the FRU of the network element.
logger.info("FRU Firmware Version - " + fru.fw_version)
Get the hardware version of the FRU of the network element.
logger.info("FRU Hardware Version - " + fru.hw_version)
Get the part number of the FRU of the network element.
logger.info("FRU Part Number - " + fru.part_no)
Get the PID of the FRU of the network element.
logger.info("FRU product Identifier (PID) - " + fru.product_id )
Get the serial number of the FRU of the network element.
logger.info("FRU Serial Number (SN) - " + fru.serial_no)
Get the slot number of the FRU of the network element.
logger.info("FRU slot number - " + str(fru.slot))
Get the software version of the FRU of the network element.
logger.info("FRU Software Version - " + fru.sw_version)
Congratulations! Now you are able to get the FRU list and the FRU attributes of the network element.
To try out this tutorial code by compiling and running it, you can find the code located at: <SDK Location>/python/tutorials/element/FRUTutorial.py.