Instruction Manual
///////////////////////////////////////////////////////////////
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>enumerateInstanceNamesni
Enumerate all instancenames in namespaceenumallInstanceNamesniall
Enumerate instances of <classname>enumerateInstancesei
Enumerate Class Names of [ <classname> ]enumerateClassNamesnc
Enumerate classes of [ <classname> ]enumerateClassesec
Get class of <classname>getClassgc
Get instance of <objectname> | <classname>getInstancegi
Create one Instance of <Class> *<name=param>createInstanceci
Delete Instance of <objectname> or interactive of
<className>
deleteInstancedi
Not supportedcreateClasscc
Not supportedmodifyInstancemi
Delete Class of <classname>deleteClassdc
TBDgetPropertygp
TBDsetPropertysp
Get Qualifier of <qualifiername>getQualifiergq
MSA2000 G2 SMI-S Proxy Provider User Guide 37