The Element Service Set is the core device model for the onePK system. The network element represents the hardware that hosts the network operating system and that provides network services to onePK applications. The application connects to the network element and this connection (session) is managed by the Element Service Set. Once the application has been authenticated and authorized, it can access the network element information and other service sets. Network Element information that the Element Service Set provides includes:
The following code snippets illustrate the basic network element functionality such as system attributes. The links to the tutorials below demonstrate additional functions of the Network Element Service Set.
Check if the network element is connected.
tutorial.is_network_element_connected(tutorial.get_network_element())
Get the free system memory of a network element.
tutorial.get_free_system_memory(tutorial.get_network_element())
Get the total system memory of a network element.
tutorial.get_total_system_memory(tutorial.get_network_element())
Get the total CPU utilization of a network element.
tutorial.get_system_cpu_utilization(tutorial.get_network_element())
Get the parent network application that instantiated this network element.
parent = tutorial.network_element.parent logger.info("NetworkElement parent - %s", parent.name)
Get a string representation of the network element.
print tutorial.network_element.__str__()
Element Property Tutorial | Getting the properties of the network element and attributes of the property. |
Element Process Tutorial | Getting the process details of the network element and attributes of the process. |
FRU Tutorial | Getting the Field Replaceable Unit (FRU) details of the network element and attributes of the FRU. |