Lines Matching +full:library +full:- +full:sel

3 Documentation    Module to test IPMI SEL Time functionality.
4 ... Pre-requisite Condition : Client Machine and BMC should be in
10 ... Test the Set/Get SEL Time functionality and compare the result against
13 ... Set the Time Sync Mode from NTP to Manual to Set SEL Time.
18 ... NETWORK_RESTART_TIME added for Set SEL Time and Add SEL Entry as the corresponding
21 ... Current SEL time identified via BMC Native command (date) and perform SEL Time ope…
23 ... Script Verifies SEL Time for various scenarios such as,
27 ... Add SEL Entry for all the above scenarios and compare against BMC native command (…
31 Library DateTime keyword
32 Library Collections keyword
33 Library String keyword
34 Library ../lib/ipmi_utils.py keyword
45 @{time_difference_list} +8760:153:25 -87600:453:120 +175200:40:15 -43800:10:05 +20:35:12 -876…
47 # Based on 13th byte of add SEL entry command as per IPMI spec
49 ${sel_no_entry_msg} SEL has no entries
50 ${event_type} Lower Non-critical going low
52 …s_sel_entry_added this variable is used in Verify Multiple Set SEL Time With Multiple Add SEL Entry
53 # test case. Need to give how many sel should be added with multiple date and time.
58 Verify Default Get SEL Time
59 [Documentation] Verify IPMI Get SEL Time.
64 # Gets the current SEL time via Get SEL Time Command.
65 ${resp}= Get SEL Time Command
69 Verify Set SEL Time On NTP Mode
70 [Documentation] IPMI Set SEL Time without NTP
76 ${sel_date}= Get Specific Sel Date 5
86 Verify SEL Set Time For Specific Time
87 [Documentation] Verify IPMI Set SEL Time.
91 ${sel_date}= Get Specific Sel Date 5
96 # Set SEL Entry command.
97 Set SEL Time Entry Via Raw Command ${sel_date_raw}
99 # Get SEL Time command.
106 ... msg=Set SEL Time Not Working
108 # Get BMC time (native) and compare with set sel time given.
115 Verify Set SEL Time With Future Date And Time
116 [Documentation] Verify IPMI Get SEL Time by adding 15 minutes from current time.
119 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
120 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
122 # Set SEL Time via IPMI command.
123 Set SEL Time Via IPMI ${sel_time}
125 # Get SEL Time Command.
128 # Difference of time between set sel time and get time.
132 # Difference of time between BMC Date and Get SEL Time.
138 Verify Set SEL Time With Past Date And Time
139 [Documentation] Verify IPMI Get SEL Time for yime delay of 1 day from current dat and time.
142 # Gets BMC current time and subtracts 1 day and sets the SEL Time.
143 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
149 # Set SEL Time via IPMI command.
150 Set SEL Time Via IPMI ${sel_time}
151 # Get SEL Time Command.
153 # Difference of time between set sel time and get time.
156 # Difference of time between BMC Date and Get SEL Time.
161 FAIL SEL Time cannot set Date less than 1970
165 Verify SEL Set Time For Invalid Data Request
166 [Documentation] Verify IPMI Get SEL Time for invalid data request
177 # Set Invalid SEL Time with one extra request byte.
183 Verify SEL Set Time For Incomplete Data Request
184 [Documentation] Verify IPMI Get SEL Time for invalid data with one byte less request data.
197 Remove From List ${sel_date_raw} -1
200 # Set incomplete SEL Time with one less request byte.
207 Verify SEL Time In SEL Entry
208 [Documentation] Verify Configured SEL Time reflects in newly added SEL Entry.
211 Clear The SEL
214 ${sel_date}= Get Specific Sel Date 5
219 # Set SEL Entry Command.
220 Set SEL Time Entry Via Raw Command ${sel_date_raw}
222 # Get SEL Time Command.
229 ... msg=Set SEL Time Not Working
231 # Get BMC time (native) and compare with set sel time given.
248 # Add SEL Entry.
249 ${sel_create_resp}= Create SEL ${sensor_type_id} ${sensor_number}
251 # Finds the last added sel entry.
252 ${resp}= Verify SEL Added ${sensor_name}
254 # Fetches the date of the last added SEL Entry.
255 ${sel_entry_date}= Fetch Added SEL Date ${resp}
259 # Compare date and time of Set SEL with sel entry.
264 Verify SEL Time In SEL Entry For Future Date and Time
265 [Documentation] Verify configured SEL Time (Future Date & Time) in added SEL Entry.
268 Clear The SEL
270 # Gets BMC Current Time and Adds 15 minutes and sets the SEL Time.
271 ${sel_time} ${set_sel_time}= Identify SEL Time +06:15:00
273 # Set SEL Time via IPMI command.
274 Set SEL Time Via IPMI ${sel_time}
276 # Get SEL Time Command.
279 # Difference of time between set sel time and get time.
283 # Difference of time between BMC Date and Get SEL Time.
299 # Add SEL Entry.
300 ${sel_create_resp}= Create SEL ${sensor_type_id} ${sensor_number}
302 # Finds the last added sel entry.
303 ${resp}= Verify SEL Added ${sensor_name}
305 # Fetches the date of the last added SEL Entry.
306 ${sel_entry_date}= Fetch Added SEL Date ${resp}
310 # Compare date and time of Set SEL with sel entry.
315 Verify SEL Time In SEL Entry For Past Date And Time
316 [Documentation] Verify configured SEL Time (Past Date & Time) in added SEL Entry.
319 Clear The SEL
321 # Gets BMC Current Time and subtracts 1 day and sets the SEL Time.
322 ${sel_time} ${set_sel_time}= Identify SEL Time -24:00:00
328 # Set SEL Time via IPMI command.
329 Set SEL Time Via IPMI ${sel_time}
330 # Get SEL Time Command.
332 # Difference of time between set sel time and get time.
335 # Difference of time between BMC Date and Get SEL Time.
350 # Add SEL Entry.
351 ${sel_create_resp}= Create SEL ${sensor_type_id} ${sensor_number}
353 # Finds the last added sel entry.
354 ${resp}= Verify SEL Added ${sensor_name}
356 # Fetches the date of the last added SEL Entry.
357 ${sel_entry_date}= Fetch Added SEL Date ${resp}
361 # Compare date and time of Set SEL with sel entry.
365 FAIL SEL Time cannot set Date less than 1970.
369 Verify Multiple Set SEL Time With Multiple Add SEL Entry
370 [Documentation] Verify SEL time in multiple addition Of SEL entry.
375 ${sel_time} ${set_sel_time}= Identify SEL Time ${time_difference_list[${i}]}
377 # Set SEL Time via IPMI command.
378 Set SEL Time Via IPMI ${sel_time}
380 # Clear the SEL.
381 Clear The SEL
394 # Add SEL Entry.
395 ${sel_create_resp}= Create SEL ${sensor_type_id} ${sensor_number}
397 # Finds the last added sel entry.
398 ${resp}= Verify SEL Added ${sensor_name}
400 # Fetches the date of the last added SEL Entry.
401 ${sel_entry_date}= Fetch Added SEL Date ${resp}
405 # Compare date and time of Set SEL with sel entry.
445 Get SEL Time Command
446 [Documentation] Get SEL Time command.
457 Set SEL Time Entry Via Raw Command
458 [Documentation] Set SEL Time command.
473 Clear The SEL
474 [Documentation] Clear SEL Command.
476 # Clear the SEL.
477 ${out}= Run IPMI Standard Command sel clear
478 Should Contain ${out} Clearing SEL
482 Verify SEL Added
483 [Documentation] Verify Added SEL.
489 ${resp}= Run IPMI Standard Command sel elist
493 Should Contain ${sel_entry} ${event_dir} msg=Add SEL Entry failed.
501 ${resp}= Run IPMI Standard Command sel time get
505 Get Specific Sel Date
558 ${diff}= Evaluate int(${epoch_date1}) - int(${epoch_date2})
563 Identify SEL Time
564 [Documentation] Modify SEL Time From BMC For Set Sel Time Command.
576 ... ${modifying_date_status} == True ${time.split("+")[-1]}
577 ... ${modifying_date_status} == False ${time.split("-")[-1]}
586 #Set SEL Time.
592 Set SEL Time Via IPMI
593 [Documentation] Set SEL Time for given date using IPMI.
599 ${resp}= Run IPMI Standard Command sel time set "${date_time}"
615 Clear The SEL