Batch Get current date as filename

If you are working with tools that genegates logfiles it is handy to have the name of the logfile based on the date. The following command will help us create a filename based on the system date. The command takes the date, puts it in MMDDYYYY format and appends the .LOG extension. The date with […]
Continue reading…

 

VI3 Configure VMkernel portgroup

# add VMkernel to vSwitch2 esxcfg-vswitch -A VMkernel vSwitch2 # set ip on Vmkermel esxcfg-vmknic -a VMkernel -i <ip kernel> -n <sn kernel> esxcfg-route <gw kernel> esxcfg-vswitch –v 101 –p VMkernel vSwitch2 # enable vmotion on the VMkernel portgroup vimsh -n -e “/hostsvc/vmotion/vnic_set <portgroupName>” where <portgroupName> is the name of the portgroup that you want […]
Continue reading…

 

VI3 Create vSwitch with different number of ports

When using the sc command ‘esxcfg-vswitch -a vSwitch1’ the created switch has the default of 64 ports. To create a vSwitch with more or less ports, add ‘:<no ports>’ to the name of the vSwitch. Resulting command: ‘esxcfg-vswitch -a vSwitch1:128’ to create a vSwitch with 128 ports. Note: Viewed from ‘esxcfg-vswitch -l’ the Num ports […]
Continue reading…