2.0

Table Of Contents
VMware, Inc. 161
Chapter 6 Setting and Using Policies and Customizing VMware Player
# Notes:
# If the script returns success, its output will be used to create a key.
# Therefore, it is important that the output of this script be unique for
# each user, and that there is enough data to make a meaningful key (at
# least 16 bytes).
#
#
my %user_map= ( 'charlie' => 'E1C4F612135B4D98A33B2C9BD595025D',
'kathy' => 'C79AFFEF773D61225751C2566858DB08',
'beth' => '05B169B439B26AAB2EA4F755B7E3800C',
'ernie' => '8CE63D4AA2068BD8AFF2D1B05F3495A5',
'bert' => '"172B1619B2EFBE0E4F381AA1C428F049'
);
my $username = $ENV{TEST_USERNAME};
if (! defined $username) {
print "You should set the TEST_USERNAME environment variable.\n";
exit(-1);
}
my $key_seed = $user_map{$username};
if (! defined $key_seed) {
print "Unrecognized username.\n";
exit(-1);
}
print $key_seed;
exit(0);
Sample Host-Guest Data Script
ThefollowingsamplescriptiswritteninPerl.ItisinstalledbyWorkstationACE
EditionassampleQuarantine.pl.YouneedaPerlinterpretertorunthisscript.
#
# VMware Sample Script
#
# Sample script for ACE Host-Guest Data script
#
# Description:
# This sample script passes information defined on the host to the guest.
# It assumes that the machine name is defined in the environment variable
TEST_MACHINENAME
# and that the asset tag is defined in the environment variable
TEST_ASSETTAG.
# (These are fictitious variables used for this sample).
#