Highlighted
Absent Member.. Absent Member..
Absent Member..
244 views

Linux machine attributes not getting discovered in UCMDB

Hi,

I am using HP UD 10.10 CP: 13.0.1179 on Windows OS
 
I have performed the discovery for Linux devices. I am getting the data for some attributes but I am not able to get the data for below attributes for Linux devices.
   - Serial Number
   - Discovered Vendor
   - Discovered Model
   - Domain Name
 
I have executed the below jobs.
   - Ranges by ICMP
   - Host Connection by Shell
   - Host Resources by Shell
 
The user configured in the ssh protocol is a "sudo" user.
Please can you help by providing inputs on how to resolve this.

Thanks in advance.

0 Likes
6 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: Linux machine attributes not getting discovered in UCMDB

Hello,

 

Could you please provide communication logs from Host Connection by Shell and Host Resources by Shell jobs.

 

Regards,

Irina

 

 

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Linux machine attributes not getting discovered in UCMDB

It would be nice to know what is destination Linux OS distro and version are?

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Linux machine attributes not getting discovered in UCMDB

Hi,

 

Attaching the Linux machine version details captured by UCMDB.

 

 

Thanks..

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Linux machine attributes not getting discovered in UCMDB

Hi,

 

Attached the screenshot.

 

Thanks..

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Linux machine attributes not getting discovered in UCMDB

Hi,

 

PFA the Communication logs for Host Connection by Shell and HRA by Shell.

 

I can see the below error in the Host Connection by Shell.

 

<CMD>[CDATA&colon; dmidecode -t system | grep -A 6 "System Information" ; echo ERROR_CODE:$?]</CMD>
		<RESULT>[CDATA&colon; /dev/mem: Permission denied

 

I have configured sudo user in the ssh protocol.

 

Thanks in advance

 

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Linux machine attributes not getting discovered in UCMDB

In the SSH protocol definition, specify the path to the sudo command itself and then list the commands to run with sudo (seperated by comma):

 
   User Name: probelogin

    Sudo paths: /usr/bin/sudo
    Sudo commands: dmidecode

Then on the systems, set the /etc/sudoers file like this:

    probelogin ALL=(root) NOPASSWD:/usr/sbin/dmidecode


This example uses publickey authentication, so the 'NOPASSWD' is specified, but you could do similar with a login/password combination.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.