📄 output.master
字号:
Valid cases:All options specified except hostnamewbemexec -p 5988 -v 1.1 -m M-POST -t 10000 -u guest -w guest ./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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM>All options specified except hostnamewbemexec -p5988 -v1.1 -mM-POST -t10000 -uguest -wguest ./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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM>Test cases for timeout option:minimum valid timeout value (milliseconds)wbemexec -t 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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM>XML request already encapsulated in HTTP M-POST requestwbemexec ./cimrequest.http<?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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM>Multiple CIM operation requestTimes out -- not yet supported by CIM Serverwbemexec -t 1 ./cimrequest04.xmlTimed out waiting for response Error cases:Missing argument for -h optionwbemexec -h < ./cimrequest.xmlwbemexec: Missing required value for flag husage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -p optionwbemexec -p < ./cimrequest.xmlwbemexec: Missing required value for flag pusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -v optionwbemexec -v < ./cimrequest.xmlwbemexec: Missing required value for flag vusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -m optionwbemexec -m < ./cimrequest.xmlwbemexec: Missing required value for flag musage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -t optionwbemexec -t < ./cimrequest.xmlwbemexec: Missing required value for flag tusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -u optionwbemexec -u < ./cimrequest.xmlwbemexec: Missing required value for flag uusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -w optionwbemexec -w < ./cimrequest.xmlwbemexec: Missing required value for flag wusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Missing argument for -d optionwbemexec -d < ./cimrequest.xmlwbemexec: Missing required value for flag dusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] 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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_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="CIM_ErrorCountersForDevice"/><CLASSNAME NAME="CIM_PhysicalStatistics"/><CLASSNAME NAME="CIM_DeviceStatistics"/><CLASSNAME NAME="CIM_SAPStatistics"/><CLASSNAME NAME="CIM_ServiceStatistics"/><CLASSNAME NAME="CIM_BGPServiceStatistics"/><CLASSNAME NAME="CIM_SystemStatistics"/></IRETURNVALUE></IMETHODRESPONSE></SIMPLERSP></MESSAGE></CIM>Empty string non-option argumentwbemexec "" < ./cimrequest.xmlUnable to use requested input file: file does not exist Empty string non-option argumentwbemexec "" ./cimrequest.xmlwbemexec: argument "./cimrequest.xml" was unexpectedusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Invalid option -xwbemexec -x < ./cimrequest.xmlwbemexec: Unknown flag -xusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Invalid option -xwbemexec -u guest -w guest -x < ./cimrequest.xmlwbemexec: Unknown flag -xusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Invalid option -xwbemexec -u guest -x -w guest < ./cimrequest.xmlwbemexec: Unknown flag -xusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Invalid option -xwbemexec -x foo < ./cimrequest.xmlwbemexec: Unknown flag -xusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Invalid option -xwbemexec -xfoo < ./cimrequest.xmlwbemexec: Unknown flag -xusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -h optionwbemexec -h chacha -h cancan ./cimrequest.xmlwbemexec: duplicate "-h" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -p optionwbemexec -p 5988 -p 81 ./cimrequest.xmlwbemexec: duplicate "-p" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -v optionwbemexec -v 1.0 -v 1.1 ./cimrequest.xmlwbemexec: duplicate "-v" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -m optionwbemexec -m POST -m M-POST ./cimrequest.xmlwbemexec: duplicate "-m" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -t optionwbemexec -t 25000 -t 30000 ./cimrequest.xmlwbemexec: duplicate "-t" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -u optionwbemexec -u guest -u guest2 ./cimrequest.xmlwbemexec: duplicate "-u" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Duplicate -w optionwbemexec -w guest -w guest2 ./cimrequest.xmlwbemexec: duplicate "-w" optionusage: wbemexec [ -h hostname ] [ -p portnumber ] [ -v httpversion ] [ -m httpmethod ] [ -t timeout ] [ -u username ] [ -w password ] [ inputfilepath ] Multiple inputfilepath arguments
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -