6.0
Table Of Contents
- vSphere SDK for Perl Programming Guide
- Contents
- Getting Started with vSphere SDK for Perl
- Writing vSphere SDK for Perl Scripts
- Refining vSphere SDK for Perl Scripts
- Creating and Using Filters
- Filtering Views Selectively Using Properties
- Retrieving the ServiceInstance Object on a vSphere Host
- Saving and Using Sessions
- Using Multiple Sessions
- Learning About Object Structure Using Data::Dumper
- Specifying Untyped Arguments in Scheduled Tasks and Callbacks
- Using Advanced Subroutines
- vSphere SDK for Perl Subroutine Reference
- Web Services for Management Perl Library
- Credential Store Perl Library
VMware, Inc. 61
B
ThevSphereSDKforPerlcredentialstorelibrarycanbeusedtoautomatethelogonprocessfornon‐interactive
clientapplicationsbystoringthepasswordinasecuredlocalcredentialcachethattheapplicationcanaccess
atruntime.YoucanmanagethevSpherecredentialstoreusingthecredentialstorelibraryincluded
inthe
vSphereSDKforPerlanddiscussedinthisappendix.
IfanapplicationauthenticatesitselftoavCenterServersystem,itrequiresnoadditionalauthenticationto
accessanyoftheESX/ESXisystemsmanagedbythatvCenterServersystem.
Authenticationcanoccurasfollows:
Specifyingtheauthenticationinformationexplicitlyusingoneofthecommand‐lineparameters(user
nameandpassword,url,andsoon)orconfigurationfileparameters.See“vSphereSDKforPerlCommon
Options”onpage 12.
Usingasessionfile.See“UsingaSessionFile”onpage 13.
UsingMicrosoftSSPI,discussedin“UsingMicrosoftWindowsSecuritySupportProviderInterface
(SSPI)”onpage 15.
UsingthecredentialstorePerlLibrary,whichisincludedinthevSphereSDKforPerlanddiscussedin
thisappendix.
See“vSphereSDKforPerlCommonOptions”onpage 12foradiscussionoftheorderofprecedence.
Thisappendixexplainshowtosetupandusethecredentialstoreandincludes
areferencetocredentialstore
subroutines.Theappendixincludesthefollowingtopics:
“CredentialStoreOverview”onpage 61
“CredentialStoreComponents”onpage 62
“ManagingtheCredentialStore”onpage 62
“UsingtheCredentialStore”onpage 62
“vSphereCredentialStoreSubroutineReference”onpage 63
“credstore_admin.plUtilityApplication”onpage 65
Credential Store Overview
Clientapplicationsthatlaunchautomaticallyforunattendedoperations,suchascronjobsandsoftware
agents,mustbeabletologintotheESX/ESXihostswithoutuserassistance.ThevSphereWebServicesSDK
providesclient‐sidecredentialstorelibrariesandtoolsforautomatingtheloginprocessinamoresecure
manner.
Afterthecredentialstorehasbeensetup,systemadministratorsarenolongerrequiredtokeep
passwordsinlocalscripts.ThecredentialstorecanbesetupforanESX/ESXisystem,orforavCenterServer
system.IfanapplicationauthenticatesitselftoavCenterServersystem,itrequiresno
additional
authenticationtoaccessanyoftheESX/ESXisystemsmanagedbythatvCenterServersystem.
Thecredentialstoreconsistsof:
Credential Store Perl Library
B