Skip to content

"Queries(WQL)" and "Queries(CQL)" via omicli with "-u HostName\root" and "-synchronous" option should return correct data #293

@Wayenyin

Description

@Wayenyin

Good result:
Run command without "-synchronous":

 /opt/omi/bin/omicli -u root -p *** --auth NegoWithCreds --hostname omi64-cent7-01  --port 5985 --encryption none wql root/omi "select * from MSFT_President"
 instance of MSFT_President
 {
    Key=1
    First=George
    Last=Washington
 }
 instance of MSFT_President
 {
    Key=2
    First=John
    Last=Adams
 }

Issue:
Run command with "-synchronous":

 /opt/omi/bin/omicli -u root -p *** --auth NegoWithCreds --hostname omi64-cent7-01  --port 5985 --encryption none -synchronous  wql root/omi "select * from MSFT_President"
 instance of MSFT_President
 {
    Key=2
    First=John
    Last=Adams
 }
 /opt/omi/bin/omicli: result: MI_RESULT_FAILED
 instance of OMI_Error
 {
    OwningEntity=OMI:CIMOM
    MessageID=OMI:MI_Result:1
    Message=Unknown failure
    MessageArguments={}
    PerceivedSeverity=7
    ProbableCause=0
    ProbableCauseDescription=Unknown failure
    CIMStatusCode=1
    OMI_Code=1
    OMI_Category=0
    OMI_Type=MI
    OMI_ErrorMessage=A general error occurred, not covered by a more specific error code.
 }

Build:omi-1.2.0-84.x86_64

Actual: output "MI_RESULT_FAILED"
Expect: output should be correct.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions