Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a PowerShell cmdlet for OMI from CDXML on Linux #57

Closed
rhmoult opened this issue Aug 30, 2016 · 2 comments
Closed

Create a PowerShell cmdlet for OMI from CDXML on Linux #57

rhmoult opened this issue Aug 30, 2016 · 2 comments

Comments

@rhmoult
Copy link

rhmoult commented Aug 30, 2016

Good evening. I've been trying to create a PowerShell cmdlet for OMI from CDXML on Linux without success. I've been through Richard Siddaway's book and blog which describe how to do this on Windows, but when I go to run my shiny new cmdlet on Linux, I consistently get back the error below. Any chance I can sweet talk you into producing an example of a working cdxml cmdlet for PowerShell on Linux that I can use to Get-XYZ_Frog ?

I feel like there is a lot of potential here. I just need help getting started. Thanks for your consideration of the matter.

"Exception calling 'ProcessRecord' with '1' argument(s): 'The method or operation is not implemented.'"
At line: 108 char:5

  • $__cmdletization_objectModeWrapper.ProcessRecord($__cmdletizatio ..."
  • CategoryInfo: NotSpecified: (:) [], ParentContainsErrorRecordException
  • FullyQualifiedError ID : NotImplementedException
@paulcallen
Copy link
Contributor

there are various things that could be going wrong with this, all the way from PowerShell on Linux all the way through to OMI. Unfortunately we have not gone through this scenario yet to the best of my knowledge.
Things that could be wrong are:

  • Core PowerShell does not support cdxml yet (a question to powershell/powershell would help with that question)
  • Does cdxml use cimcmdlets by default? Not sure, but they are dependent on MMI (next item down) to work
  • Microsoft.Management.Infrastructure does not support what you need -- as of now only a couple of DSC scenarios were supported for compiling and applying DSC configuration. None of the CIM operations have been fully tested yet. Other operations are being busily tested and fixed with a hope to support all operations that OMI itself supports, both locally and remotely on Linux.
  • omi client does not do what you want, although local CIM operations for OMI should work and Windows remote operations to OMI on Linux should work. Linux to Windows is not yet supported for OMI yet, but we are busily working on that.

Things to try:

  • Install core powershell on windows and see if cdxml work locally
  • try using Microsoft.Management,Infrastructure directly within powershell on linux to issue the requests to your providers and see if they work

This is a scenario we want to get working! If there is something missing we will fix it.

@sarojcare
Copy link
Contributor

Close the case.

@palladia palladia closed this as completed Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants