# Vmware Site Recovery Manager Appliance Management API Java (Axis) Samples Readme
This document includes these topics: Building the Samples Sample Applications This document includes summary information only. |
Note: Information in this document may not be current. For up-to-date information, check these VMware Web sites:
Beta or Pre-release Products | VMware Beta Community
Released SDK Products | VMware vSphere Web Services SDK
1. ## Building the Samples To use the build script (build.bat) Set the environment variables as shown in the table.
   Environmentvariable | Description and usage notes | Example setting
   AXIS2_HOME | Complete path to the Apache Axis2 installation top-level directory. Must be set prior to using the build.bat script. | C:\apache\axis2-1.7.9
   JAVAHOME | Path to the binary directory for the Java JDK. | C:\Program Files\Java\jdk1.8.0_202
Open the Windows command prompt (or Linux shell). Navigate to the SDK\samples\drconfig\Axis\ sub-directory. Enter build at the command prompt. ## ## Sample Applications The SDK package includes generated Reference Guide for the available sample applications and helper classes, in this path: SDK/doc/drconfig/ReferenceGuide If the relative link above does not work, manually navigate to the sub-directory.
Sample | Description, command-line syntax, and example...
Configure | Configure the Site Recovery Manager Command line syntax: run.bat com.vmware.samples.drconfig.ConfigureAppliance --configure --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin --pscuri pscfqdn:443 --pscuser pscuser
Get Configuration | Print the current Site Recovery Manager configuration Command line syntax: run.bat com.vmware.samples.drconfig.ConfigureAppliance --get-config --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin
Clear | Clear the Site Recovery Manager configuration Command line syntax: run.bat com.vmware.samples.drconfig.ConfigureAppliance --clear --drconfigaddr `https://FQDN_or_IP_Address:5480/configureserver/sdk` --drconfiguser admin --pscuser pscuser
### ## VMware Resources Developer Center Knowledge Base User Groups VMware Communities VMware Developer Community Copyright © 1998–2020 VMware, Inc. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Last updated: 27-Jan-2020 5:00 pm | VMware Site Recovery Manager SDK