UCMDB and UD Practitioners Forum (Previously CMS)

HP UCMDB Unix discovery issue

Respected Contributor.

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,




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


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
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:





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



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: *****************


Rey Lejano