2020年1月30日 星期四

How to check CPU&memory loading under ubuntu

How to check CPU&memory loading under ubuntu

Memory
#free -m

CPU
#top

Or install sw
#sudo apt-get install htop
#htop

2020年1月29日 星期三

Missing libraries in Ubuntu when running burnin test

Missing libraries in Ubuntu when running burnin test


System have to connect to Internet

#sudo apt-get install libqt5opengl5 libqt5printsupport5 libcurl4

2020年1月14日 星期二

Simple dd command to test HDD read/write performance under linux

Simple dd command to test HDD read/write performance under linux



Read

#dd oflag=direct if=/dev/zero of=/mnt/test bs=512k count=20000

Write
#dd iflag=direct if=/mnt/test of=/dev/null bs=512k count=20000



If you want to test different disk, you can mount /mnt to diffect /dev/sdx
#mkfs -t ext4 /dev/sdb1
#mount /dev/sdb1 /mnt

How to fix /lib64/libc.so.6: version `GLIBC_2.15' not found

How to fix  /lib64/libc.so.6: version `GLIBC_2.15' not found

1.
wget https://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz

2.
# tar -zxvf glibc-2.15.tar.gz
# cd glibc-2.15
# mkdir build;
# cd build
# ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
# make -j 8
# make install

2020年1月13日 星期一

How to install/uninstall/launch LSI/Avago MSM utility under Linux

How to install/uninstall/launch LSI/Avago MSM utility under Linux

install
#./install.csh -a

launch
# cd /user/local/MegaRAID Storage Manager
#./startupui.sh


Uninstall
# cd /user/local/MegaRAID Storage Manager
#./uninstaller.sh

2019年11月20日 星期三

When execute sh script under linux, /bin/sh^M:bad interpreter:No such file or directory

When execute sh script under linux, /bin/sh^M:bad interpreter:No such file or directory

Root Cause:
The file has been modify under windows.
#vim file name
:set ff
Check if fileformat=dos

Fixed:
:set ff=unix
:wq

Run script again.

2019年11月17日 星期日

Commad line flash BIOS/BMC fw(AMI code base)

Commad line flash BIOS/BMC fw

/Flash
Method
Command line (Local)
 
EFI Shell 
Windows
BIOS

AfuEfix64.efi BIOS.bin /b /p /n /x
afuwinx64.exe  BIOS.bin /b /p /n /x
BMC

socflash -s BMC.bin
yafuflash.exe -cd


FW /Flash
Method
Command line (Local)
Linux
BIOS./afulnx_64 BIOS.bin /b /p /n /x
BMC./yafuflash -cd BMC.ima -vyes
FW /Flash
Method
Command line (Remote)
Windows Client
BIOS
Grantley:
yafuflash.exe -nw -ip [BMC_IP] -u username -p password -bios BIOS.bin
Purley:
yafuflash.exe -d 2-nw -ip [BMC_IP] -u username -p password  BIOS.bin
BMCyafuflash.exe -nw -ip  [BMC_IP] -u username -p password -full BMC.ima

2019年11月13日 星期三

Windows remote shutdown/reboot

Windows remote shutdown/reboot

Reboot:
net use \\Remote IP /user:administrator password
shutdown -m \\\\Remote IP -r -f -t 3

Shutdown
net use \\Remote IP /user:administrator password

shutdown -m \\\\Remote IP -s -f -t 3

How to check CPU&memory loading under ubuntu

How to check CPU&memory loading under ubuntu Memory #free -m CPU #top Or install sw # sudo apt-get install htop #htop