Collect Linux ...

modprobe ipmi_devintf; ipmitool fru print 2>/dev/null | egrep --after-context=6 "Builtin FRU Device|PS.*1|BP.*ID|PERC.*ID|Storage.*ID"; echo "-- The following Physical Disk Info is Generated by MegaCli --"; /opt/MegaRAID/MegaCli/MegaCli* -PDList -a0 | egrep "Inquiry Data:|Raw Size:|PD Type:|Link Speed:"; echo " "; echo "-- The following Physical Disk Info is Generated by smartctl --"; smartctl -i /dev/sg0| egrep --invert-match "smart|Copyrig"; smartctl -i -d megaraid,0 /dev/sda | egrep --invert-match "smart|Copyrig" | egrep "Vendor:|Product:|Revision:|User Capacity:|Serial number:|Device type:|Transport protocol:"; echo " "; echo "-- Memory FRU infomation by dmidecode -- "; dmidecode --type memory | head -38 | egrep "Size:|Type:|Speed:|Part Number:"; echo " "; echo "================================= BREACK HERE ================================="'| tee /tmp/Linux_fru.txt

Collect Windows system info script

gwmi Win32_NetworkAdapterConfiguration |
    Where { $_.IPAddress } | # filter the objects where an address actually exists
    Select -Expand IPAddress | # retrieve only the property *value*
    Where { $_ -like '*.190' } ;
    echo "-- System info --";
Get-WmiObject Win32_ComputerSystem | select Manufacturer, Model ;
wmic baseboard get serialnumber;
Get-WmiObject Win32_Processor | select Name | FL;
Get-CimInstance Win32_OperatingSystem | Select-Object  Caption, InstallDate, OSArchitecture,  BuildNumber | FL ;
    echo "-- MEMORY info --"
Get-WmiObject Win32_PhysicalMemory | select DeviceLocator,Capacity,PartNumber,SerialNumber,TotalWidth,Speed | FL ;
    echo "-- DISK info --";
    #Get-WmiObject Win32_DiskDrive | select Model, Size | FL ;
    wmic diskdrive list brief;
    echo "-- Power Supply and Maybe MORE!!! ... --";
    echo " ";
   # & "ipconfig" | findstr /I 'ipv4';
    & "C:\Program Files\ipmiutil\ipmiutil.exe" fru print;
echo "============================ BREAK HERE ==============================";  | Out-File C:\windows_fru.log

désert/workarea/JYLSH (last edited 2019-10-21 06:34:21 by localhost)