2019/07/31

How to enable SNMP Service on Windows 10 Build 1809

1. Open PowerShell as administrator
2. Type and execute Get-WindowsCapability  -Online -Name "SNMP*" to check SNMP service didn't install
3. Type and execute Add-WindowsCapability  -Online -Name "SNMP.Client~~~~0.0.1.0" to install SNMP service
4. Type and execute  Get-Service -Name snmp* to check SNMP service is running now


2019/07/26

How to find largest files or directories on Linux system

sudo cd /
sudo find . -type f -print0 | xargs -0 du | sort -nr | head -20 | cut -f2 | xargs -I{} du -sh {}
or
sudo find . -type d -print0 | xargs -0 du | sort -nr | head -20 | cut -f2 | xargs -I{} du -sh {}

2019/07/25

How to make VMware ESXi image with NIC driver

1.Download and install VMware PowerCLI
https://my.vmware.com/web/vmware/details?downloadGroup=PCLI650R1&productId=614

2.Download NIC drivers(.vib) for VMware ESXi
https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages

3.Download ESXi-Customizer-PS
https://www.v-front.de/p/esxi-customizer-ps.html#download

4.Set the PowerShell Execution Policy
(a)Select Start > All Programs > Windows PowerShell version > Windows PowerShell   
(b)Type "Set-ExecutionPolicy RemoteSigned" and run for Remote Signed
(c)Type "Set-ExecutionPolicy Unrestricted" and run for Unrestricted

5.Execute ESXi-Customizer-PS-v2.6.0.ps1 to make a VMeware ESXi 6.7 customized iso file
(a)Open VMware PowerCLI
(b)Type .\ESXi-Customizer-PS-v2.6.0.ps1 -v67 -vft -load net-e1000e,net55-r8168 -pkgDir 'E:\VMwareESXi\NIC_Driver_ESXi' -outDir 'E:\VMwareESXi\customized_iso' and run
(c)Go to E:\VMwareESXi\customized_iso path and you'll find the ESXi-6.7.0-20190604001-standard-customized.iso file