Loading...
You are not logged-in Login/Register





  • Posts   Search Threads
  • Stephen Hibbert (Intel)July 9, 2009 9:13 AM PDT   
    GetEndpointReference not working

    The GetEndpointReference function in WSManClient.cs (C#) will not work for CIM objects of certain types. For example, I'm trying to get/set the active system defense policy. I can use Enumerate(typeof(AMT_NetworkPortSystemDefensePolicy)), which will return up to 2 CIM objects (one for wired and one for wireless). However, if I try using GetEndpointReference on one of these objects, I get this error: "Unable to cast object of type 'MOF_CLASSES.EndpointReferenceType' to type 'System.String'." This is a problem since I can't update/delete a specific instance without its EPR. So if I wanted to change the active policy on the wired interface, I wouldn't be able to do so.

    AMT_NetworkPortSystemDefensePolicy has Antecedent and Dependent as its fields (both of type EndpointReference). Since the field contanis an object and not a value that can be converted to a string, GetEndpointReference fails. Is there a solution to this problem? Or is there another way to do what I'm trying to do?



    Gael Holmes Hofemeier (Intel)July 9, 2009 11:58 AM PDT
    Rate
     
    Re: GetEndpointReference not working

    The GetEndpointReference function in WSManClient.cs (C#) will not work for CIM objects of certain types. For example, I'm trying to get/set the active system defense policy. I can use Enumerate(typeof(AMT_NetworkPortSystemDefensePolicy)), which will return up to 2 CIM objects (one for wired and one for wireless). However, if I try using GetEndpointReference on one of these objects, I get this error: "Unable to cast object of type 'MOF_CLASSES.EndpointReferenceType' to type 'System.String'." This is a problem since I can't update/delete a specific instance without its EPR. So if I wanted to change the active policy on the wired interface, I wouldn't be able to do so.

    AMT_NetworkPortSystemDefensePolicy has Antecedent and Dependent as its fields (both of type EndpointReference). Since the field contanis an object and not a value that can be converted to a string, GetEndpointReference fails. Is there a solution to this problem? Or is there another way to do what I'm trying to do?


    Hello Stephen,
    This looks potentially like a bug in the SDK in handling nested ERPs.  We are contacting our development team to investigate further.



    Follow me on Twitter: GH_at_Intel

Forum jump:  

Intel Software Network Forums Statistics

17,025 users have contributed to 48,317 threads and 172,754 posts to date.

In the past 24 hours, we have 9 new thread(s) 56 new posts(s), and 52 new user(s).

In the past 3 days, the most popular thread for everyone has been How to manage rounding by IVF ?? The most posts were made to Most likely, the issue is that The post with the most views is Optimalization of sine function\'s taylor expansion

Please welcome our newest member redfruit83


For more complete information about compiler optimizations, see our Optimization Notice.