vmware-archive / webcommander

Powerful, flexible, intuitive and most importantly simple. That is what a real automation solution should be. No matter how complicated the task is, we'd like to turn it into a single click. Is that possible? Not without webcommander :)
MIT License
165 stars 47 forks source link

Question on new fields? #186

Closed vmikemast closed 6 years ago

vmikemast commented 6 years ago

I am setting up webCommander at a new company, and download the latest code.. I see 2 new parameters on every command page.. "InformationAction" and "InformationVariable"... can you explain what these are for? maybe I need to refresh myself on updated documents? LOL

Thanks for any info... Mike Masters

9whirls commented 6 years ago

Add those two parameter names here https://github.com/vmware/webcommander/blob/master/powershell/genDefXml.ps1#L122

$commonParam = @("InformationAction","InformationVariable", ... )

And then re-run genDefXml. Simply click the link of "generate command definition" on the home page.

9whirls commented 6 years ago

Since I already left vmw, I'm not able to update this project on github any more. Congrats on your new job!

vmikemast commented 6 years ago

AH, did not know you left. Thanks for the info

vmikemast commented 6 years ago

Jerry, how do I go about geting rid of these 2 on each page? It is not something I will use any time soon and would like for the fields to not show up..

Thanks

9whirls commented 6 years ago

Open your _def.xml file, remove those from parameters section. Or make the change in gendefxml.ps1 as showed in comment 2, and re-run it to generate the xml file again.

vmikemast commented 6 years ago

If I remove from _def.xml, and then run gendefxml.ps1 it puts those parameters back into _def.xml. Ok sorry I did not realize the change from comment 2 would remove those 2 fields.

It is now done.. Thanks Again for all the assistance on this project. Mike Masters