LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Searching for RHEL7 replacement for HAL commands (https://www.linuxquestions.org/questions/linux-software-2/searching-for-rhel7-replacement-for-hal-commands-4175590892/)

blueh2o 10-06-2016 11:40 AM

Searching for RHEL7 replacement for HAL commands
 
I had been using HAL to gather system information, and now that HAL is gone in EL7-based distros, I am having trouble finding a replacement. Specifically, for:

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid

which had allowed me to gather the UUID of the system without needing elevated privileges. Also, I have yet to find a replacement for

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.product

and

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.board.product

If anyone has, or can think of, a way to get this data without root access, please share!

TB0ne 10-06-2016 12:19 PM

Quote:

Originally Posted by blueh2o (Post 5614702)
I had been using HAL to gather system information, and now that HAL is gone in RHEL7, I am having trouble finding a replacement. Specifically, for:

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid

which had allowed me to gather the UUID of the system without needing elevated privileges. Also, I have yet to find a replacement for

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.product

and

hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.board.product

If anyone has, or can think of, a way to get this data without root access, please share!

The first question I have is, did you contact Red Hat and ask? RHEL7 is a commercial, PAY-FOR distro, and when you pay, you get support. This is covered in Red Hat's knowledgebase, which you have access to as a paying customer.

And I'd check into the udevadm command if I was you.

blueh2o 10-06-2016 12:32 PM

Apologies. I should say, all RHEL based distros. I'll edit the post.

blueh2o 10-06-2016 01:09 PM

I guess we may have to switch to using machine-id. At least I can read most of the missing info from /sys/devices/virtual/dmi/id/.


All times are GMT -5. The time now is 02:42 PM.