HP 2000sa HP StorageWorks MSA2000 G2 SMI-S Proxy Provider User Guide (573100-0 - Page 37

Table 4 Pegasus CIMOM operations, interface to interact with the Pegasus CIMOM through CIM operations.

Page 37 highlights

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48

///////////////////////////////////////////////////////////////
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