I’m tinkering around with this Solarwinds MP and there is a discovery ps1 script inside of it. Does anyone know how to find a script such as this after the MP has already been imported? I need to open it, make some changes, and then let it run again. I’m just not sure how to do this.
Gary, good point. – I have added a new, un-sealead verion now to GitHub.
Please have a try and let me know if it works.
If you need support to make it work in your environment, let me know.
PS: I wrote modifiable as the sources are available. ^_^
The script will be stored within the XML of the MP. If the MP is unsealed, you can export it, amend it, increment the version number and re-import.
If it’s sealed, you can’t. Sealed basically uses a cert generated by the vendor that you won’t be able to recreate.
If you simply want to get hold of the script, either to see how it’s comprised or to run it manually, just export the MP. If the MP is sealed, you will only be able to do this via PowerShell via
Export-SCOMManagementPack -ManagementPack ‘MPHere’ -Path ‘ExportLocation’
Once exported, search the XML for ‘scriptbody’
hmm he says in his documentation that it’s free and freely distributable and modifiable, but it appears that it is sealed.
Gary, in principle you\’re right. Instead of %sw% you would need to change it to %switch% for instance.
I think first we need to check how exactly the information \’insight\’ of your Solarwinds looks like. – You mentioned that \’NCM.Nodes\’ is not found.
You can use the SWQL studio to do so. – If I remember right, it\’s part of the SDK:
Please ensure that you have PowerShell Version 5.x on the machine you specified as \’monitoring-server\’.
Let me know …
Thanks Ruben. Here is what I see in the SDK…
I know its an old post but just wanted to share what I did:-)
I use MPButil.exe to modify the MPB –
I followed the guide here: