Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to your HCP portal account.

  2. Click Service Orchestration and navigate to Appstore > Plugins > Click New > Select the Plugin Type from the drop-down list.

  3. Enter these details in your Script Plugin dialog:

    1. Provide a Name for your plugin.

    2. Click +Advance Configuration and enter these details:

      1. Enter a plugin Version.

      2. Enter a brief description of your new Script Plugin.

      3. Select the License from the drop-down list.

      4. Enter the Timeout for your plugin in seconds.

      5. Enter the following in the Scripts text-box:
        #!/bin/bash
        [1] Use the script below to update your packages:

        Code Block
        languagebash
        echo "Updating OS packages"
        sudo apt-get update && sudo apt-get upgrade -y || yum update -y 
        echo "Ping Test to Google DNS Server" 
        ping $IP_ADDRESS -c 8|
      6. If you want to add conditions for your Script Plugin run:

        1. Click Arguments+

        2. Enter the argument Key and its Value.
          Example:
          Key: IP_ADDRESS Value: 8.8.8.8

    3. To entitle users to your plugin, select: 

      • Only Me: if you do not want anyone to access your plugin.

      • Everyone: if you want to share your plugin with everyone.

      • Groups & Users: if you want to share the plugin with specific users or groups.

        1. Enter the first three alphabets of the username in the Users drop-down and select the username.

        2. Type the first three alphabets of the Group Name in the Groups drop-down and select the group name.

  4. Click Save Changes.

  5. Once you create your Plugin, the HCP portal will create a unique REFERENCE ID for the same.
    Example: Q5G9A

Note: HyperCloud

  • [1] The HCP portal will replace all

occurrence
  • occurrences of $IP_ADDRESS in the plugin with the value 8.8.8.8

.
    • However,

HyperCloud
    • the HCP portal will ignore the occurrences of ${IP_ADDRESS}

if used
    • in the

plugins.

...

    • plugin

...

Run plugins on-demand

...

Users can run plugins on-demand any of their own existing Virtual Machines without the need of connecting to the VM. Use the following steps to run an existing plugin on an existing VM.
Note: Running plugins on an existing VM requires the HyperCloud™ Agent to be installed on the Virtual Machine. The Agent Status must be Connected.

...