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.

 

Parents
  • Hi Student2912,

     

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

     

    Best regards,

    Hoang.

  • 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.

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

Reply
  • 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>

Children