3(2005-06-09)
π NAME π
cmciConnect() β bestie, it makes a CMCIClient object and the connection. Two for one, we love to see it. β¨
πΈ SYNOPSIS πΈ
#include <cmci.h>
CMCIClient*
cmciConnect(constchar*hostName,constchar*scheme,
constchar*hostPort,constchar*CimUsername,
constchar*CimPassword,CMPIStatus*rc);
CMCIClient*
cmciConnect2(constchar*hostName,constchar*scheme,
constchar*hostPort,constchar*CimUsername,
intverifyMode,constchar*trustStore,
constchar*certFile,constchar*keyFile,
constchar*CimPassword,CMPIStatus*rc);
π¦ DESCRIPTION π¦
Okay so. What this does is create a CMCIClient object and initialize it with the CIMOM connection hostname and port, the security credentials you need to log into the CIMOM, and the internals for sending requests and receiving responses from the CIMOM. Like, it's the whole little setup kit. π
The arguments are: the hostName and hostPort you wanna connect to, the CimUsername and CimPassword credentials for authenticating with the CIMOM, and a pointer to an object that's gonna receive the CMPIStatus operation status. That's the whole vibe check. π
β¨ cmciConnect2, the upgrade β¨
The function cmciConnect2 has the same purpose but offers extra parameters to control SSL operations. She's cmciConnect but with more going on, and honestly? Slay.
verifyModeβ specifies whether the server certificate for an SSL connection is to be verified. If set toCMCI_VERIFY_NONEthe server certificate will not be verified, if set toCMCI_VERIFY_PEERit will be verified against the certificates intrustStore.trustStoreβ contains the name of a file containing CA or client certificates against which the server certificate will be verified ifverifyModeis set toCMCI_VERIFY_PEER.certFileβ specifies the name of a file containing a client certificate which will be presented to the CIM server, if the CIM server implements certificate-based client authentication. Must be set toNULL, if no client certificates are available.keyFileβ specifies the name of a file containing the private key for the certificate specified viacertFile. Must be set toNULL, if no client certificates are available.
π«Ά Heads up bestie:certFileandkeyFileboth gotta beNULLif you don't have client certificates. Don't leave one hanging, that's not the move.
π RETURN VALUE π
When successful, the cmciConnect function returns a pointer to a dynamically allocated and initialized CMCIClient object with a successful operation status code set. Iconic. Winning. Ate.
When unsuccessful it returns NULL and sets the rc object with the error code and corresponding error string. Not the vibe, but at least she tells you why. π
π ERRORS π
Nothing listed here, bestie. The section is just... vibing. Empty. Living its truth. β¨
π₯ EXAMPLES π₯
CMCIClient *cc;
/* Setup a local conncetion to the CIMOM */
cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
π CONFORMING TO π
Also empty. She said "no thoughts, head empty" and honestly, respect. π
π SEE ALSO π
- Common Manageability Programming Interface (CMPI) - OpenGroup
CMCIClient(3)CMPIStatus(3)
And that's the whole page, bestie! π This one came out of the SFCBroker Client Library (that's the sfcc situation) and it's dated 2005-06-09, sitting all cozy in section 3. Go forth and connect responsibly. π¦πβ¨
π¦ where this page comes from
- centos-stream 10: sblim-sfcc 2.2.8-28.el10 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- centos-stream 9: sblim-sfcc 2.2.8-18.el9 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 43: sblim-sfcc 2.2.8-29.fc43 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- fedora 44: sblim-sfcc 2.2.8-30.fc44 Β· EPL-1.0
- nixos 26.05: sblim-sfcc 2.2.8-unstable-2023-06-26
- nixpkgs unstable: sblim-sfcc 2.2.8-unstable-2023-06-26
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- opensuse-leap 16.0: sblim-sfcc-devel 2.2.9~rc1-bp160.1.13 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms