HP 2000sa HP StorageWorks MSA2000 G2 SMI-S Proxy Provider User Guide (573100-0 - Page 35
Client API Interface
View all HP 2000sa manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 35 highlights
5 Client API Interface Client applications can use any supported client interface that is supported by the Pegasus CIMOM. Please refer to http://cvs.opengroup.org/pegasus-doc/ClientInterfaces.html for more details on the client interfaces supplied by Open Pegasus. Provided below is a sample C++ client application to collect Disk asset information using the HP MSA2000 G2 proxy provider. This application assumes that the proxy provider has already been configured to manage at least one MSA2000 G2 system. #include #include #include #include #include #include #include #include #include #include #include #include #include #include PEGASUS_USING_PEGASUS; PEGASUS_USING_STD; static AtomicInt errorCount(0); Array instanceRef; void connectClient( CIMClient *client, String host, Uint32 portNumber, String userName, String password, Boolean useSSL, Boolean localConnection, Uint32 timeout) { try { client->setTimeout(timeout); if (useSSL) { cout