This tutorial demonstrates how to use the Element Service Set to access the properties of the network element.
To see the Element Property attributes of a network element, your application must have the following information available:
Create a connection to the network element. Get the element properties of the network element.
element_property = tutorial.get_network_element().properties tutorial.get_element_property_attributes(element_property)
Get the processor of the element property of the network element.
processor = element_property.processor
Get the product ID (PID) of the element property of the network element.
product_id = element_property.product_id
Get the serial number of the element property of the network element.
serial_no = element_property.SerialNo
Get the description of the element property of the network element.
sys_descr = element_property.sys_descr
Get the system name of the element property of the network element.
sys_name = element_property.sys_name
Get the system uptime of the element property of the network element.
sys_uptime = element_property.sys_uptime
Congratulations! Now you are able to get the property and the property 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/ElementProcessTutorial.py.