SMS SDK README





VMware vCenter Storage Monitoring Service API Readme




.Code
{
font-size: 11px; font-family:
"Courier New", Courier, monospace;
}

.Console
{
font-size: 11px; font-family:
"Courier New", Courier, monospace;
color: #ffffff;
font-weight: bold;
background: #000000;
}
.Caption {
font-size:11px; line-height:12px; text-transform: uppercase; FONT-WEIGHT: bold; COLOR: #000000; TEXT-DECORATION: none
}
.Exp {
font-size:11px; text-transform: uppercase; FONT-WEIGHT: bold; COLOR: #3366AA;
}
.Large { font-size: 16px; FONT-WEIGHT: bold; }

.Light-shade {
background-color: #ffffcc;
}
.Caps {
font-size:11px; text-transform: uppercase; COLOR: #000000; TEXT-DECORATION: none
}

.Parameter {
margin: 0 0 7px 0;
width: 100%;
font-size: 11px;
font-weight: bold;
}

.TableText {
FONT-SIZE: 11px;
}


.TableHead {
FONT-SIZE: 10px; font-weight: bold;
}

.BoldRedText {
FONT-WEIGHT: bold; COLOR: #CC0000; TEXT-DECORATION: none
}
.BoldBlue {
FONT-WEIGHT: bold; COLOR: #3366AA; TEXT-DECORATION: none
}
.Miniscule {font-size: 9px;
}

.Nav {font-size: 11px; COLOR: #3366AA;
}
h2 {font-weight:bold;}
h4 {
padding: 0;
font-size: 12px;
font-weight: bold;
border-top: 1px solid #dedede;
background-color:#E6EDF6;
}









VMware vCenter Storage Monitoring Service API Readme




 VMware SMS API Reference Documentation
 VMware SMS API Java Samples Documentation







Welcome to the VMware vCenter Storage Monitoring Service API.
This Readme contains these topics:

About VMware vCenter Storage Monitoring Service
About VMware vCenter Storage Monitoring Service API
Package Contents
Requirements
Samples Listing
Documentation

VMware SMS API Reference Documentation
VMware SMS API Java Samples Documentation



Checklist of Setup Tasks for Development
VMware Resources










For up-to-date information:


Beta or Pre-release Products

VMware Beta Community

Released SDK ProductsVMware APIs and SDKs Documentation










About VMware vCenter Storage Monitoring Service

The VMware vCenter Storage Monitoring Service (SMS) provides simplified access to all vCenter storage information
associated with VMware vCenter servers. It is a Web service that runs in the Apache Tomcat
container, available on the vCenter Server.



SMS is installed by default on vCenter Server systems. SMS has its own in-memory database (the SMS cache)
that periodically synchronizes its data with the vCenter database. You can use the
SmsServiceInstance.ConfigureSyncInterval method to set the cache synchronization interval.



About the vCenter Storage Monitoring Service API

As with other vCenter servers (ESX, ESXi, vCenter), the vCenter Storage Monitoring Service (SMS) exposes
a Web-services-based API, the SMS API. The vCenter SMS API provides programmatic access
to the Storage Monitoring Service.


To obtain information about storage across the entire datacenter, it is easier to use the SMS API
than the vSphere API. Developers who are familiar with the vSphere API should note that for the SMS API,
entity types include:

cluster
datacenter
datastore
storagePod
host
nasMount
resourcePool
scsiAdapter
scsiPath
scsiTarget
scsiVolume
vm
vmFile



Operations provided by the SMS API include:


QueryList   Obtain all properties associated with instances of the specified entity type.
QueryTopology   Obtain a list of nodes and edges that comprise the specified entity.
Sync  Synchronize the SMS cache with the vCenter database. Synchronization occurs every 30 minutes, by default, but you can use this operation to force synchronization. Typically, you may want to synchronize only after certain operations, such as a provisioning operation.


See the SMS API Reference documentation for complete information.


Package Contents
The VMware vCenter Storage Monitoring Service API is a component of the VMware vSphere Web Services SDK. It includes API Reference documentation, sample code, and client-side proxy code that you can use to develop your client applications.

Directory structure


Directory or filenameDescription
C:\Program Files\VMware\Infrastructure\VirtualCenter Server\tomcat\webapp\smsPath to the Tomcat servlet that implements the Storage Monitoring Service API.
%SDKHOME%\docs\ReferenceGuideAPI reference documentation for the vCenter Storage Monitoring Service API.
%SDKHOME%\smsPath containing WSDL, build scripts (build.bat, build.sh), run scripts (run.bat, run.sh), and other development setup tools.
%SDKHOME%\java\JAXWS\samples\com\vmware\samples\smsSamples demonstrating how to use the SMS API.
%SDKHOME%\docs\java\JAXWSJavadoc documentation for the sample applications.




Requirements
To use the vCenter Storage Monitoring Service API, you must have access to vCenter Server (5.0 or subsequent release) and the vSphere Web Services SDK. The vCenter Storage Monitoring Service runs in conjunction with vCenter Server. It is installed during the process of installing the vCenter Server. By default, the SMS package is installed in this sub-directory:


C:\Program Files\VMware\Infrastructure\VirtualCenter Server\tomcat\webapp\sms


The SMS API is supported on the Web service that runs at this path:

/sms/sdk

Samples Listing
The vCenter SMS API includes several Java samples, available in the SDK package:




Sample
Description




ConfigureSyncInterval.javaSet the number of seconds between synchronizing the Storage Monitoring Service database with the vCenter (or other source) database.

QueryDatastoresInDcWithFilter.javaObtain a list of datacenter objects from the inventory and then list datastores associated with each datacenter, sorting and filtering the results according to the specifications passed as command-line arguments.


QueryScsiVolumesInDc.javaObtain a list of datacenter objects from the inventory and then list LUNs (SCSIvolume objects) associated with each datacenter.

QueryTopology.javaDisplay all nodes (and the edges contained in each) for the specified datacenter.



Sync.java.javaSynchronize the Storage Monitoring Service database cache with a source (provider), such as vCenter database.

UpdateVcDbConnectionInfo.javaConfigures JDBC connection information (jdbcUsername, jdbcPassword, jdbcUrl) for the connection from the SMS database to the vCenter database.
SampleProvider.javaDemonstrates registration, listing and deregistration of a VASA provider. It requires access to an active VASA provider.




Documentation
Documentation for this release of the SMS API includes:

SMS-SDK-README.html (this document)
vCenter SMS API Reference documentation
Sample Applications Javadoc Reference



Checklist of Setup Tasks
To get started using the SMS SDK:
Install a Java development environment.
Configure the environment as defined in the vSphere Web Services SDK Developer’s Setup Guide. In addition to the environment variables defined in that guide, you must also set a VIMSDKHOME environment variable that identifies the location of the SDK installed on your development machine.
Use the build script (build.bat, build.sh) to generate the client-side proxy code and compile all the samples.
See the samples Javadoc for information about how to run any of the samples.




VMware Resources

Developer Center
Knowledge Base
User Groups
VMware Communities









Copyright © 2009-2012 VMware, Inc. All rights not expressly granted herein
are reserved.


Last updated 10Sep2012  |  VMware vSphere Web Services SDK 5.1 | VMware vCenter SMS API 3.0









Wyszukiwarka

Podobne podstrony:
SSO SDK README
SDK README
SMS SCCM ReadMe
README
Readme
readme
readme
readme
7 ReadMe
dist mem gen v6 2 readme
ReadMe
readme
Mscode99 README

więcej podobnych podstron