Open topic with navigation

# Lua Functions for HPE Controller

HPE Controller Lua scripts take the basic form:

    function TaskMain(service)
       local status = 0
       -- perform task
       return status
    end

Scripts return a status value that indicates the status event. The status event is recorded by the HPE Controller server:

Status value | Status event
--- | ---
`0` | Success - Task Successfully completed
`1` | Warning - Warning occurred
`2` | Error - Critical Error
`3` | A status value of `3` means that the script has completed successfully. No extra status event is generated.

This section describes the HPE Controller-specific functions that you can use in Lua scripts. In addition, HPE Controller also supports all common Lua functions, such as those supported by the HPE IDOL Connector Framework Server (CFS). See the HPE Connector Framework Server Administration Guide and HPE Connector Framework Server Reference for more information. For more general information on the Lua scripting language, see http://www.lua.org/.

addServiceStatus

getPortNumber

© 2013 - 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm