LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2016, 10:40 AM   #1
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Rep: Reputation: 3
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!

Last edited by blueh2o; 10-06-2016 at 11:33 AM.
 
Old 10-06-2016, 11:19 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,193

Rep: Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127Reputation: 7127
Quote:
Originally Posted by blueh2o View Post
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.
 
Old 10-06-2016, 11:32 AM   #3
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Original Poster
Rep: Reputation: 3
Apologies. I should say, all RHEL based distros. I'll edit the post.
 
Old 10-06-2016, 12:09 PM   #4
blueh2o
Member
 
Registered: Jul 2011
Distribution: CentOS, Ubuntu, Fedora, Solaris, RHEL, Debian
Posts: 100

Original Poster
Rep: Reputation: 3
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/.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install RHEL7 KVM onto RHEL7 desktop redhatprat Red Hat 10 02-18-2015 03:44 AM
Searching for linux commands with short names. stf92 LQ Suggestions & Feedback 4 07-29-2012 12:52 PM
Replacement For Veritas commands with Scripts or Utility vm_devadas Linux - Server 0 10-11-2006 09:12 AM
What is the replacement for sizeof() in the third argument for IOCTL commands yogeshwar_s Linux - Software 0 12-30-2004 07:48 AM
searching a book which has an overview over consol commands prisch Linux - Software 5 02-16-2004 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration