The InfiniBox Object

Getting System Name and Serial Number

The system name and serial numbers can be obtained directly from the infinisdk.infinibox.InfiniBox object:

>>> system_name = system.get_name()
>>> system_serial = system.get_serial()

Getting the System Model Name

The infinisdk.infinibox.InfiniBox.get_model_name() method retrieves the model information, as reported by the system:

>>> isinstance(system.get_model_name(), str)
True

Opening and Closing SSH Ports

You can open/close the SSH ports of the system as well as querying its status by:

>>> system.open_ssh_ports()  
>>> system.close_ssh_ports()  
>>> system.get_ssh_ports_status()