Manage devices available on the platform
IOx devices may support peripheral devices like serial or usb ports and make it available for applications. ioxclient provides a few CLIs to view and manage these devices.
List all devices available on the platform
$ ioxclient platform device list
Currently active profile : local
Command Name: plt-device-list
-------------Device Info----------------
{
"ds_dev_ids": {},
"serial": [
{
"available": true,
"device_id": "/dev/ttyS2",
"device_name": "async1",
"port": null,
"slot": null,
"type": "serial",
"used_by": null
},
{
"available": true,
"device_id": "/dev/ttyS1",
"device_name": "async0",
"port": null,
"slot": null,
"type": "serial",
"used_by": null
}
],
"usbdev": [],
"usbport": []
}
List devices of a specific type
$ ioxclient platform device list serial
Currently active profile : local
Command Name: plt-device-list
-------------Device Info (serial)----------------
{
"serial": [
{
"available": true,
"device_id": "/dev/ttyS2",
"device_name": "async1",
"port": null,
"slot": null,
"type": "serial",
"used_by": null
},
{
"available": true,
"device_id": "/dev/ttyS1",
"device_name": "async0",
"port": null,
"slot": null,
"type": "serial",
"used_by": null
}
]
}
View platform device configuration
$ ioxclient platform device get_config
Currently active profile : local
Command Name: plt-device-get_config
-------------Device Configuration----------------
{
"console": {
"enabled": true,
"group_name": "libvirtd",
"setup_script": "setupconsole.sh",
"teardown_script": "teardownconsole.sh",
"user_name": "appconsole"
},
"scp": {
"enabled": true,
"setup_script": "setupscpuser.sh",
"teardown_script": "teardownscpuser.sh",
"user_name": "scpuser"
},
"serial": [
{
"device_id": "/dev/ttyS1",
"device_name": "async0",
"setup_script": null,
"teardown_script": null
},
{
"device_id": "/dev/ttyS2",
"device_name": "async1",
"setup_script": null,
"teardown_script": null
}
],
"supported_device_types": [
"serial"
]
}