VMware Site Recovery Manager SDK .NET (DotNet) Samples Readme
VMware Site Recovery Manager SDK Readme
Readme for Java (Axis) samples
Readme for Java (JAX-WS) samples
|
This document includes these topics:
This document contains summary information only.
|
| Note: Information in this document may not be current. For up-to-date information, check these VMware Web sites: |
|
|
|
Building the Samples
Currently the Site Recovery Manager SDK includes only one sample that can build on .NET. You can build C# (.NET) samples using Microsoft Visual C# 2008 Express or Microsoft Visual Studio 2008.
Prerequisites
- To build the sample on a 64-bit platform, you first need to run Windows\SysWOW64\cmd.exe.
Building the Samples Using Visual Studio 2008
- Open a Visual Studio 2008 command prompt from the Windows Start Menu:
- Select Start Menu > All Programs > Visual Studio 2008 > Visual Studio Tools > Visual Studio 2008 Command Prompt
-
Navigate to the SDK\samples\srm\DotNet sub-directory.
- Execute Build2008.cmd by entering the filename on the command line.
Building the Samples Using Visual C# 2008 Express
Select the default (Full) Microsoft Visual C# 2008 Express installation.
If your Microsoft Visual C# 2008 Express installation has not been configured using default locations, you must:
- Create a VSINSTALLDIR environment variable (System environment variable);
- Set the VSINSTALLDIR environment variable to the location of the Microsofts Visual Studio tools (in the Common7 sub-directory of the Microsoft Visual C# 2008 Express installation, which, by default, is in
c:\Program Files\Microsoft Visual Studio 9.0\Common7. Use quotation marks around directory names that have spaces in them. For example:
c:\apps\Microsoft Visual Studio 9.0
If Visual C# Express is installed in the default location (c:\Program Files\Microsoft Visual Studio 9.0), you do not need to create or set the VSINSTALLDIR environment variable.
To build the samples using the Visual C# 2008 Express:
- Open a Visual Studio 2008 command prompt from the Windows Start Menu:
- Select Start Menu > All Programs > Visual Studio 2008 > Visual Studio Tools > Visual Studio 2008 Command Prompt
- Navigate to the SDK\samples\srm\DotNet\ sub-directory.
- Execute Build2008.cmd by entering the filename on the command line.
Running the Samples
Samples can be executed from within the \bin or \debug directory of each project. You can also run samples from within Visual Studio, at the .NET command prompt.
To display help text for any application, simply run the application without any parameters.
To run any sample from within Visual Studio:
- Launch Visual Studio.
- Open the Samples2008.sln file.
- Change the Project Properties to specify the command line arguments:
- From the Project menu, select Properties to display the Property Pages dialog.
- In the Project_Name Property Pages dialog, select Configuration PropertiesDebugging in the left-hand pane.
- In the right-hand pane (under Start Options), select Command Line Arguments.
- Click OK to save your changes.
- Run the sample 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/srm/ReferenceGuide
| Sample | Description, command-line syntax, and example... |
|
RecoveryPlan |
This sample lists all recovery plans and optionally gets state for the specified plan.
Command line syntax:
RecoveryPlan --url webserviceurl --username username --password password --planname planname |
VMware Resources
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
|