wbemexec(1)
π wbemexec(1) β the manual page, but make it make sense π
okay so bestie, this is wbemexec, aka the little command-line bestie that talks to your CIM Server for you. she's giving glow-up for CIM operations and honestly? iconic. let's get into it π¦
β¨ NAME β¨
wbemexec β submit a CIM operation request to a CIM Server
πΈ SYNOPSIS πΈ
wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ]
[ -m httpmethod ] [ -t timeout ] [ -u username ]
[ -w password ] [ -s ] [ --help ] [ --version ]
[ inputfilepath ]
π DESCRIPTION π
The wbemexec command is a whole command line interface to a CIM Server. the way that works: the input to the command is a CIM request encoded in XML, and that request gets submitted to the CIM Server for execution. she's the messenger, she does not read the mail π
if the HTTP response from the CIM Server contains a status code of 200 (OK), then the result returned to stdout is the CIM response encoded in XML. slay. otherwise? the result returned to stdout is just the HTTP response. no filter, no notes, you get what the server said.
now for the β¨dramaβ¨ β some types of invalid XML requests get caught by wbemexec herself, and some get caught by the CIM Server. lowkey two different bouncers at the same club πͺ
- some types of invalid XML requests β for example a missing
PROTOCOLVERSIONattribute or a missingNAMEattribute β are detected bywbemexec, and result in an error message fromwbemexec. - other invalid XML requests β for example an invalid
CIMVERSIONattribute value or a missing XML version β are detected by the CIM Server, and result in an HTTP response containing a non-Success status code, such as 501 (Not Implemented) or 400 (Bad Request).
the defaults, bestie, memorize them:
- by default, the request is sent as an HTTP/1.1 request, using the HTTP M-POST method.
- by default,
wbemexecwaits 20000 milliseconds (20 seconds), then times out if a response hasn't been received. she is patient but she is not that patient π - input is read from
stdinif no input file is specified. - by default, the operation is executed on the local host.
wbemexecfirst attempts to connect to the CIM Server on the default port for thewbem-httpservice, and if that fails, another attempt is made on the default port for thewbem-httpsservice. she tries again. resilience queen π
π Options π
wbemexec recognizes the following options:
-hhostname β connect to the CIM Server on the specified host. if this option is not specified,wbemexecconnects to the local host.--helpβ display command usage information. your lil cheat sheet π«Ά-mhttpmethod β use the specified HTTP method for the request. the method must be"POST"or"M-POST". that's it. those are the options. pick one π-pportnumber β connect to the CIM Server on the specified port number. if this option is not specified,wbemexecconnects to the default port for thewbem-httpservice, or, if the-soption is specified, to the default port for thewbem-httpsservice.-sβ enable the use of the SSL protocol between and the CIM server. the-soption should be specified if the CIM Server on the specified hostname/portnumber expects clients to connect using HTTPS. secure the bag π-ttimeout β wait the specified number of milliseconds on sending a request, before timing out if no response has been received. the timeout value must be an integer value greater than 0.-uusername β connect as the specified R username. (yes bestie, the page literally says "R username", we report the lore as it is π) if username is not specified, the current logged in user is used for authentication. this option is ignored if neither hostname nor portnumber is specified.-vhttpversion β use the specified HTTP version for the request. the version must be"1.0"or"1.1". the1.0version may not be specified if the M-POST method is specified. not me catching that contradiction before you did π--versionβ display CIM Server version. lil identity check β¨-wpassword β authenticate the connection using the specified password. this option is ignored if neither hostname nor portnumber is specified.
WARNING, bestie, read this one fr fr: a password should not be specified on the command line on a multi-user system, since command-line options are typically world-readable for a short window of time. if the remote host requests authentication and this option is not specified,wbemexecwill prompt for the password. (seecimconfig(1) for information on configuring the CIM Server.)
π EXIT STATUS π
when an error occurs, an explanatory error message is written to stderr and an appropriate value is returned. the following exit values are returned:
0β Success1β Error
π¦ USAGE NOTE π¦
the wbemexec command requires that the CIM Server is running. no server, no slay. that's the vibe check π«Ά
β EXAMPLES β
submit an XML request contained in the file cimrequest.xml to the CIM Server running on the local host on the default port:
wbemexec cimrequest.xml
submit an XML request contained in the file cimrequest.xml to the CIM Server running on the host hpserver on port 49152, using the username guest and password guest for authentication:
wbemexec -h hpserver -p 49152 -u guest -w guest cimrequest.xml
π SEE ALSO π
cimserver(1), cimconfig(1).
π STANDARDS CONFORMANCE π
wbemexec: CIM Operations over HTTP 1.0, Representation of CIM in XML 2.0
and that's the whole page, bestie π this was wbemexec(1) β that's the manual name right there in the corner, same one at the top and the bottom, keeping it symmetrical for the aesthetic π mwah, go submit some requests, you're gonna eat β¨
π¦ where this page comes from
- centos-stream 10: tog-pegasus 2:2.14.1-79.el10 Β· MIT
- centos-stream 9: tog-pegasus 2:2.14.1-68.el9 Β· MIT
- fedora 43: tog-pegasus 2:2.14.1-86.fc43 Β· MIT
- fedora 44: tog-pegasus 2:2.14.1-89.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms