Serial Number in Linux not getting discovered.

Insomaniac
Kilo Expert

Version : London

Hi Experts,

I am trying to discover the linux system in the environment. I am not getting the serial number for the machine.

When i tried with the putty , access as username & password. I am able to run the command 

"dmidecode -t system" I am able to get the ouput but when i run through the discovery 
in the payload i am getting the below.
<result>
<output>{"related_data":{"modules":[]}}</output>
</result>
but there is no serial number in payload nor in serial number field. Is this the desired output.

Also when i try to access the host through the ppk authentication. I am getting the below

<results error="Terminal is being asked for a password, and we don't know it" probe_time="11315" result_code="900000">
<result error="Terminal is being asked for a password, and we don't know it">
<output/>

Linux Team confirmed they have the given the permission like below:

ALL=(root:root) NOPASSWD: /usr/sbin/dmidecode, /usr/sbin/lsof, /sbin/fdisk -l, /sbin/dmsetup table *, /sbin/multipath -ll

IN this i am able to scan the CI & a CI is getting created too  but not able to get the serial number in both the cases.
Could anyone let me know what went wrong in this.


 

1 ACCEPTED SOLUTION

Insomaniac
Kilo Expert

Ahhhh 

There was a property which needs to be enabled 

MID server property mid.property.ssh.use_snc

This resolved the issue we were facing 

View solution in original post

4 REPLIES 4

PVK1
Mega Sage

First, I am surprised you got root credentials to run discovery.

To get Serial Number please try below command. 

sudo dmidecode -t system | grep Serial

Also if possible try to load the URL with your Server IP and share the screenshot

https://<YOUR INSTANCE>/SaCmdManager.do?ip=<YOUR SERVER IP>

 

 

 

 

Hi,

 

Thanks for the reply.

But my question is that the output which i am getting 

<result>
<output>{"related_data":{"modules":[]}}</output>
</result>

This output is from the payload XML of that device. Is this the desired output through which it populate the serial number in the field.

Shekhar Deshing
Mega Expert

You can try with following commands 

sudo dmidecode -t system | grep Serial

Please check this URL if you can get something from this
https://community.hpe.com/t5/System-Administration/How-to-get-Serial-number-in-Linux-w-o-using-dmidecode/td-p/6372623#.XI91jSIzbIU

Following is example you can retrive serial number without dmidecode

sudo cat /sys/class/dmi/id/board_serial sudo cat /sys/class/dmi/id/chassis_serial sudo cat /sys/class/dmi/id/product_serial
Which Linux Version you are using ? please makr as helpful or if you are getting any solution on this.

Insomaniac
Kilo Expert

Ahhhh 

There was a property which needs to be enabled 

MID server property mid.property.ssh.use_snc

This resolved the issue we were facing