2016年12月12日 星期一

Generate & Create

Create - 創造. (to make something happen or exist) 讓一個東西出現或存在。 

Generate - 產生;引起, 生成。 
- to bring into existence; cause to be; produce. 
- to create by a vital or natural process. 
除了也是有‘讓一個東西存在’ 的意思,‘generate' 也有從自然的過程產生‘的意思。後者著重是一個過程的產物。 

其實這兩個字是同意字。但是,有一些用法的不同。 

例如:上帝創造世界 - God created the world. 
不能說 - God generated the world. 

另一例子- The power plant generated five thousand kilowatts of electricity." 
(發電廠產生五千瓦電力- 從發電機所產生) 
不能說 : The power plant created five thousand kilowatts of electricity. 



“"Create" has a more artistic, soulful or possibly religious connotation. 
(翻譯:'Create' 有較多藝術性的,靈性上的,或宗教性的涵義。) 

"Generate" seems more mechanical, scientific, cold.“ 
((翻譯:'Generate' 似乎比較是機械性的,科學的,冷的。) 

另有人囘答說: 

"Create" is used when referring to purposely or deliberately bringing something into being. 

(翻譯:'Create' 用在指有目的或故意讓某物存在) 

To "generate" often implies bringing something into being in an indirect manner or as a result of something else. 

2016年12月5日 星期一

How to set power restore policy by ipmitool command

How to set power restore policy by ipmitool command

#ipmitool chassis policy always-on

Check setting status
#ipmitool chassis status

2016年11月18日 星期五

How to setup Windbg to debug windows OS


How to setup Windbg to debug windows OS

Setup a client with windbg , connect serial com port to SUT
Client can monitor SUT windows booting process


SUT:
1. Boot to windows
2. CMD=>
bcdedit /debug on
bcdedit /dbgsettings serial debugport:1 baudrate:115200
3. Set the dump file: "System"--"Advanced system settings"--"Advanced"--"Startup and Recovery"--"Settings", choose the "kernel memory dump".
4. Run the "regedit" to open the Registry Editor in OS,In the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\kbdhid\Parameters, create a value named "CrashOnCtrlScroll", and set it equal to a REG_DWORD value of 0x01. then exit the Registry Editor.
5. Reboot
-----------------------------------------------------------------------------------
Client:
1. Download windbg then install
https://developer.microsoft.com/zh-tw/windows/hardware/windows-driver-kit
2. Create a folder "Symbols" unter C:  (C:\Symbols)
3. Open windbg
   Windows Kits=>WinDbg (X64)
4. File=>Symbol File Path
    Input "C:\Symbols\Bootmgr;srv*C:\Symbols\Bootmgr*http://msdl.microsoft.com/download/symbols"
    =>OK
5.File=>Kenerl Debug
6.Go to "Com"
   Input Baud Rate: 115200 Port: com x  (x is com port number)



 Forcing a System Crash from the Debugger
• If KD or WinDbg is performing kernel-mode debugging, it can force a system crash to occur.
This is done by entering the .crash (Force System Crash) command at the command prompt. (If
the target computer does not crash immediately, follow this with the g (Go) command.)
• When this command is issued, the system will call KeBugCheck and issue bug check 0xE2
(MANUALLY_INITIATED_CRASH). Unless crash dumps have been disabled, a crash dump file is
written at this point.
• After the crash dump file has been written, the kernel debugger on the host computer will
be alerted and can be used to actively debug the crashed target.

C:\Windows\Minidump\110916-18593-01.dmp
C:\Users\Administrator\AppData\Local\Temp\WER-37093-0.sysdata.xml
C:\Windows\MEMORY.DMP

2016年10月17日 星期一

How to get SUT time from BMC by ipmi command

How to get SUT time from BMC by ipmi command


#ipmitool.exe -I lanplus -H 192.168.1.1 -U admin -P password sel time get

2016年10月5日 星期三

Linux Console_Redirection -SLES 12.2

Linux Console_Redirection -SLES 12.2

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.If BIOS is legacy mode
#grub2-mkconfig -o /boot/grub2/grub.cfg
If BIOS is UEFI mode
#grub2-mkconfig -o /boot/efi/EFI/sles/grub.cfg
3.Reboot

2016年9月29日 星期四

How to check jumbo frame packet by wireshark utility

How to check jumbo frame packet by wireshark utility

Prepare 2 SUT with network card
Connect SUT1 SUT2  with NIC cable

Test procedure:
1.SUT1/SUT2 set Jumbo frame 9014K
(Windows set it from device manager ,network device)
(Linux set it by command # ifconfig eth0 192.168.1.x mtu 9000)
2.Install wireshark utility on SUT1, open monitor on jubmo frame NIC port
3.Create a share folder on SUT1, verify if SUT2 can access it
4.SUT2 upload a iso image(Large than 1G size) to SUT1 share folder
5.Verify if network packet Lengh is 9014 as below photo.









2016年9月15日 星期四

How to create a backgroud bat file in windows startup

How to create a backgroud bat file in windows startup

execute cmd
#shell:startup

create a bat file
start "" "C:\Program Files (x86)\WinEdt Team\WinEdt\WinEdt.exe"
exit

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"

(TOP)Temp for soulin only

123