Manage HP ILO
hponcfg (SmartStart Scripting Toolkit Linux Edition)
salt.modules.ilo.
change_password
(username, password)Reset a users password
CLI Example:
salt '*' ilo.change_password damianMyerscough
salt.modules.ilo.
change_username
(old_username, new_username)Change a username
CLI Example:
salt '*' ilo.change_username damian diana
salt.modules.ilo.
configure_network
(ip, netmask, gateway)Configure Network Interface
CLI Example:
salt '*' ilo.configure_network [IP ADDRESS] [NETMASK] [GATEWAY]
salt.modules.ilo.
configure_snmp
(community, snmp_port=161, snmp_trapport=161)Configure SNMP
CLI Example:
salt '*' ilo.configure_snmp [COMMUNITY STRING] [SNMP PORT] [SNMP TRAP PORT]
salt.modules.ilo.
create_user
(name, password, *privileges)Create user
CLI Example:
salt '*' ilo.create_user damian secretagent VIRTUAL_MEDIA_PRIV
If no permissions are specify the user will only have a read-only account.
Supported privelges:
ADMIN_PRIV Enables the user to administer user accounts.
REMOTE_CONS_PRIV Enables the user to access the Remote Console functionality.
RESET_SERVER_PRIV Enables the user to remotely manipulate the server power setting.
VIRTUAL_MEDIA_PRIV Enables the user permission to access the virtual media functionality.
CONFIG_ILO_PRIV Enables the user to configure iLO settings.
salt.modules.ilo.
delete_ssh_key
(username)Delete a users SSH key from the ILO
CLI Example:
salt '*' ilo.delete_user_sshkey damian
salt.modules.ilo.
get_user
(username)Returns local user information, excluding the password
CLI Example:
salt '*' ilo.get_user damian
salt.modules.ilo.
list_users_info
()List all users in detail
CLI Example:
salt '*' ilo.list_users_info
salt.modules.ilo.
set_http_port
(port=80)Configure the port HTTP should listen on
CLI Example:
salt '*' ilo.set_http_port 8080
salt.modules.ilo.
set_https_port
(port=443)Configure the port HTTPS should listen on
CLI Example:
salt '*' ilo.set_https_port 4334