Attributes not getting discovered for Linux machines

 

Hi,

I am using HP UD 10.10 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.

 

 - 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

 

Please can you help me in resolving this issue.

 

Thanks in advance.

 

Top Replies

Parents
  • 0  

    Hi Student2912,

     

    Could you share with me the communicaiton log of 3 job and which CP that you are using?

     

    Best regards,

    Hoang.

  • 0   in reply to Hoang_Nguyen_BA

    Hi,

     

    I am using HP UD 10.10 CP 13.0.1179 on Windows OS.

     

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

     

    I see the below error in the Communication log for 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 am using the sudo user in the SSH protocol.

     

    Thanks in advance.

  • 0   in reply to MigrationDeletedUser

    I mentioned that error in my post above.

     

    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>

  • 0   in reply to Rey_L

    Hi Rey,

     

    I tried the solution suggested by you. Created new versions of these scripts and updated the section as mentioned.

     

    Replaced these scripts in the Adapter and Rerun the "Host Connection By Shell" job.

     

    But received an error for the Linux CI's as below.

     

    << Progress message, Severity: Error>>
    SSH: Command timed out.

     

    Thanks in advance.

Reply
  • 0   in reply to Rey_L

    Hi Rey,

     

    I tried the solution suggested by you. Created new versions of these scripts and updated the section as mentioned.

     

    Replaced these scripts in the Adapter and Rerun the "Host Connection By Shell" job.

     

    But received an error for the Linux CI's as below.

     

    << Progress message, Severity: Error>>
    SSH: Command timed out.

     

    Thanks in advance.

Children
No Data