Error - sudo: dmidecode: command not found

RajeshGummadoju
Tera Contributor

Serial Number information is missing for some of Linux Servers.

Error - sudo: dmidecode: command not found

we have tried runing  sudo /usr/sbin/dmidecode -t 1 | cat and getting results.

However the same OOB command(sudo dmidecode -t 1 | cat) is working fine for other Linux Servers.

We have tried using mid property mid.ssh.disable_privilege_check parameter but still facing the same issue.

Please let me know your thoughts, thanks in advance.

Best Regards,

RajeSh

5 REPLIES 5

Vivektietsood
Tera Guru
Tera Guru

Would it be possible for you to give details on which Linux systems demidecode works and which doesnt.?

Usually, Dmidecode is available for all the Linux like systems (RHEL, CentOS, Debian and SUSE).But there are some versions where the relevant info is not returned (RHEL 5,6 or HP ProLiant Server Series)

Please refer to the following link:

https://access.redhat.com/solutions/500923

The other options can be to install lshw OR hardinfo pkgs on a couple of systems and try to find serial number through those

The other option to try is installing a tool called - facter