SimpleAgent

The SimpleAgent class uses the local credential store to obtain user account
and password information, for automated logon to the target host system.
SimpleAgent can be used with {@link CreateUser}, to
demonstrate using the {@link CredentialStore} client API.
SimpleAgent accesses the local credential store to obtain a single user
account to login to the specified server (--hostName is the only common-line
argument). If more than one user account exists in the credential store,
an error message displays.
To create user accounts and store them in the local credential store, use
the {@link CredentialStoreAdmin} client utility.

Parameters:
hostName           [required] : The fully-qualified domain name of the server

Command Line:
run.bat com.vmware.simpleagent.SimpleAgent --hostName [myServerName]

VMware vSphere Web Services Java Samples

This sample was originally released as a part of vSphere 6.0 under license terms that contained a provision that disallowed redistribution in source form. In order to encourage growth of community around VMware samples, these samples are being re-released under a commercially friendly open source license (BSD 3-Clause). See the file header for details.

The samples themselves are identical to the official release version with the exception of a changed copyright and license header on each file.

If you wish to run this sample, please download the official SDK from https://my.vmware.com/group/vmware/get-download?downloadGroup=MNGMTSDK600 and follow the provided instructions.

These samples are provided for reference with no warranty expressed or implied.

Sign in to be able to add comments.

Comments 0