


cd - The command sets the current default target.command help/? - Displays the help message specific to that command.help - Displays context-sensitive help and all supported commands.Base commandsįollowing are the base commands for use on the command line: There is a one second timeout for entering any of the escape sequence characters. The escape key commands are shortcuts to popular tasks. The valid Boolean values for any command are yes, no, true, false, y, n, t, f, 1, and 0. Properties - Are the attributes of the target that can be modified.Change the target using the cd command, or by specifying a There are several keyboard sequences for frequent commands: If an invalid command is entered, then the status and status_tag values reflect the error as shown: TheĬommand line session had a prompt that is displayed after each command (or if you exit VSP): hpiLO->Įach time a CLI command is executed, the returned output follows this general format: hpiLO->
HP ILO 4 SSH COMMANDS SERIAL
Note: in case of serial port connection CLI is enabled by hitting ESC. Up to five network connections can be active simultaneously. On iLO 3 command line interface can be accessed via SSH or serial port. Set of commands for configuration and control of management processors (called Management Access Points)Īnd host systems. On iLO, access SMASH CLP through the SSH port. Management Access Points) and host systems. Standardized set of commands for configuration and control of management processors (called The SMASH CLP specification enables simpleĪnd intuitive management of heterogeneous servers in a data center. Profiles to unify the management of the data center. SMASH CLP is the DMTF suite of specifications that deliver industry-standard protocols and HP iLo command line interface use so called SMASH CLP command language. (slightly skeptical) Educational society promoting " Back to basics" movement against IT overcomplexity The same can be done for Server Off.Softpanorama May the source be with you, but remember the KISS principle -) Server_off: ssh -i "/home/homeassistant/.homeassistant/.ssh/privatekey_filename" _ip "power off"` Server_on: ssh -i "/home/homeassistant/.homeassistant/.ssh/privatekey_filename" _ip "power on"` Then goto configuration.yaml and add: shell_command: Where privatekey_username is the username if the key installed to your client Ssh -i "/home/homeassistant/.homeassistant/.ssh/privatekey_filename" _ip "power off" ssh directory and copy your private key (OpenSSH format) - i.e. navigate to /home/homeassistant/.homeassistant.to login to your home assistant account type:.Login SSH with pi / raspberry (username / password) with Putty.Run first time connected to the network.In this example client_ip = the ILO server IP address

This example relates specifically to turning on and off a HP Microserver via ILO but in principle can be used for any SSH script requiring a private key.Īlso not that this assumes you already have the RSA key installed on the server, which I managed to find in a googled tutorial for ILO, and basically requires you to upload one from puttygen. Hassbian has a less complex way of managing users and permissions and the only way the n00b I am could get it to work. For anyone else interested, I gave up with Hass.io. Note the first time I executed I had to confirm the RSA fingerprint with ‘yes’ It executes no problem and powers up the server. I have the private key (exported as Open SSH key from PuttyGen) in the /config/ssh/ dir with no extension and CHMOD to 600. Server_off: 'ssh -i /config/ssh/hassio_ilo "power off"' Server_on: 'ssh -i /config/ssh/hassio_ilo "power on"' I have a script which when I SSH in works perfectly, however via a script in HA it gives me an error: ERROR (MainThread) Error running command: `ssh -i /config/ssh/hassio_ilo "power off"`, return code: 255 OK after a number of hours of googling and experimenting I am very close to getting this to work.
