1cfb2c415Snagarjunb22*** Settings *** 2cfb2c415Snagarjunb22 3cfb2c415Snagarjunb22Documentation Keywords for KCS and Lanplus interface command. 4cfb2c415Snagarjunb22 5cfb2c415Snagarjunb22Resource ../lib/ipmi_client.robot 6cfb2c415Snagarjunb22Resource ../lib/state_manager.robot 7cfb2c415Snagarjunb22Resource ../lib/common_utils.robot 8cfb2c415Snagarjunb22Variables ../data/ipmi_raw_cmd_table.py 9cfb2c415Snagarjunb22Library ../lib/ipmi_utils.py 10cfb2c415Snagarjunb22 11cfb2c415Snagarjunb22 12cfb2c415Snagarjunb22*** Keywords *** 13cfb2c415Snagarjunb22 14cfb2c415Snagarjunb22Verify KCS Interface Commands 15cfb2c415Snagarjunb22 [Documentation] Execute set of IPMI raw KCS interface commands and verify it is 16cfb2c415Snagarjunb22 ... executable from os host. Set of IPMI raw commands includes system interface 17cfb2c415Snagarjunb22 ... command. 18cfb2c415Snagarjunb22 19cfb2c415Snagarjunb22 #### raw cmd for get device ID. 20cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Device ID']['Get'][0]} 21cfb2c415Snagarjunb22 22cfb2c415Snagarjunb22 #### Raw cmd for cold reset. 23cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Cold Reset']['reset'][0]} 24cfb2c415Snagarjunb22 25cfb2c415Snagarjunb22 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Unpingable 26cfb2c415Snagarjunb22 Wait Until Keyword Succeeds 3 min 10 sec Is BMC Operational 27cfb2c415Snagarjunb22 ## Waiting time to get KCS interface enabled. 28cfb2c415Snagarjunb22 Wait Until Keyword Succeeds 3 min 10 sec 29cfb2c415Snagarjunb22 ... Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Device ID']['Get'][0]} 30cfb2c415Snagarjunb22 31cfb2c415Snagarjunb22 #### raw cmd for get device GUID. 32cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Device GUID']['Get'][0]} 33cfb2c415Snagarjunb22 34cfb2c415Snagarjunb22 #### raw cmd for get IP addr. 35cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_ip'][0]} 36cfb2c415Snagarjunb22 37cfb2c415Snagarjunb22 #### raw cmd for get IP addr src. 38cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_ip_src'][0]} 39cfb2c415Snagarjunb22 40cfb2c415Snagarjunb22 #### raw cmd for get Dot1Q details. 41cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_dot1q'][0]} 42cfb2c415Snagarjunb22 43cfb2c415Snagarjunb22 #### raw cmd for get SDR Info. 44cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['SDR_Info']['get'][0]} 45cfb2c415Snagarjunb22 46cfb2c415Snagarjunb22 #### raw cmd for get Chassis status. 47cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['Chassis_status']['get'][0]} 48cfb2c415Snagarjunb22 49cfb2c415Snagarjunb22 #### raw cmd for get SEL INFO. 50cfb2c415Snagarjunb22 Run Inband IPMI Raw Command ${IPMI_RAW_CMD['SEL_Info']['get'][0]} 5136e04779Snagarjunb22 5236e04779Snagarjunb22Verify Lanplus Interface Commands 5336e04779Snagarjunb22 [Documentation] Execute set of IPMI raw Command via lanplus interface and 5436e04779Snagarjunb22 ... verify it is executable from remote server. Set of IPMI raw commands 5536e04779Snagarjunb22 ... includes system interface command which should not execute via lanplus 5636e04779Snagarjunb22 ... interface. 5736e04779Snagarjunb22 5836e04779Snagarjunb22 #### raw cmd for get device ID. 5936e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['Device ID']['Get'][0]} 6036e04779Snagarjunb22 6136e04779Snagarjunb22 #### Raw cmd for cold reset. 6236e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['Cold Reset']['reset'][0]} 6336e04779Snagarjunb22 6436e04779Snagarjunb22 Wait Until Keyword Succeeds 2 min 10 sec Is BMC Unpingable 6536e04779Snagarjunb22 Wait Until Keyword Succeeds 3 min 10 sec Is BMC Operational 6636e04779Snagarjunb22 ## Waiting time to get Lanplus interface enabled. 6736e04779Snagarjunb22 Wait Until Keyword Succeeds 3 min 10 sec 6836e04779Snagarjunb22 ... Run External IPMI Raw Command ${IPMI_RAW_CMD['Device ID']['Get'][0]} 6936e04779Snagarjunb22 7036e04779Snagarjunb22 #### raw cmd for get device GUID. 7136e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['Device GUID']['Get'][0]} 7236e04779Snagarjunb22 7336e04779Snagarjunb22 #### raw cmd for get IP addr. 7436e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_ip'][0]} 7536e04779Snagarjunb22 7636e04779Snagarjunb22 #### raw cmd for get IP addr src. 7736e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_ip_src'][0]} 7836e04779Snagarjunb22 7936e04779Snagarjunb22 #### raw cmd for get Dot1Q details. 8036e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['lan_parameters']['get_dot1q'][0]} 8136e04779Snagarjunb22 8236e04779Snagarjunb22 #### raw cmd for get SDR Info. 83*a0177b91SMatt Fischer Run External IPMI Raw Command ${IPMI_RAW_CMD['SDR_Info']['get'][0]} 8436e04779Snagarjunb22 8536e04779Snagarjunb22 #### raw cmd for get Chassis status. 8636e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['Chassis_status']['get'][0]} 8736e04779Snagarjunb22 8836e04779Snagarjunb22 #### raw cmd for get SEL INFO. 8936e04779Snagarjunb22 Run External IPMI Raw Command ${IPMI_RAW_CMD['SEL_Info']['get'][0]} 90