2016年8月18日 星期四

How to auto login windows

How to auto login windows

1.Open cmd command windows
2.#netplwiz     (or ntrol userpasswords2)
3.Uncheck "Users must enter a suer name and password to use this computer"

2016年8月17日 星期三

How to write mac address by eeupdate

How to write mac address by eeupdate


Download latest eeupdate.efi
1.Boot to UEFI shell
2.#eeupdate.efi /nic=1 /mac=001122334455
(MAC address must follow vendor MAC define, like "F0761C9DXXXX")

mac address is 12 length

2016年5月26日 星期四

How to login linux single mode

RHEL 6

Go to the Boot loader Screen, add " single" in the end of kernel
------------------------------------------------------------------------------------

RHEL 7.9
Go to the Boot loader Screen, change the argument ro to rw init=/sysroot/bin/sh as shown in the screen shot below.






press Ctrl-X or F10 to boot into single user mode 


# mount -o remount,rw /sysroot
# chroot /sysroot/
# reboot -f
------------------------------------------------------------------------------------
RHEL 8.6
Go to the Boot loader Screen, change the argument
add "rd.break" after quiet


Ctrl + x , boot
# mount -o remount,rw /sysroot
# chroot /sysroot/
# reboot -f


---------------------------------------------------------------------------------------
SLES

Go to the Boot loader Screen, type below command in the boot instruction option :
init=/bin/bash

2016年5月25日 星期三

2016年5月24日 星期二

How to use socflash tool flash BMC under DOS

How to use socflash tool flash BMC under DOS

Boot to Dos
# socflash if=XXX.bin
(After flash , BMC mac will be clean)

Flash BMC mac
# ipmitool 20 30 01 01 c2 00
# ipmitool 20 30 01 01 05 00 11 22 33 44 55
(modify "00 11 22 33 44 55" for MAC address)

<Waiting few seconds>
# ipmitool 20 30 01 01 c2 01
# ipmitool 20 30 01 01 05 00 11 22 33 44 56


AC system

2016年5月17日 星期二

How to setup route table for multi network


How to setup  route table for multi network


Reset routing table
netsh winsock reset


You have 3 network card:

Company network:   10.109.34.x
Internal network   :  192.168.1  .x

wifi network          :  192.168.10.x


Setup default gateway for which network you use frequently. (My example is wifi network)

1.Default gateway (Maybe your private wireless, ex:192.168.10.x)
route change 0.0.0.0 mask 0.0.0.0 192.168.10.254 -p

2.Your company network  (ex: You get DHCP IP is 10.109.34.22)
route add 10.110.21.0 mask 255.255.255.0 10.109.34.254 -p
route add 10.109.34.0 mask 255.255.255.0 10.109.34.254 -p
route add 10.119.55.0 mask 255.255.255.0 10.109.34.254 -p

It means you want to connect 10.110.21.x target by 10.109.34.x(Your company network)

3.Your Internal network 
route add 192.168.1.0 mask 255.255.255.0 192.168.1.254 -p


If you want to bond dedicate IP address for connection.
<For dedicate IP address>
route add 10.109.34.109 mask 255.255.255.255 10.109.34.254 -p
route add 10.110.11.120 mask 255.255.255.255 10.109.34.254 -p

2016年5月4日 星期三

How to use eeupdate to update i350 fw

How to use eeupdate to update i350 fw


Boot UEFI shell
Check version
#eeupdate.efi /all /eepromver

Update fw
#eeupdate.efi /all /d XXX.hex



2016年4月21日 星期四

How to create bmc flash cycle under dos

How to create bmc flash cycle under dos

[autoexec.bat]
Yafu.exe -kcs xxxx.bin -vyes
count
:bmc
ipmitool 20 00 02 02
goto bmc


You need put "Yafu.exe"  "count.exe" "ipmitool.exe" to your dos key
----------------------------------------------------------------------------
Or
[autoexec.bat]
Yafu.exe -kcs xxxx.bin -vyes
delay -s 120
count

ipmitool 20 00 02 02

You need put "Yafu.exe" "delay.exe"  "count.exe" "ipmitool.exe" to your dos key

2016年4月13日 星期三

How to create samba share folder under RHEL linux for stress

How to create samba share folder under RHEL linux for stress


1.Disabling SELinux
#vim /etc/selinux/config
SELINUX=disabled
save then reboot
#init 6

2.#mkdir /mnt/stress

#chmod 777 stress
#vim /etc/samba/samba.conf

security = share

[stress]
path = /mnt/stress
browseable = yes 
read only = no
writable = yes 
create mode = 0777 
directory mode = 0777
guest ok = yes
guest only = yes


#service smb restart
3.#service iptables stop


2016年2月3日 星期三

Could Not Find Trusted Signer Error While Installing VIBs in VMware vSphere ESXi 5.x

Could Not Find Trusted Signer Error While Installing VIBs in VMware vSphere ESXi 5.x


ould not find a trusted signer
Add the --no-sig-check switch to your command when installing the VIB.

Example : # esxcli software vib install -d /vmfs/volumes/datastore1/offline-bundle.zip --no-sig-check


2016年1月13日 星期三

How to mount usb device to ESXi

How to mount usb device to ESXi

1.) Stop the usbarbitrator service by running this command
/etc/init.d/usbarbitrator stop
2.) Disconnect and reconnect the usb device. The device might be automatically mounted under
/vmfs/volumes/NO NAME/ (just navigate here to export or import your files)
**) If not automatically mounted, use the following commands to find out where the device is connected to (e.g. /dev/sda1)
fdisk -l
tail /var/log/messages
To mount the device, first create a folder
mkdir /ExtUSB
mount the device with
mount -t ext3 /dev/sda1 /ExtUSB/
3.) After using the device, run the following command to start the usbarbitrator service
/etc/init.d/usbarbitrator start

2016年1月11日 星期一

How to list BMC sensor

How to list BMC sensor
#ipmitool.exe -I lanplus -H 192.168.1.227 -U admin -P admin -v sdr
#ipmitool.exe -I lanplus -H 192.168.1.227 -U admin -P admin sdr
#ipmitool.exe -I lanplus -H 192.168.1.227 -U admin -P admin sensor
#ipmitool.exe -I lanplus -H 192.168.1.227 -U admin -P admin sensor get "XXXX"

2015年11月17日 星期二

2015年10月20日 星期二

How to check BMC ip by windows local ipmi command

How to check BMC ip by windows local ipmi command

#ipmitool -I ms lan print 1
               (-Interface)

How to check fru data by windows local ipmi command

How to check fru data by windows local ipmi command

Under windows to check fru by ipmi command
#ipmitool -I ms fru print 0






Dump current system fru data

#ipmitool   -I ms  fru read 0 fru.bin
#ipmitool   -I ms  fru print

All fru data will be saved in "fru.bin".

2015年10月19日 星期一

How to update Intel i350 fw & MAC address

How to update Intel i350 fw


Boot to UEFI shell
#eeupdate64e.efi /D I350BT2_0324.hex /NIC=1

 MAC address
#eeupdate64e.efi  /NIC=1 /MAC=665544332211
#eeupdate64e.efi  /NIC=2 /MAC=665544332212

After flash completely, AC system

2015年9月10日 星期四

How to flash LSI 2308 fw

How to flash LSI 2308 fw


Boot to UEFI shell, enter to sas2flash tool folder
sas2flash -o -e 7                                                         # Clear all image in flash.#
sas2flash -o -f xxxx.fw                                        # Flash FW.  #
sas2flash -b mptsas2.rom                                           #Flash BIOS.

sas2flash -o -sasadd 0000111122225678                #Flash SAS address.#

2015年8月16日 星期日

linux Console_Redirection -RHEL 7.x

linux Console_Redirection -RHEL 7.0





7.5 above

1.Configuring GRUB 2
#vim /etc/default/grub
GRUB_TERMINAL="serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"

2.Add console=ttyS0,115200n8 to kermel
legacy mode
#vim /etc/grub2.cfg
linux16      /vmlinuz-3.10.0-0.rc4.59.el7.x86_64 root=/dev/mapper/rhel-root ro rd.md=0 rd.dm=0 rd.lvm.lv=rhel/swap crashkernel=auto rd.luks=0 vconsole.keymap=us rd.lvm.lv=rhel/root rhgb quiet
console=tty0 console=ttyS0,115200n8

UEFI mode
#vim /etc/grub2-efi.cfg
linux16      /vmlinuz-3.10.0-0.rc4.59.el7.x86_64 root=/dev/mapper/rhel-root ro rd.md=0 rd.dm=0 rd.lvm.lv=rhel/swap crashkernel=auto rd.luks=0 vconsole.keymap=us rd.lvm.lv=rhel/root rhgb quiet
console=tty0 console=ttyS0,115200n8

3.If BIOS is legacy mode
#grub2-mkconfig -o /boot/grub2/grub.cfg
If BIOS is UEFI mode
#grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
4.Reboot



-------------------------------------------------------------------
7.0
1.Configuring GRUB 2
#vim /etc/default/grub
GRUB_TERMINAL="serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"

2.Add console=ttyS0,115200n8 to kermel
#vim /etc/grub2.cfg
linux16      /vmlinuz-3.10.0-0.rc4.59.el7.x86_64 root=/dev/mapper/rhel-root ro rd.md=0 rd.dm=0 rd.lvm.lv=rhel/swap crashkernel=auto rd.luks=0 vconsole.keymap=us rd.lvm.lv=rhel/root rhgb quiet
console=tty0 console=ttyS0,115200n8

3.If BIOS is legacy mode
#grub2-mkconfig -o /boot/grub2/grub.cfg
If BIOS is UEFI mode
#grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
4.Reboot




2015年8月6日 星期四

How to check/install RAID(LSI 2308) driver under ESXi

How to check RAID(LSI 2308) driver version under ESXi

Check driver version
#esxcli storage core adapter list
#esxcli software vib list | grep mpt2sas


Upload driver package to ESXi (By vsphere or USB key)
#esxcli software vib install –viburl file:/tmp/DRIVERVERSION.vib

2015年5月31日 星期日

How to install RHEL 7/ SLES 11 12 UEFI mode with ESRT2 raid

How to install RHEL 7/ SLES 11 12 UEFI mode with ESRT2 raid

RHEL 7.x UEFI
linuxefi /images/pxeboot/vmlinuz XXXXXXXXXXXXXXXXXXXXX quiet dd modprobe.blacklist=achi,isci nodmraid

SLES 12 UEFI
1.press "e" to edit command
2. linuxefi /boot/x86_64/loader/linux splash=silent driverupdate=1 brokenmodules=achi



SLES 11 UEFI
1. press "e" to edit command
2. linuxefi /boot/x86_64/loader/linux driverupdate=1 brokenmodules=ahci

TEMP-2026

 123