#54 Pegasus CLI client fails on enmerateinstances

Usability
closed-duplicate
sfcb (1090)
5
2005-05-18
2005-04-17
No

Running some additional tests with the Pegasus CLI
client shows that CLI appears to fail consistently
running ei (enumerateisntances) against sfcb for
various classes, eg Linux_OperatingSystem. Same command
runs fine with wbemcli. Not sure if bug in CLI or if
sfcb is returning 'bad' XML.

[bestorga@bestorga bestorga]$ wbemcli ein
'http://localhost:5988/root/cimv2:Linux_OperatingSystem'
localhost:5988/root/cimv2:Linux_OperatingSystem.CSCreationClassName="Linux_ComputerSystem",CSName="bestorga.ibm.com",CreationClassName="Linux_OperatingSystem",Name="bestorga.ibm.com"

[bestorga@bestorga bestorga]$ wbemcli ei
'http://localhost:5988/root/cimv2:Linux_OperatingSystem'
localhost:5988/root/cimv2:Linux_OperatingSystem.Name="bestorga.ibm.com",CreationClassName="Linux_OperatingSystem",CSName="bestorga.ibm.com",CSCreationClassName="Linux_ComputerSystem"
CSCreationClassName="Linux_ComputerSystem",CSName="bestorga.ibm.com",CreationClassName="Linux_OperatingSystem",Name="bestorga.ibm.com",Status="NULL",Caption="Operating
System",Description="A class derived from
OperatingSystem to represents the running Linux
OS.",OSType=36,OtherTypeDescription="NULL",Version="Red
Hat Enterprise Linux WS release 3 (Taroon Update 2)
JPackage release 1.5 (Red Hat Linux) for noarch
LSB_VERSION=\"1.3\" Linux Client for e-business release
3.50
RC2",NumberOfUsers=6,NumberOfProcesses=118,MaxNumberOfProcesses=104793,MaxProcessMemorySize=4294967295,PctTotalCPUTime=10,Distributed=FALSE,TotalSwapSpaceSize=0,TotalVirtualMemorySize=3071196,FreeVirtualMemory=2619964,TotalVisibleMemorySize=1030004,FreePhysicalMemory=578772,SizeStoredInPagingFiles=2041192,FreeSpaceInPagingFiles=2041192,CurrentTimeZone=-420,LocalDateTime=20050416172948.000000-420,InstallDate=20040922014008.000000-420,LastBootUpTime=20050416233309.000000-420,CodeSet="ANSI_X3.4-1968",LanguageEdition="en-US",DefaultPageSize=4096,OperationalStatus=2,ElementName="Red
Hat Enterprise Linux WS release 3 (Taroon Update 2)
JPackage release 1.5 (Red Hat Linux) for noarch
LSB_VERSION=\"1.3\" Linux Client for e-business release
3.50
RC2",EnabledState=2,OtherEnabledState="NULL",RequestedState=2,EnabledDefault=2

but when try the same commands with CLI

[bestorga@bestorga wbem]$ CLI ni Linux_OperatingSystem
Linux_OperatingSystem.CreationClassName="Linux_OperatingSystem",CSCreationClassName="Linux_ComputerSystem",CSName="bestorga.ibm.com",Name="bestorga.ibm.com"

[bestorga@bestorga wbem]$ CLI ei Linux_OperatingSystem
CLI Pegasus Exception: Malformed HTTP response
message.. Cmd = ei Object = Linux_OperatingSystem

[bestorga@bestorga wbem]$ CLI -d -v -x ei
Linux_OperatingSystem
Namespace = root/cimv2
User=
Password=
xmlOutput set
Output Format = mof
Repeat Count= 0
TEST Command = ei
Connecting to localhost:5988 for User = password =
EnumerateInstances Namespace = root/cimv2, Class =
Linux_OperatingSystem, deepInheritance = false,
localOnly = true, includeQualifiers = true,
includeClassOrigin = false, PropertyList = NULL
CLI Pegasus Exception: Malformed HTTP response
message.. Cmd = ei Object = Linux_OperatingSystem

The full XML returned from sfcb is (from wbemcli -dx):

[bestorga@bestorga bestorga]$ wbemcli -dx ei
'http://localhost:5988/root/cimv2:Linux_OperatingSystem'
To server: <?xml version="1.0" encoding="utf-8" ?>
<CIM CIMVERSION="2.0" DTDVERSION="2.0">
<MESSAGE ID="4711"
PROTOCOLVERSION="1.0"><SIMPLEREQ><IMETHODCALL
NAME="EnumerateInstances"><LOCALNAMESPACEPATH><NAMESPACE
NAME="root"></NAMESPACE><NAMESPACE
NAME="cimv2"></NAMESPACE></LOCALNAMESPACEPATH>
<IPARAMVALUE NAME="ClassName"><CLASSNAME
NAME="Linux_OperatingSystem"/></IPARAMVALUE>
<IPARAMVALUE
NAME="DeepInheritance"><VALUE>TRUE</VALUE></IPARAMVALUE>
<IPARAMVALUE
NAME="LocalOnly"><VALUE>FALSE</VALUE></IPARAMVALUE>
<IPARAMVALUE
NAME="IncludeQualifiers"><VALUE>FALSE</VALUE></IPARAMVALUE>
<IPARAMVALUE
NAME="IncludeClassOrigin"><VALUE>TRUE</VALUE></IPARAMVALUE>
</IMETHODCALL></SIMPLEREQ>
</MESSAGE></CIM>
From server: <?xml version="1.0" encoding="utf-8" ?>
<CIM CIMVERSION="2.0" DTDVERSION="1.1">
<MESSAGE ID="4711" PROTOCOLVERSION="1.0">
<SIMPLERSP>
<IMETHODRESPONSE NAME="EnumerateInstances">
<IRETURNVALUE>
<VALUE.NAMEDINSTANCE>
<INSTANCENAME CLASSNAME="Linux_OperatingSystem">
<KEYBINDING NAME="Name">
<KEYVALUE VALUETYPE="string">bestorga.ibm.com</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="CreationClassName">
<KEYVALUE
VALUETYPE="string">Linux_OperatingSystem</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="CSName">
<KEYVALUE VALUETYPE="string">bestorga.ibm.com</KEYVALUE>
</KEYBINDING>
<KEYBINDING NAME="CSCreationClassName">
<KEYVALUE
VALUETYPE="string">Linux_ComputerSystem</KEYVALUE>
</KEYBINDING>
</INSTANCENAME>
<INSTANCE CLASSNAME="Linux_OperatingSystem">
<PROPERTY NAME="CSCreationClassName" TYPE="string">
<VALUE>Linux_ComputerSystem</VALUE>
</PROPERTY>
<PROPERTY NAME="CSName" TYPE="string">
<VALUE>bestorga.ibm.com</VALUE>
</PROPERTY>
<PROPERTY NAME="CreationClassName" TYPE="string">
<VALUE>Linux_OperatingSystem</VALUE>
</PROPERTY>
<PROPERTY NAME="Name" TYPE="string">
<VALUE>bestorga.ibm.com</VALUE>
</PROPERTY>
<PROPERTY NAME="Status" TYPE="string">
<VALUE>NULL</VALUE>
</PROPERTY>
<PROPERTY NAME="Caption" TYPE="string">
<VALUE>Operating System</VALUE>
</PROPERTY>
<PROPERTY NAME="Description" TYPE="string">
<VALUE>A class derived from OperatingSystem to
represents the running Linux OS.</VALUE>
</PROPERTY>
<PROPERTY NAME="OSType" TYPE="uint16">
<VALUE>36</VALUE>
</PROPERTY>
<PROPERTY NAME="OtherTypeDescription" TYPE="string">
<VALUE>NULL</VALUE>
</PROPERTY>
<PROPERTY NAME="Version" TYPE="string">
<VALUE>Red Hat Enterprise Linux WS release 3 (Taroon
Update 2) JPackage release 1.5 (Red Hat Linux) for
noarch LSB_VERSION=&quot;1.3&quot; Linux Client for
e-business release 3.50 RC2</VALUE>
</PROPERTY>
<PROPERTY NAME="NumberOfUsers" TYPE="uint32">
<VALUE>6</VALUE>
</PROPERTY>
<PROPERTY NAME="NumberOfProcesses" TYPE="uint32">
<VALUE>121</VALUE>
</PROPERTY>
<PROPERTY NAME="MaxNumberOfProcesses" TYPE="uint32">
<VALUE>104793</VALUE>
</PROPERTY>
<PROPERTY NAME="MaxProcessMemorySize" TYPE="uint64">
<VALUE>4294967295</VALUE>
</PROPERTY>
<PROPERTY NAME="PctTotalCPUTime" TYPE="uint16">
<VALUE>10</VALUE>
</PROPERTY>
<PROPERTY NAME="Distributed" TYPE="boolean">
<VALUE>FALSE</VALUE>
</PROPERTY>
<PROPERTY NAME="TotalSwapSpaceSize" TYPE="uint64">
<VALUE>0</VALUE>
</PROPERTY>
<PROPERTY NAME="TotalVirtualMemorySize" TYPE="uint64">
<VALUE>3071196</VALUE>
</PROPERTY>
<PROPERTY NAME="FreeVirtualMemory" TYPE="uint64">
<VALUE>2574256</VALUE>
</PROPERTY>
<PROPERTY NAME="TotalVisibleMemorySize" TYPE="uint64">
<VALUE>1030004</VALUE>
</PROPERTY>
<PROPERTY NAME="FreePhysicalMemory" TYPE="uint64">
<VALUE>533064</VALUE>
</PROPERTY>
<PROPERTY NAME="SizeStoredInPagingFiles" TYPE="uint64">
<VALUE>2041192</VALUE>
</PROPERTY>
<PROPERTY NAME="FreeSpaceInPagingFiles" TYPE="uint64">
<VALUE>2041192</VALUE>
</PROPERTY>
<PROPERTY NAME="CurrentTimeZone" TYPE="sint16">
<VALUE>-420</VALUE>
</PROPERTY>
<PROPERTY NAME="LocalDateTime" TYPE="datetime">
<VALUE>20050416173844.000000-420</VALUE>
</PROPERTY>
<PROPERTY NAME="InstallDate" TYPE="datetime">
<VALUE>20040922014008.000000-420</VALUE>
</PROPERTY>
<PROPERTY NAME="LastBootUpTime" TYPE="datetime">
<VALUE>20050416233309.000000-420</VALUE>
</PROPERTY>
<PROPERTY NAME="CodeSet" TYPE="string">
<VALUE>ANSI_X3.4-1968</VALUE>
</PROPERTY>
<PROPERTY NAME="LanguageEdition" TYPE="string">
<VALUE>en-US</VALUE>
</PROPERTY>
<PROPERTY NAME="DefaultPageSize" TYPE="uint32">
<VALUE>4096</VALUE>
</PROPERTY>
<PROPERTY.ARRAY NAME="OperationalStatus" TYPE="uint16">
<VALUE.ARRAY>
<VALUE>2</VALUE>
</VALUE.ARRAY>
</PROPERTY.ARRAY>
<PROPERTY NAME="ElementName" TYPE="string">
<VALUE>Red Hat Enterprise Linux WS release 3 (Taroon
Update 2) JPackage release 1.5 (Red Hat Linux) for
noarch LSB_VERSION=&quot;1.3&quot; Linux Client for
e-business release 3.50 RC2</VALUE>
</PROPERTY>
<PROPERTY NAME="EnabledState" TYPE="uint16">
<VALUE>2</VALUE>
</PROPERTY>
<PROPERTY NAME="OtherEnabledState" TYPE="string">
<VALUE>NULL</VALUE>
</PROPERTY>
<PROPERTY NAME="RequestedState" TYPE="uint16">
<VALUE>2</VALUE>
</PROPERTY>
<PROPERTY NAME="EnabledDefault" TYPE="uint16">
<VALUE>2</VALUE>
</PROPERTY>
</INSTANCE>
</VALUE.NAMEDINSTANCE>
</IRETURNVALUE>
</IMETHODRESPONSE>
</SIMPLERSP>
</MESSAGE>
</CIM>
localhost:5988/root/cimv2:Linux_OperatingSystem.Name="bestorga.ibm.com",CreationClassName="Linux_OperatingSystem",CSName="bestorga.ibm.com",CSCreationClassName="Linux_ComputerSystem"
CSCreationClassName="Linux_ComputerSystem",CSName="bestorga.ibm.com",CreationClassName="Linux_OperatingSystem",Name="bestorga.ibm.com",Status="NULL",Caption="Operating
System",Description="A class derived from
OperatingSystem to represents the running Linux
OS.",OSType=36,OtherTypeDescription="NULL",Version="Red
Hat Enterprise Linux WS release 3 (Taroon Update 2)
JPackage release 1.5 (Red Hat Linux) for noarch
LSB_VERSION=\"1.3\" Linux Client for e-business release
3.50
RC2",NumberOfUsers=6,NumberOfProcesses=121,MaxNumberOfProcesses=104793,MaxProcessMemorySize=4294967295,PctTotalCPUTime=10,Distributed=FALSE,TotalSwapSpaceSize=0,TotalVirtualMemorySize=3071196,FreeVirtualMemory=2574256,TotalVisibleMemorySize=1030004,FreePhysicalMemory=533064,SizeStoredInPagingFiles=2041192,FreeSpaceInPagingFiles=2041192,CurrentTimeZone=-420,LocalDateTime=20050416173844.000000-420,InstallDate=20040922014008.000000-420,LastBootUpTime=20050416233309.000000-420,CodeSet="ANSI_X3.4-1968",LanguageEdition="en-US",DefaultPageSize=4096,OperationalStatus=2,ElementName="Red
Hat Enterprise Linux WS release 3 (Taroon Update 2)
JPackage release 1.5 (Red Hat Linux) for noarch
LSB_VERSION=\"1.3\" Linux Client for e-business release
3.50
RC2",EnabledState=2,OtherEnabledState="NULL",RequestedState=2,EnabledDefault=2

Discussion

  • Gareth S Bestor

    Gareth S Bestor - 2005-05-18
    • status: open --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks