SIROCCO :: CIMI :: Client

The OW2 Consortium is an open source community committed to making available to everyone the best and most reliable middleware technology, including generic enterprise applications and cloud computing technologies. The mission of the OW2 Consortium is to i) develop open source code for middleware, generic enterprise applications and cloud computing and ii) to foster a vibrant community and business ecosystem.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

org.ow2.sirocco.cimi
ArtifactId

ArtifactId

sirocco-cimi-client
Last Version

Last Version

0.6.5
Release Date

Release Date

Type

Type

zip
Description

Description

SIROCCO :: CIMI :: Client
The OW2 Consortium is an open source community committed to making available to everyone the best and most reliable middleware technology, including generic enterprise applications and cloud computing technologies. The mission of the OW2 Consortium is to i) develop open source code for middleware, generic enterprise applications and cloud computing and ii) to foster a vibrant community and business ecosystem.
Project Organization

Project Organization

OW2 Consortium
Source Code Management

Source Code Management

https://github.com/ow2-sirocco/sirocco-cimi-client

Download sirocco-cimi-client

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • sirocco-cimi-java-sdk
  • sirocco-cimi-command-line-tools

Sirocco DMTF CIMI Java SDK and commmand-line tools

Can be used with any CIMI compliant provider.

Java Client example

// machine creation

CimiClient cimiClient = CimiClient.login(cimiEndpointUrl, login,password);
MachineCreate machineCreate = new MachineCreate();
MachineTemplate machineTemplate = new MachineTemplate();
machineTemplate.setMachineConfigRef(configId);
machineTemplate.setMachineImageRef(imageId);
machineTemplate.setCredentialRef(credId);
machineCreate.setMachineTemplate(machineTemplate);
machineCreate.setName("myMachine");
machineCreate.setDescription("a test machine");
CreateResult<Machine> result = Machine.createMachine(cimiClient,machineCreate);
String machineId=result.getResource().getId();
System.out.println("Creating machine "+machineId);
result.getJob().waitForCompletion(60, TimeUnit.SECONDS);
			
Machine machine=Machine.getMachineByReference(cimiClient, machineId);
			
for(MachineNetworkInterface nic: machine.getNetworkInterfaces()) {
   System.out.println("IP address: "+nic.getAddresses().get(0));
}

Command-line tools example

cimiclient machineconfig-list -select name,cpu,memory
+-------------------------------------------+--------+---+------+
|id                                         |name    |cpu|memory|
+-------------------------------------------+--------+---+------+
|http://myprovider.com/cimi/machineConfigs/1|micro   |1  |630 MB|
|http://myprovider.com/cimi/machineConfigs/2|tiny    |1  |512 MB|
|http://myprovider.com/cimi/machineConfigs/3|small   |2  |2 GB  |
+-------------------------------------------+--------+---+------+

cimiclient  machineimage-list -select id,description -first 1 -last 4
+------------------------------------------+-----------------------------------+
|id                                        |description                        |
+------------------------------------------+-----------------------------------+
|http://myprovider.com/cimi/machineImages/1|Ubuntu Oneiric 11.10 Server 64 bits|
|http://myprovider.com/cimi/machineImages/2|Ubuntu 11.04 server 64bits         |
|http://myprovider.com/cimi/machineImages/3|Debian 5.0 32 bits                 |
|http://myprovider.com/cimi/machineImages/4|LAMP stack on Debian 5.0           |
+------------------------------------------+-----------------------------------+

More info

org.ow2.sirocco.cimi

OW2 Sirocco

Versions

Version
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0