[SFS] Hardware Inventory
Richard Glazier
glazier@gmail.com
Fri, 3 Feb 2017 14:49:45 -0700
--001a1143e17897f8e20547a74270
Content-Type: text/plain; charset=UTF-8
This will get all hosts (HBAs) for FC. If you know the WWN for the HBA, you
might ties it back that way.
*cat /sys/class/scsi_host/host*/device/fc_host/host*/node_name*
You can also grep out by pci and/or manufacturer in dmidecode for the
make/model of the FC HBA. But the card may be OEMed, so that an emulex card
will actually say IBM or HP or whatever.
If it's a Qlogic card, and you have their SanSurfer utility loaded (there
is a linux install), it will give you all of that info.
As far as system make/model information, you can do a dmidecode, as I just
did on my Dell laptop..
*[jimidak@localhost ~]$ sudo dmidecode -s system-product-nameXPS 13 9360*
The laptop is running Fedora 25, but the dmidecode command will work on
Centos6/7 or RHEL6/7. Not sure on other Linuxes.
On Fri, Feb 3, 2017 at 2:29 PM, Matt James <matuse@gmail.com> wrote:
> SFSers,
> So, for those of you who have been to Linux Camp, you'll be familiar
> with the the hardware inventory lab. Well, it's come time for me to do
> this IRL.
>
> Couple of things I'm looking for some pointers on if someone has already
> done this:
>
> 1) How can I get the server brand / model? We have Dell, HP, and IBM /
> Lenovo servers.
> 2) How can I reliably cross device ID / etc. to an actual card? I'm
> specifically concerned about storage HBAs (Fiber Channel, SAS, and iSCSI -
> Emulex, Qlogic, LSI)
>
> Thanks in advance
>
> Matt
>
--001a1143e17897f8e20547a74270
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:courier =
new,monospace">This will get all hosts (HBAs) for FC. If you know the WWN f=
or the HBA, you might ties it back that way.=C2=A0 <br><br><code><strong><f=
ont style=3D"color:blue">cat /sys/class/scsi_host/host*/device/fc_host/host=
*/node_name</font></strong></code><br><code><strong><br></strong></code></d=
iv><div class=3D"gmail_default" style=3D"font-family:courier new,monospace"=
><code>You can also grep out by pci and/or manufacturer in dmidecode for th=
e make/model of the FC HBA. But the card may be OEMed, so that an emulex ca=
rd will actually say IBM or HP or whatever.<br><br></code></div><div class=
=3D"gmail_default" style=3D"font-family:courier new,monospace"><code>If it&=
#39;s a Qlogic card, and you have their SanSurfer utility loaded (there is =
a linux install), it will give you all of that info.<br><br></code></div><d=
iv class=3D"gmail_default" style=3D"font-family:courier new,monospace"><cod=
e>As far as system make/model information, you can do a dmidecode, as I jus=
t did on my Dell laptop..<br><br></code><br><code><code><strong><font style=
=3D"color:blue"><code><strong><font style=3D"color:blue">[jimidak@localhost=
~]$ sudo dmidecode -s system-product-name<br>XPS 13 9360</font></strong></=
code></font></strong></code><br><br><br></code></div><div class=3D"gmail_de=
fault" style=3D"font-family:courier new,monospace"><code>The laptop is runn=
ing Fedora 25, but the dmidecode command will work on Centos6/7 or RHEL6/7.=
Not sure on other Linuxes. <br></code></div></div><div class=3D"gmail_extr=
a"><br><div class=3D"gmail_quote">On Fri, Feb 3, 2017 at 2:29 PM, Matt Jame=
s <span dir=3D"ltr"><<a href=3D"mailto:matuse@gmail.com" target=3D"_blan=
k">matuse@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><div dir=3D"ltr"><div><div><div><div><div><div>SFSers,<br></div>=C2=A0=C2=
=A0=C2=A0 So, for those of you who have been to Linux Camp, you'll be f=
amiliar with the the hardware inventory lab.=C2=A0 Well,=C2=A0 it's com=
e time for me to do this IRL.<br><br></div>Couple of things I'm looking=
for some pointers on if someone has already done this:<br><br></div>1) How=
can I get the server brand / model?=C2=A0 We have Dell, HP, and IBM / Leno=
vo servers.<br></div>2) How can I reliably cross device ID / etc. to an act=
ual card?=C2=A0 I'm specifically concerned about storage HBAs (Fiber Ch=
annel, SAS, and iSCSI - Emulex, Qlogic, LSI)<br><br></div>Thanks in advance=
<span class=3D"HOEnZb"><font color=3D"#888888"><br><br></font></span></div>=
<span class=3D"HOEnZb"><font color=3D"#888888">Matt<br></font></span></div>
</blockquote></div><br></div>
--001a1143e17897f8e20547a74270--