HP UCMDB Unix discovery issue (252 Views)
Reply
Frequent Advisor
Milap
Posts: 60
Registered: ‎02-06-2012
Message 1 of 3 (252 Views)

HP UCMDB Unix discovery issue

[ Edited ]

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

Occasional Contributor
under_score
Posts: 4
Registered: ‎06-15-2014
Message 2 of 3 (166 Views)

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
Frequent Advisor
Rey_L
Posts: 42
Registered: ‎05-14-2012
Message 3 of 3 (155 Views)

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

dmidecode_original.png

 

Edit dmiDecodeCommand to the following:

dmidecode_edited.png

 

In HostConnectionbyShell.py

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

hostconnectionbyshell1.png

 

and

 

hostconnectionbyshell2.png

 

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.