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

I can see the Icon. But when i click it the web page is not going further. #176

Open tharunkumarholiga opened 7 years ago

tharunkumarholiga commented 7 years ago

<description>This command will help us in pulling Portgroup VLAN details on cluster.</description>
<functionalities>
  <functionality>Cluster-vROPS</functionality>
</functionalities>
<script>vROPS\vropscluster</script>
<parameters>
  <parameter name="Cluster" helpmessage="Please enter the cluster name for which Portgroup details can be pulled" mandatory="0" />
    <options>
    </options>
 </parameters>

The above is the one which I added in _def.xml file in powershell folder. I see the Icon and when I click it it doesnt take me to next page to provide input. I also changed the permission on the file still I see the same Issue.

Do i need to do anything else.

9whirls commented 7 years ago

You don't need to edit _def.xml by yourself. Once you put your scipt into webcommander/powershell/any_sub_folder/, just click "generate command definition" on home page. It will parse your powershell script and add a new command section into _def.xml automatically.

tharunkumarholiga commented 7 years ago

Everything worked fine. But apart from the inbuilt Scripts none of the others scripts are displaying the results. even though the code is 4488. do i need to any changes. or can I export the result.

9whirls commented 7 years ago

The result depends on script output. If keyword "Fail -" shows in output, it's compared to known errors to get a specific error code. If no "Fail -" is found in output, it's considered as a success, hence given code 4488. Please refer to builtin scripts about how to use output functions, such as writeCustomizedMsg and writeStdErr.