beautypg.com

Pegasus cimom operations – HP 2000SA G2-Modular-Smart-Array User Manual

Page 37

background image

///////////////////////////////////////////////////////////////

int main(int argc, char** argv)

{

char *address_string = NULL;

Boolean localConnection = false;

Boolean useSSL = false;

Uint32 timeout = 60000;

char host[20], userName[20], password[20];

Uint32 portNumber;

char ch;

std::cout << "Enter Proxy Provider IP:";

std::cin >> host;

std::cout << "Enter Port Number:";

std::cin >> portNumber;

std::cout << "Enter User Name:";

std::cin >> userName;

std::cout << "Enter Password:";

std::cin >> password;

CIMClient* client;

client = new CIMClient();

connectClient(client, String(host), portNumber, String(userName),

String(password), useSSL, localConnection, timeout);

// clean up

delete client;

}

Also, OpenPegasus releases provide simple CIM utilities that can be used for interacting with the
Pegasus CIMOM and the providers. Cimcli is a CLI tool that provides an interactive/non-interactive
interface to interact with the Pegasus CIMOM through CIM operations.

Table 4 Pegasus CIMOM operations

Enumerate instancenames of

enumerateInstanceNames

ni

Enumerate all instancenames in namespace

enumallInstanceNames

niall

Enumerate instances of

enumerateInstances

ei

Enumerate Class Names of [ ]

enumerateClassNames

nc

Enumerate classes of [ ]

enumerateClasses

ec

Get class of

getClass

gc

Get instance of |

getInstance

gi

Create one Instance of *

createInstance

ci

Delete Instance of or interactive of

deleteInstance

di

Not supported

createClass

cc

Not supported

modifyInstance

mi

Delete Class of

deleteClass

dc

TBD

getProperty

gp

TBD

setProperty

sp

Get Qualifier of

getQualifier

gq

MSA2000 G2 SMI-S Proxy Provider User Guide

37

This manual is related to the following products: