Lines Matching +full:host +full:- +full:command
4 ... command. IPMI raw command will use dbus-send command
16 ${dbusHostIpmicmd1}= dbus-send --system ${OPENBMC_BASE_URI}HostIpmi/1
22 ${IPMI_INBAND_CMD}= ipmitool -C ${IPMI_CIPHER_LEVEL} -N ${IPMI_TIMEOUT} -p ${IPMI_PORT}
23 ${HOST}= -H
31 Run IPMI Command
32 [Documentation] Run the raw IPMI command.
33 [Arguments] ${command} ${fail_on_err}=${1} &{options}
36 # command The IPMI command string to be executed
38 # fail_on_err Fail if the IPMI command execution fails.
39 # options Additional ipmitool command options (e.g.
40 # -C=3, -I=lanplus, etc.). Currently, only
44 ${resp}= Run External IPMI Raw Command ${command} ${fail_on_err} &{options}
46 ${resp}= Run Inband IPMI Raw Command ${command}
48 ${resp}= Run Dbus IPMI RAW Command ${command}
50 Fail msg=Invalid IPMI Command type provided: ${IPMI_COMMAND}
56 Run IPMI Standard Command
57 [Documentation] Run the standard IPMI command.
58 [Arguments] ${command} ${fail_on_err}=${1} ${expected_rc}=${0} &{options}
61 # command The IPMI command string to be executed
63 # fail_on_err Fail if the IPMI command execution fails.
65 # command (e.g. ${0}, ${1}, etc.).
66 # options Additional ipmitool command options (e.g.
67 # -C=3, -I=lanplus, etc.). Currently, only
71 ${resp}= Run External IPMI Standard Command ${command} ${fail_on_err} ${expected_rc} &{options}
73 ${resp}= Run Inband IPMI Standard Command ${command} ${fail_on_err}
75 ${resp}= Run Dbus IPMI Standard Command ${command}
77 Fail msg=Invalid IPMI Command type provided : ${IPMI_COMMAND}
83 Run Dbus IPMI RAW Command
84 [Documentation] Run the raw IPMI command through dbus.
85 [Arguments] ${command}
86 ${valueinBytes}= Byte Conversion ${command}
89 ${output} ${stderr}= Execute Command ${cmd} return_stderr=True
94 Run Dbus IPMI Standard Command
95 [Documentation] Run the standard IPMI command through dbus.
96 [Arguments] ${command}
98 ${stdout} ${stderr} ${output}= Execute Command
99 ... ${IPMITOOL_PATH} -I dbus ${command} return_stdout=True
105 Run Inband IPMI Raw Command
106 [Documentation] Run the raw IPMI command in-band.
107 [Arguments] ${command} ${fail_on_err}=${1} ${os_host}=${OS_HOST} ${os_username}=${OS_USERNAME}
111 # command The IPMI command string to be executed
113 # os_host The host name or IP address of the OS Host.
114 # os_username The OS host user name.
115 # os_password The OS host passwrd.
117 Login To OS Host ${os_host} ${os_username} ${os_password}
120 ${ipmi_cmd}= Catenate ${IPMI_INBAND_CMD} ${RAW} ${command}
122 ${stdout} ${stderr}= Execute Command ${ipmi_cmd} return_stderr=True
128 Run Inband IPMI Standard Command
129 [Documentation] Run the standard IPMI command in-band.
130 [Arguments] ${command} ${fail_on_err}=${1} ${os_host}=${OS_HOST}
135 # command The IPMI command string to be executed
137 # os_host The host name or IP address of the OS Host.
138 # os_username The OS host user name.
139 # os_password The OS host passwrd.
140 # login_host Indicates that this keyword should login to host OS.
143 Login To OS Host ${os_host} ${os_username} ${os_password}
148 ${ipmi_cmd}= Catenate ${IPMI_INBAND_CMD} ${command}
150 ${stdout} ${stderr}= Execute Command ${ipmi_cmd} return_stderr=True
156 Run External IPMI Standard Command
157 [Documentation] Run the external IPMI standard command.
158 [Arguments] ${command} ${fail_on_err}=${1} ${expected_rc}=${0} &{options}
161 # command The IPMI command string to be executed
164 # "-vvv"), it will be pre-pended to this
165 # command string.
166 # fail_on_err Fail if the IPMI command execution fails.
168 # command (e.g. ${0}, ${1}, etc.).
169 # options Additional ipmitool command options (e.g.
170 # -C=3, -I=lanplus, etc.).
172 ${command_string}= Process IPMI User Options ${command}
173 ${ipmi_cmd}= Create IPMI Ext Command String ${command_string} &{options}
181 Run External IPMI Raw Command
182 [Documentation] Run the external IPMI raw command.
183 [Arguments] ${command} ${fail_on_err}=${1} &{options}
185 # This keyword is a wrapper for 'Run External IPMI Standard Command'. See
186 # that keyword's prolog for argument details. This keyword will pre-pend
187 # the word "raw" plus a space to command prior to calling 'Run External
188 # IPMI Standard Command'.
190 ${output}= Run External IPMI Standard Command
191 ... raw ${command} ${fail_on_err} &{options}
197 ${output}= Execute Command which ipmitool
211 ${ipmi_cmd}= Create IPMI Ext Command String sol activate usesolkeepalive
227 ${ipmi_cmd}= Create IPMI Ext Command String sol deactivate
250 ... IPMI RAW command format is as follows
252 ... This method converts IPMI command format into
253 ... dbus command format as follows
254 ... <byte:seq-id> <byte:netfn> <byte:lun> <byte:cmd>
256 ... Sample dbus Host IPMI Received Message argument
271 ${length}= Evaluate ${length} - 1
281 # Sample small IPMI raw command: Run IPMI command 0x06 0x36
284 # Equivalent dbus-send argument for smaller IPMI raw command:
299 [Documentation] Set the command byte.
319 ${response} ${stderr} ${rc}= BMC Execute Command
336 Execute Command chmod +x ${IPMITOOL_PATH}
339 Initiate Host Boot Via External IPMI
340 [Documentation] Initiate host power on using external IPMI.
345 # for host running state.
347 ${output}= Run External IPMI Standard Command chassis power on
351 Wait Until Keyword Succeeds 10 min 10 sec Is Host Running
354 Initiate Host PowerOff Via External IPMI
355 [Documentation] Initiate host power off using external IPMI.
360 # for host off state.
362 ${output}= Run External IPMI Standard Command chassis power off
366 Wait Until Keyword Succeeds 3 min 10 sec Is Host Off
369 Is Host Off Via IPMI
370 [Documentation] Verify if the Host is off using IPMI command.
372 ${status}= Run External IPMI Standard Command chassis power status
376 Get Host State Via External IPMI
377 [Documentation] Returns host state using external IPMI.
379 ${output}= Run External IPMI Standard Command chassis power status
386 Set BMC Network From Host
387 [Documentation] Set BMC network from host.
394 Run Inband IPMI Standard Command
397 Run Inband IPMI Standard Command
400 Run Inband IPMI Standard Command
405 [Documentation] Verify that user is able to run IPMI command
413 ${output}= Wait Until Keyword Succeeds 15 sec 5 sec Run External IPMI Standard Command
427 ${resp}= Run IPMI Standard Command ${ipmi_cmd}
439 Run IPMI Standard Command user enable ${userid}
460 ${access}= Run IPMI Standard Command channel getaccess ${CHANNEL_NUMBER} ${random_userid}
476 ${resp}= Run IPMI Standard Command user summary ${CHANNEL_NUMBER}
502 ${resp}= Run IPMI Standard Command user list
512 Run IPMI Standard Command user set name ${userid} ""
517 [Documentation] Verify that user is able to run IPMI command
523 # options Set channel command options (e.g.
530 Run IPMI Standard Command ${ipmi_cmd}
534 [Documentation] Delete all non-root IPMI user.
544 Run IPMI Standard Command user set name ${user_record['user_id']} ""
558 # obtained from Sensor Type field in - ipmitool sdr get "sensor_name".
562 # obtained from Sensor ID field in - ipmitool sdr get "sensor_name".
569 ${resp}= Run IPMI Command ${cmd}
583 ${resp}= Run IPMI Standard Command sensor
606 # obtained sensor name from - 'ipmitool sensor' command.
612 ${resp}= Run IPMI Standard Command sdr get "${sensor_name}"
615 ... case-insensitive
626 # ${sensor_detail} Requested field and the value from the sdr get ipmi command.
638 [Documentation] Runs the date command from BMC and returns current date and time
642 # date_format Date format of the result. E.g. %Y-%m-%d %H:%M:%S etc.
645 ${date} ${stderr} ${rc}= BMC Execute Command date
650 Remove From List ${date} -2
660 [Documentation] Get the SEL Info via IPMI raw command
664 # Byte 1 - SEL Version,
665 # Byte 2 & 3 - Entry bytes - LSB MSB,
666 # Byte 4 & 5 - Free Space in bytes, LS Byte first.
667 # Byte 6 - 9 - Most recent addition timestamp,
668 # Byte 10-13 - Most recent erase timestamp,
669 # Byte 14 - Operation Support
673 ${resp}= Run IPMI Command
680 Verify Invalid IPMI Command
681 [Documentation] Execute invalid IPMI command and verify with given response code.
685 # ${ipmi_cmd} - IPMI raw cmd with invalid data length.
686 # ${error_code} - Expected error code e.g 0xc7, 0xcc.
688 ${resp}= Run IPMI Command ${ipmi_cmd} fail_on_err=0