diagnose hardware
Use these commands to retrieve the hardware configuration.
diagnose hardware deviceinfo disk Display information for all disks. diagnose hardware deviceinfo nic Display NIC information. diagnose hardware ioport Read and write data using the input/output port. diagnose hardware pciconfig Get PCI information. diagnose hardware setpci <arguments> Set PCI parameters. diagnose hardware lspci <arguments> List PCI parameters. diagnose hardware sysinfo cpu Display detailed information for all installed CPU(s). diagnose hardware sysinfo memory Display system memory information. diagnose hardware sysinfo interrupts Display system interrupts information. diagnose hardware sysinfo iomem Display memory map of I/O ports. diagnose hardware sysinfo ioports Display address list of I/O ports. diagnose hardware sysinfo mtrr Display memory type range register. diagnose hardware sysinfo slab Display memory allocation information. diagnose hardware sysinfo conserve Display information about memory conservation status. diagnose hardware certificate Verify certificates.
Example output
This is sample output of the diagnose hardware deviceinfo disk
command:
# diagnose hardware deviceinfo disk
Disk HD1 ref: 255 1.8TiB1863.0GiB type: SSD [ATA TOSHIBA MG03ACA2] dev: /dev/sda
partition ref: 1 521.6GiB, 521.5GiB free mounted: Y label: MIXEDXXXE270E5CE dev: /dev/sda1 start: 2048
partition ref: 2 531.0GiB, 531.0GiB free mounted: N label: dev: /dev/sda2 start: 1113503744
partition ref: 3 707.9GiB, 707.9GiB free mounted: N label: dev: /dev/sda3 start: 2227005440
Disk HD2 ref: 16 1.8TiB1863.0GiB type: SSD [ATA TOSHIBA MG03ACA2] dev: /dev/sdb
partition ref: 17 521.6GiB, 521.6GiB free mounted: Y label: WANOPTXX19917002 dev: /dev/sdb1 start: 2048
partition ref: 18 531.0GiB, 531.0GiB free mounted: N label: dev: /dev/sdb2 start: 1113503744
partition ref: 19 707.9GiB, 707.9GiB free mounted: N label: dev: /dev/sdb3 start: 2227005440
Disk USB-6(boot) ref: 1.9GiB type: USB [ADATA IUM01-002GFHS] dev: /dev/sdc
partition ref: 239.0MiB, 187.0MiB free mounted: Y label: dev: /dev/sdc1(boot) start: 0
partition ref: 231.0MiB, 221.0MiB free mounted: Y label: dev: /dev/sdc2(boot) start: 0
partition ref: 35 256.0MiB, 256.0MiB free mounted: N label: dev: /dev/sdc3 start: 0
Total available disks: 3
Max SSD disks: 0 Available storage disks: 2
This is sample output of the diagnose hardware deviceinfo nic
command:
# diagnose hardware deviceinfo nic
The following NICs are available:
port1
port2
port3
port4
This is sample output of the diagnose hardware sysinfo memory
command:
# diagnose hardware sysinfo memory
MemTotal: 8130592 kB
MemFree: 4225780 kB
MemAvailable: 3749676 kB
Buffers: 174548 kB
Cached: 163784 kB
SwapCached: 0 kB
Active: 3700076 kB
Inactive: 119136 kB
Active(anon): 3489696 kB
Inactive(anon): 35680 kB
Active(file): 210380 kB
Inactive(file): 83456 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 12 kB
Writeback: 0 kB
AnonPages: 3468432 kB
Mapped: 54592 kB
Shmem: 44500 kB
Slab: 31428 kB
SReclaimable: 14108 kB
SUnreclaim: 17320 kB
KernelStack: 2752 kB
PageTables: 18500 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 4065296 kB
Committed_AS: 5517856 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 3260416 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 12620 kB
DirectMap2M: 2033664 kB
DirectMap1G: 7340032 kB
This is sample output of the diagnose hardware sysinfo interrupts
command:
# diagnose hardware sysinfo interrupts CPU0 CPU1 CPU2 CPU3 0: 12 0 0 0 IO-APIC 2-edge timer 4: 57927 1354 320 178 IO-APIC 4-edge serial 8: 0 1 0 0 IO-APIC 8-edge rtc0 9: 0 0 0 0 IO-APIC 9-fasteoi acpi 16: 18 7 1 0 IO-APIC 16-fasteoi ehci_hcd:usb1 22: 110389 2604 1030 610 IO-APIC 22-fasteoi ehci_hcd:usb2 24: 4827 23001 830 670 PCI-MSI 524288-edge cp9vpn_0_p0v0 25: 0 1 0 22287 PCI-MSI 524289-edge cp9vpn_0_p1v0 26: 0 0 11299 0 PCI-MSI 524290-edge cp9vpn_0_p2v0 27: 1 13140 0 0 PCI-MSI 524291-edge cp9vpn_0_p3v0 28: 0 0 0 0 PCI-MSI 524292-edge cp9vpn_0 29: 0 0 0 0 PCI-MSI 524293-edge cp9vpn_0-prng 30: 12189 542 71 32 PCI-MSI 526336-edge cp9kxp_0_p0v0 31: 1 0 0 7861 PCI-MSI 526337-edge cp9kxp_0_p1v0 32: 1 0 4179 0 PCI-MSI 526338-edge cp9kxp_0_p2v0 33: 1 4341 0 0 PCI-MSI 526339-edge cp9kxp_0_p3v0 34: 0 0 0 0 PCI-MSI 526340-edge cp9kxp_0 35: 0 0 0 0 PCI-MSI 526341-edge cp9kxp_0-prng 37: 0 0 0 0 PCI-MSI 458752-edge aerdrv 38: 0 0 0 0 PCI-MSI 460800-edge aerdrv 39: 0 0 0 0 PCI-MSI 462848-edge aerdrv 40: 0 0 0 0 PCI-MSI 464896-edge aerdrv 41: 60432 4330 462 265 PCI-MSI 512000-edge ahci[0000:00:1f.2] 42: 2 0 0 0 PCI-MSI 1048576-edge port1 43: 2930467 186525 18330 9857 PCI-MSI 1048577-edge port1-TxRx-0 44: 2 0 0 0 PCI-MSI 1572864-edge port2 45: 1485977 141288 8959 4979 PCI-MSI 1572865-edge port2-TxRx-0 46: 0 0 0 0 PCI-MSI 2097152-edge port3 47: 53103 54819 95 19386 PCI-MSI 2097153-edge port3-TxRx-0 48: 0 0 0 0 PCI-MSI 2621440-edge port4 49: 94197 3869 18867 10469 PCI-MSI 2621441-edge port4-TxRx-0 NMI: 0 0 0 0 Non-maskable interrupts LOC: 1802140323 1798822854 1804132864 1788225546 Local timer interrupts SPU: 0 0 0 0 Spurious interrupts PMI: 0 0 0 0 Performance monitoring interrupts IWI: 0 0 0 0 IRQ work interrupts RTR: 3 0 0 0 APIC ICR read retries RES: 131126791 113432773 126191158 130550806 Rescheduling interrupts CAL: 4735 6004 4362 4516 Function call interrupts TLB: 4574 5839 4182 4440 TLB shootdowns TRM: 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 Threshold APIC interrupts DFR: 0 0 0 0 Deferred Error APIC interrupts MCE: 0 0 0 0 Machine check exceptions MCP: 845 845 845 845 Machine check polls ERR: 0 MIS: 0 PIN: 0 0 0 0 Posted-interrupt notification event PIW: 0 0 0 0 Posted-interrupt wakeup event
This is sample output of the diagnose hardware sysinfo mtrr
command:
# diagnose hardware sysinfo mtrr
reg00: base=0x000000000 ( 0MB), size= 4096MB, count=1: write-back
reg01: base=0x0f0000000 ( 3840MB), size= 256MB, count=1: uncachable
reg02: base=0x100000000 ( 4096MB), size= 4096MB, count=1: write-back
reg03: base=0x200000000 ( 8192MB), size= 512MB, count=1: write-back
reg04: base=0x210000000 ( 8448MB), size= 256MB, count=1: uncachable
This is sample output of the diagnose hardware certificate
command:
# diagnose hardware certificate
Checking Fortinet_CA.cer integrality ........Passed
Checking Fortinet_Factory.cer integrality ........Passed
Checking Fortinet_Factory.cer key-pair integrality ........Passed
Checking Fortinet_Factory.cer Serial-No. ........[Not Matched]
Checking Fortinet_Factory.cer timeliness ........Passed
Checking Fortinet_Factory.key integrality ........Passed