Archive for July, 2007

Citrix Installation Order for PS4.5

0

This document provides information on the installation order of Hotfix Rollup Pack 1 (HRP 1) for Presentation Server 4.5 and its available extensions.

Webcast Microsoft Server Virtualization Licensing

0

Microsoft published a 26-minutes on demand webcast about its licensing model applied to virtualization scenarios.

Link

Batch Get current date as filename

0

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 the .LOG extension is assigned to a variable named datefile. For example, today, on July 27, 2007 the datefile variable would contain: 07272007.LOG

The command for setting up the datefile variable is:

for /F “tokens=2,3,4 delims=/ ” %%i in (‘date /t’) do set datefile=%%i%%j%%k.log

If you want to view the contents of the datefile variable, you can do so by using the echo command. Since datefile is a variable, you must place percentage signs on each end of it any time you reference it. For example, the command for viewing the contents of this variable would be:

Echo %datefile%

But we’re not interested in merely viewing the contents of the datefile variable. Our goal is to use the variable’s contents as a filename, and to export eg. the CHKDSK results to the file that is referenced by the datefile variable. To do so, use this command:

Chkdsk > %datefile%

The batch file in its entirety would look like this:

for /F “tokens=2,3,4 delims=/ ” %%i in (‘date /t’) do set datefile=%%i%%j%%k.log Chkdsk > %datefile%

VI3 Configure VMkernel portgroup

1

# 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 to enable vmotion on.

This portgroup name must be the internal portgroup name (as obtained from ‘esxcfg-vswitch -l’ and not the friendly portgroup name.

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 is 64, when viewed from VI client the vSwitch properties gives 56.

Go to Top