📄 result.master
字号:
Valid cases:All options specified except hostnamewbemexec -p 5988 -v 1.1 -m M-POST -t 10000 -u (PEGASUS_TEST_USER_ID) -w (PEGASUS_TEST_USER_PASS) ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Usage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ -s ] [ --help ] [ --version ] [ inputfilepath ]Options : -h - Connect to CIM Server on specified hostname --help - Display this help message -m - Use the specified HTTP method for the request -p - Connect to CIM Server on specified portnumber -s - Use SSL protocol between 'wbemexec' client and the CIM Server -t - Specify response timeout value in milliseconds -u - Authorize the operation using the specified username -v - Use the specified HTTP version for the request --version - Display CIM Server version number -w - Authorize the operation using the specified passwordUsage note: The wbemexec command requires that the CIM Server is running. Version 2.6.0 All options specified except hostnamewbemexec -p5988 -v1.1 -mM-POST -t10000 -u(PEGASUS_TEST_USER_ID) -w(PEGASUS_TEST_USER_PASS) ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> No options specifiedwbemexec < ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Test cases for HTTP version option:-v 1.0 option specifiedwbemexec -v 1.0 ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> -v 1.1 option specifiedwbemexec -v 1.1 ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Test cases for HTTP method option:-m POST option specifiedwbemexec -m POST ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> -m M-POST option specifiedwbemexec -m M-POST ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> -m POST -v 1.0 specifiedwbemexec -v 1.0 -m POST ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> -m POST -v 1.1 specifiedwbemexec -v 1.1 -m POST ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> -m M-POST -v 1.1 specifiedwbemexec -v 1.1 -m M-POST ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Test cases for timeout option:maximum valid timeout value (milliseconds)wbemexec -t 4294967295 ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Error cases:Missing argument for -h optionwbemexec -h < ./cimrequest.xml wbemexec: Missing required value for flag hwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -p optionwbemexec -p < ./cimrequest.xml wbemexec: Missing required value for flag pwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -v optionwbemexec -v < ./cimrequest.xml wbemexec: Missing required value for flag vwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -m optionwbemexec -m < ./cimrequest.xml wbemexec: Missing required value for flag mwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -t optionwbemexec -t < ./cimrequest.xml wbemexec: Missing required value for flag twbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -u optionwbemexec -u < ./cimrequest.xml wbemexec: Missing required value for flag uwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -w optionwbemexec -w < ./cimrequest.xml wbemexec: Missing required value for flag wwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Missing argument for -d optionwbemexec -d < ./cimrequest.xml wbemexec: Missing required value for flag dwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Non-option argument -Works -- getoopt behavior differs from other implementations of getoptwbemexec - < ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Non-option argument -Works -- getoopt behavior differs from other implementations of getoptwbemexec - ./cimrequest.xml <?xml version="1.0" encoding="utf-8"?><CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="7873" PROTOCOLVERSION="1.0"><SIMPLERSP><IMETHODRESPONSE NAME="EnumerateClassNames"><IRETURNVALUE><CLASSNAME NAME="WET_PhysicalStatistics"/><CLASSNAME NAME="WET_DeviceStatistics"/><CLASSNAME NAME="WET_SAPStatistics"/><CLASSNAME NAME="WET_ServiceStatistics"/><CLASSNAME NAME="WET_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM> Empty string non-option argumentwbemexec "" < ./cimrequest.xml wbemexec: Unable to use requested input file: file does not exist Empty string non-option argumentwbemexec "" ./cimrequest.xml wbemexec: argument "./cimrequest.xml" was unexpectedwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Invalid option -xwbemexec -x < ./cimrequest.xml wbemexec: Unknown flag -xwbemexec: Invalid option. Use '--help' to obtain command syntax. Invalid option -xwbemexec -u (PEGASUS_TEST_USER_ID) -w (PEGASUS_TEST_USER_PASS) -x < ./cimrequest.xml wbemexec: Unknown flag -xwbemexec: Invalid option. Use '--help' to obtain command syntax. Invalid option -xwbemexec -u (PEGASUS_TEST_USER_ID) -x -w (PEGASUS_TEST_USER_PASS) < ./cimrequest.xml wbemexec: Unknown flag -xwbemexec: Invalid option. Use '--help' to obtain command syntax. Invalid option -xwbemexec -x foo < ./cimrequest.xml wbemexec: Unknown flag -xwbemexec: Invalid option. Use '--help' to obtain command syntax. Invalid option -xwbemexec -xfoo < ./cimrequest.xml wbemexec: Unknown flag -xwbemexec: Invalid option. Use '--help' to obtain command syntax. Duplicate -h optionwbemexec -h chacha -h cancan ./cimrequest.xml wbemexec: duplicate "-h" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -p optionwbemexec -p 5988 -p 81 ./cimrequest.xml wbemexec: duplicate "-p" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -v optionwbemexec -v 1.0 -v 1.1 ./cimrequest.xml wbemexec: duplicate "-v" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -m optionwbemexec -m POST -m M-POST ./cimrequest.xml wbemexec: duplicate "-m" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -t optionwbemexec -t 25000 -t 30000 ./cimrequest.xml wbemexec: duplicate "-t" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -u optionwbemexec -u (PEGASUS_TEST_USER_ID) -u (PEGASUS_TEST_USER_ID)2 ./cimrequest.xml wbemexec: duplicate "-u" optionwbemexec: Incorrect usage. Use '--help' to obtain command syntax. Duplicate -w optionwbemexec -w (PEGASUS_TEST_USER_PASS) -w (PEGASUS_TEST_USER_PASS)2 ./cimrequest.xml
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -