VMware Workstation 7 Bedienungsanleitung Seite 424

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 512
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 423
Workstation User’s Manual
424 VMware, Inc.
Writing Plug-In Policy Scripts
YoucanwritescriptstocontrolcertainpoliciesinVMwarePlayer.Youmayuseany
languagethatissupportedontheuserscomputer.
Forsecurityreasons,scriptsmustbedeployedaspartofapackageandinstalledbythe
packageinstaller.Userscannotmodifythesescripts.
Whenscriptsrun,theymustwritethea
ppropriateval
uestotheStdOut file.Outputto
theStdOutfilemightbeupto4096byteslong.
PlaceanyscriptsyouwanttouseforapackageintheACE Resourcesdirectoryinthe
virtualmachinedirectory.DonotplacetheminasubdirectoryoftheACE Resources
directory.Ifthesc
riptsneedanyadditionalresourcefiles,placethosefilesinthemain
ACE Resourcesdirectory.Makesurethescriptusesrelativepathstoreferencethose
resources.
ScriptscanalsowritemessagestotheStdErrfile.OutputtotheStdErrfilemaybeup
to4096byteslong.AnymessagesgeneratedontheStdErrfilearecapturedinth
elog
fileontheendusersmachineatthefollowinglocation:
<UserAppData>\VMware\VMware ACE\<package_name>\Virtual
Machines\<VM_name>\vmware.log
Theexitcodeofascriptindicateswhetherthescriptsucceededorfailed.
Table 191describestheenvironmentvariablessetinthescriptexecutionenvironment.
AllscriptsruneachtimetheenduserstartsVMwarePlayerorresetsthevirtual
machine.Somemightrunmoreoften.Forexample,anexpirationscriptisrunevery24
hours.
Thesam
plescriptspresentedin“ExamplesofPolicyScripts”onpage 425areinstalled
withVMwarePlayerinthefollowinglocation:
C:\Program Files\VMware\VMware Player\Samples
Thetopicsthatfollowshowtheformatfortheoutputthatyourscriptsmustwritetothe
StdOutfiletocontrolvariouspolicies.
Table 19-1. Environment Variables
Variable Description
VMWARE_MASTER_ID TheIDoftheACEenabledvirtualmachine(ACEmaster).
VMWARE_PACKAGE_ID TheIDofthepackagethevirtualmachinewasinstantiated
from.
VMWARE_INSTANCE_ID ABooleanvaluethatissettoTRUEthefirsttimethevirtual
machineispoweredon.Otherwise,itissettoFALSE.
Seitenansicht 423
1 2 ... 419 420 421 422 423 424 425 426 427 428 429 ... 511 512

Kommentare zu diesen Handbüchern

Keine Kommentare