Commands sub-tab
    • 18 Apr 2023
    • 1 Minute to read
    • Dark
      Light
    • PDF

    Commands sub-tab

    • Dark
      Light
    • PDF

    Article summary

    While Custom Commands can be executed through the WebUI and CLI, feedback and output of Custom Commands is only available on the CLI and not on the WebUI.

    About Custom Scripts

    Custom scripts required the following conditions:

    • Written in Python
    • “Command label” must match a function within the script
    • Located in /etc/scripts/custom_commands

    Custom script example

    Create Commands

    This integrates Out-of-Band and Console-like configurations with the In-Band command.

    This can create specific types of commands:

    • Custom
    • Outlet
    • SSH
    • Telnet
    • Web

    Create Custom Command

    1. Copy the custom script into /etc/scripts/custom_commands.
    2. Go to Managed Devices :: Devices :: <device name> :: Commands.
    3. Click Add.
    4. In Command drop-down, select Custom Commands
    5. Select Enabled checkbox.
    6. In Custom Commands menu:
      1. On Script drop-down, select one.
      2. Select Enabled checkbox.
      3. Enter Comment Label (short description).
    7. Repeat, as needed.
    8. Click Save.

    Create Outlet Command

    1. Copy the custom script into /etc/scripts/custom_commands.
    2. Go to Managed Devices :: Devices :: <device name> :: Commands.
    3. Click Add.
    4. In Command drop-down, select Outlet.
    5. Select Enabled checkbox.
    6. To add, select in PDU textbox, click Add (moves to Merged textbox). 
    7. To remove, select in Merged textbox, click Remove (moves to PDU textbox).
    8. Set Cycle Interval (s) (default: 3).
    9. Click Save.

    Create SSH Command

    1. Copy the custom script into /etc/scripts/custom_commands.
    2. Go to Managed Devices :: Devices :: <device name> :: Commands.
    3. Click Add.
    4. In Command drop-down, select SSH
    5. Select Enabled checkbox.
    6. Select Launch Local Application.
    7. In SSH menu, enter:
      1. User
      2. IP Address
      3. Port Number (default: 22)
    8. Click Save.

    Create Telnet Command

    1. Copy the custom script into /etc/scripts/custom_commands.
    2. Go to Managed Devices :: Devices :: <device name> :: Commands.
    3. Click Add.
    4. In Command drop-down, select Telnet
    5. Select Enabled. checkbox.
    6. Select Launch Local Application.
    7. In Telnet menu, enter:
      1. User
      2. IP Address
      3. Port Number (default: 22)
    8. Click Save.

    Create Web Command

    1. Copy the custom script into /etc/scripts/custom_commands.
    2. Go to Managed Devices :: Devices :: <device name> :: Commands.
    3. Click Add.
    4. In Command drop-down, select Web
      1. Select Enabled.
      2. Enter WEB URL
    5. Click Save.

    Device Access via RDP

    1. Go to Managed Devices :: Devices :: <device name> :: Commands.
    2. Click Add (displays dialog).
    3. In Command drop-down, select KVM
      1. Select Enabled checkbox.
      2. On Protocol drop-down, select one.
      3. On Type Extension drop-down, select one.
    4. Click Save.



    Was this article helpful?

    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence