Obtain Info from Command Line Any SO

  Sin categoría

ESXI VMWARE

smbiosDump Este comando nos permite obtener informacion sobre el Hardware instalado en el equipo, por ejemplo para obtener un listado de la memoria instalada en el host:

smbiosDump | grep Size

Size: 0x00018
ROM Size: 1024 kB
Max. Size: 128 kB
Current Size: 128 kB
Max. Size: 12288 kB
Current Size: 12288 kB
Max. Size: 64 GB
Size: 2 GB
Size: 4 GB
Size: 2 GB
Size: 4 GB
Size: No Memory Installed
Size: No Memory Installed
Size: No Memory Installed
Size: No Memory Installed

Como se puede comprobar con este comando sabemos que tenemos 12 GB Instalados en 4 Socket con 2 memorias de 4 y 2 memorias de 2.

Centos

yum install -y lshw
lshw -short
H/W path              Device     Class      Description
=======================================================
                                 system     PowerEdge 2900 ()
/0                               bus        0TM757
/0/0                             memory     64KiB BIOS
/0/400                           processor  Intel(R) Xeon(R) CPU            5120  @ 1.86GHz
/0/400/700                       memory     64KiB L1 cache
/0/400/701                       memory     4MiB L2 cache
/0/400/1.1                       processor  Logical CPU
/0/400/1.2                       processor  Logical CPU
/0/401                           processor  CPU [empty]
/0/1000                          memory     2GiB System Memory
/0/1000/0                        memory     512MiB FB-DIMM DDR2 FB-DIMM Synchronous 533 MHz (1.9 ns)
/0/1000/1                        memory     512MiB FB-DIMM DDR2 FB-DIMM Synchronous 533 MHz (1.9 ns)
/0/1000/2                        memory     512MiB FB-DIMM DDR2 FB-DIMM Synchronous 533 MHz (1.9 ns)
/0/1000/3                        memory     512MiB FB-DIMM DDR2 FB-DIMM Synchronous 533 MHz (1.9 ns)
/0/1000/4                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/5                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/6                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/7                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/8                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/9                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/a                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1000/b                        memory     FB-DIMM DDR2 FB-DIMM Synchronous [empty]
/0/1                             processor  
/0/1/1.1                         processor  Logical CPU
/0/1/1.2                         processor  Logical CPU
/0/100                           bridge     5000X Chipset Memory Controller Hub
/0/100/2                         bridge     5000 Series Chipset PCI Express x4 Port 2
/0/100/2/0                       bridge     6311ESB/6321ESB PCI Express Upstream Port
/0/100/2/0/0                     bridge     6311ESB/6321ESB PCI Express Downstream Port E1
/0/100/2/0/0/0                   bridge     EPB PCI-Express to PCI-X Bridge
/0/100/2/0/0/0/0      eth1       network    NetXtreme II BCM5708 Gigabit Ethernet
/0/100/2/0/1                     bridge     6311ESB/6321ESB PCI Express Downstream Port E2
/0/100/2/0.3                     bridge     6311ESB/6321ESB PCI Express to PCI-X Bridge
/0/100/3                         bridge     5000 Series Chipset PCI Express x4 Port 3
/0/100/4                         bridge     5000 Series Chipset PCI Express x4 Port 4
/0/100/5                         bridge     5000 Series Chipset PCI Express x4 Port 5
/0/100/5/0                       bridge     80333 Segment-A PCI Express-to-PCI Express Bridge
/0/100/5/0/e          scsi0      storage    PowerEdge Expandable RAID controller 5
/0/100/5/0/e/2.0.0    /dev/sda   disk       499GB PERC 5/i
/0/100/5/0/e/2.0.0/1  /dev/sda1  volume     101MiB EXT3 volume
/0/100/5/0/e/2.0.0/2  /dev/sda2  volume     465GiB Linux LVM Physical Volume partition
/0/100/5/0.2                     bridge     80333 Segment-B PCI Express-to-PCI Express Bridge
/0/100/6                         bridge     5000 Series Chipset PCI Express x8 Port 6-7
/0/100/7                         bridge     5000 Series Chipset PCI Express x4 Port 7
/0/100/1c                        bridge     631xESB/632xESB/3100 Chipset PCI Express Root Port 1
/0/100/1c/0                      bridge     EPB PCI-Express to PCI-X Bridge
/0/100/1c/0/0         eth0       network    NetXtreme II BCM5708 Gigabit Ethernet
/0/100/1d                        bus        631xESB/632xESB/3100 Chipset UHCI USB Controller #1
/0/100/1d/1           usb2       bus        UHCI Host Controller
/0/100/1d.1                      bus        631xESB/632xESB/3100 Chipset UHCI USB Controller #2
/0/100/1d.1/1         usb3       bus        UHCI Host Controller
/0/100/1d.2                      bus        631xESB/632xESB/3100 Chipset UHCI USB Controller #3
/0/100/1d.2/1         usb4       bus        UHCI Host Controller
/0/100/1d.3                      bus        631xESB/632xESB/3100 Chipset UHCI USB Controller #4
/0/100/1d.3/1         usb5       bus        UHCI Host Controller
/0/100/1d.7                      bus        631xESB/632xESB/3100 Chipset EHCI USB2 Controller
/0/100/1d.7/1         usb1       bus        EHCI Host Controller
/0/100/1d.7/1/7                  bus        CY7C65640 USB-2.0 "TetraHub"
/0/100/1e                        bridge     82801 PCI Bridge
/0/100/1e/d                      display    ES1000
/0/100/1f                        bridge     631xESB/632xESB/3100 Chipset LPC Interface Controller
/0/100/1f.1                      storage    631xESB/632xESB IDE Controller
/0/100/1f.1/0         ide0       bus        IDE Channel 0
/0/100/1f.1/0/0       /dev/hda   disk       TSSTcorp CD-RW/DVD-ROM TS-H492C
/0/101                           bridge     5000 Series Chipset FSB Registers
/0/102                           bridge     5000 Series Chipset FSB Registers
/0/103                           bridge     5000 Series Chipset FSB Registers
/0/104                           bridge     5000 Series Chipset Reserved Registers
/0/105                           bridge     5000 Series Chipset Reserved Registers
/0/106                           bridge     5000 Series Chipset FBD Registers
/0/107                           bridge     5000 Series Chipset FBD Registers