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

///////////////////////////////////////////////////////////////
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 <instancename>
enumerateInstanceNames
ni
Enumerate all instancenames in namespace
enumallInstanceNames
niall
Enumerate instances of <classname>
enumerateInstances
ei
Enumerate Class Names of [ <classname> ]
enumerateClassNames
nc
Enumerate classes of [ <classname> ]
enumerateClasses
ec
Get class of <classname>
getClass
gc
Get instance of <objectname> | <classname>
getInstance
gi
Create one Instance of <Class> *<name=param>
createInstance
ci
Delete Instance of <objectname> or interactive of
<className>
deleteInstance
di
Not supported
createClass
cc
Not supported
modifyInstance
mi
Delete Class of <classname>
deleteClass
dc
TBD
getProperty
gp
TBD
setProperty
sp
Get Qualifier of <qualifiername>
getQualifier
gq
MSA2000 G2 SMI-S Proxy Provider User Guide
37