Highlighted
Absent Member.. Absent Member..
Absent Member..
829 views

HP UCMDB Unix discovery issue

HI Experts,

 

We have discovered Unix machines with Host resources and host applications by shell.However we are not able to get Discovered vendor and model name.

 

Its urgent .Can anybody please help

 

Warm regards,

Milap

 

 

P.S. This thread has been moevd from ITRC DDM Inventory (Enterprise Discovery) Forum to CMS and Discovery Support and News Forum. - Hp Forum Moderator

0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: HP UCMDB Unix discovery issue

Believe you need dmidecode. Your ouptut will look something like this.
# dmidecode 2.12
SMBIOS 2.8 present.
 
Handle 0x0100, DMI type 1, 27 bytes
System Information
        Manufacturer: HP
        Product Name: ProLiant BL460c Gen8
        Version: Not Specified
        Serial Number: SGH@@@@@@@@@@@
        UUID: 30313436-3631-4753-4833-3@@@@@@@@@@
        Wake-up Type: Power Switch
        SKU Number: 641016-B21
        Family: ProLiant
 
Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected
0 Likes
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: HP UCMDB Unix discovery issue

under_score is correct.

 

Here are details in the script changes to use sudo for dmidecode, this is from my previous post about this issue:

 

To fix this, I edited the TTY_Connection_Utils.py and HostConnectionByShell.py scripts.

 

Its advised you create your own version of these scripts and do not alter the OOTB scripts.

So I recreated the script with a different name.

 

In your version of TTY_Connection_Utils.py find this section

 

Edit dmiDecodeCommand to the following:

 

In HostConnectionbyShell.py

Edit the 2 lines that contain the TTY_Connection_Utils so that it references the edited version:

 

and

 

 

Edit the adapter used by Host Connection by Shell to use the edited versions of the scripts

 

Rerun Host Connection by Shell.


The communication log previously errored at dmidecode:


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

 

 

The script changes will return results:

 

CMD>[CDATA&colon; sudo /usr/sbin/dmidecode -t system | grep -A 6 "System Information" ; echo ERROR_CODE:$?]</CMD>
<RESULT>[CDATA&colon; System Information
Manufacturer: *************************************
Product Name: *******************************
Version: *************************
Serial Number: *****************************
UUID: ***********************************
Wake-up Type: *****************

ERROR_CODE:0]</RESULT>

Rey Lejano

effectualsystems.com
0 Likes
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.