Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This testing require special setup where SNMP trapd is |
| 3 | ... configured and installed. For download, installation and |
| 4 | ... configuration refer http://www.net-snmp.org/. |
| 5 | |
Sandhya Somashekar | 839a0c2 | 2019-01-31 05:05:43 -0600 | [diff] [blame^] | 6 | Resource ../lib/snmp/resource.robot |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 7 | Resource ../lib/snmp/snmp_utils.robot |
Prashanth Katti | 7dae0e8 | 2019-01-09 01:35:42 -0600 | [diff] [blame] | 8 | Resource ../lib/openbmc_ffdc.robot |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 9 | |
| 10 | Library String |
| 11 | Library SSHLibrary |
| 12 | |
Prashanth Katti | 7dae0e8 | 2019-01-09 01:35:42 -0600 | [diff] [blame] | 13 | Test Teardown FFDC On Test Case Fail |
| 14 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 15 | *** Test Cases *** |
| 16 | Configure SNMP Manager On BMC And Verify |
| 17 | [Documentation] Configure SNMP Manager On BMC And Verify. |
| 18 | [Tags] Configure_SNMP_Manager_On_BMC_And_Verify |
| 19 | |
| 20 | Configure SNMP Manager On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} Valid |
| 21 | Verify SNMP Manager ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 22 | |
| 23 | Delete SNMP Manager And Object ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 24 | |
| 25 | Configure SNMP Manager On BMC With Non-default Port And Verify |
| 26 | [Documentation] Configure SNMP Manager On BMC And Verify. |
| 27 | [Tags] Configure_SNMP_Manager_On_BMC_With_Non_Default_Port_And_Verify |
| 28 | |
| 29 | Configure SNMP Manager On BMC ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} Valid |
| 30 | Verify SNMP Manager ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} |
| 31 | |
| 32 | Delete SNMP Manager And Object ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} |
| 33 | |
| 34 | Configure SNMP Manager On BMC With Out Of Range Port And Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 35 | [Documentation] Configure SNMP Manager On BMC with out-of range port and verify. |
| 36 | [Tags] Configure_SNMP_Manager_On_BMC_With_Out_Of_Range_Port_And_Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 37 | [Template] Configure SNMP Manager On BMC |
| 38 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 39 | # SNMP manager IP Port Scenario |
| 40 | ${SNMP_MGR1_IP} ${out_of_range_port} error |
| 41 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 42 | Configure SNMP Manager On BMC With Alpha Port And Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 43 | [Documentation] Configure SNMP Manager On BMC with alpha port and verify. |
| 44 | [Tags] Configure_SNMP_Manager_On_BMC_With_Alpha_Port_And_Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 45 | [Template] Configure SNMP Manager On BMC |
| 46 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 47 | # SNMP manager IP Port Scenario |
| 48 | ${SNMP_MGR1_IP} ${alpha_port} error |
| 49 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 50 | Configure SNMP Manager On BMC With Negative Port And Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 51 | [Documentation] Configure SNMP Manager On BMC with negative port and verify. |
| 52 | [Tags] Configure_SNMP_Manager_On_BMC_With_Negative_Port_And_Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 53 | [Template] Configure SNMP Manager On BMC |
| 54 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 55 | # SNMP manager IP Port Scenario |
| 56 | ${SNMP_MGR1_IP} ${negative_port} error |
| 57 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 58 | Configure SNMP Manager On BMC With Empty Port And Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 59 | [Documentation] Configure SNMP Manager On BMC with empty port and verify. |
| 60 | [Tags] Configure_SNMP_Manager_On_BMC_With_Empty_Port_And_Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 61 | [Template] Configure SNMP Manager On BMC |
| 62 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 63 | # SNMP manager IP Port Scenario |
| 64 | ${SNMP_MGR1_IP} ${empty_port} error |
| 65 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 66 | Configure SNMP Manager On BMC With Out Of Range IP And Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 67 | [Documentation] Configure SNMP Manager On BMC with out-of range IP and verify. |
| 68 | [Tags] Configure_SNMP_Manager_On_BMC_With_Out_Of_Range_IP_And_Verify |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 69 | [Template] Configure SNMP Manager On BMC |
| 70 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 71 | # SNMP manager IP Port Scenario |
| 72 | ${out_of_range_ip} ${SNMP_DEFAULT_PORT} error |
| 73 | |
Prashanth Katti | 081b3d9 | 2018-06-15 05:13:11 -0500 | [diff] [blame] | 74 | Configure Multiple SNMP Managers And Verify |
| 75 | [Documentation] Configure multiple SNMP Managers And Verify. |
| 76 | [Tags] Configure_Multiple_SNMP_Managers_And_Verify |
| 77 | |
| 78 | Configure SNMP Manager On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} Valid |
| 79 | Configure SNMP Manager On BMC ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT} Valid |
| 80 | Verify SNMP Manager ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 81 | Verify SNMP Manager ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT} |
| 82 | |
| 83 | Delete SNMP Manager And Object ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 84 | Delete SNMP Manager And Object ${SNMP_MGR2_IP} ${SNMP_DEFAULT_PORT} |
| 85 | |
| 86 | Configure Multiple SNMP Managers With Non-default Port And Verify |
| 87 | [Documentation] Configure multiple SNMP Managers with non-default port And Verify. |
| 88 | [Tags] Configure_Multiple_SNMP_Managers_With_Non_Default_Port_And_Verify |
| 89 | |
| 90 | Configure SNMP Manager On BMC ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} Valid |
| 91 | Configure SNMP Manager On BMC ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} Valid |
| 92 | Verify SNMP Manager ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} |
| 93 | Verify SNMP Manager ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} |
| 94 | |
| 95 | Delete SNMP Manager And Object ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1} |
| 96 | Delete SNMP Manager And Object ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} |
| 97 | |
| 98 | Configure Multiple SNMP Managers With Different Ports And Verify |
| 99 | [Documentation] Configure multiple SNMP Managers with different ports And Verify. |
| 100 | [Tags] Configure_Multiple_SNMP_Managers_With_Different_Ports_And_Verify |
| 101 | |
| 102 | Configure SNMP Manager On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} Valid |
| 103 | Configure SNMP Manager On BMC ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} Valid |
| 104 | Configure SNMP Manager On BMC ${SNMP_MGR3_IP} ${NON_DEFAULT_PORT2} Valid |
| 105 | |
| 106 | Verify SNMP Manager ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 107 | Verify SNMP Manager ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} |
| 108 | Verify SNMP Manager ${SNMP_MGR3_IP} ${NON_DEFAULT_PORT2} |
| 109 | |
| 110 | Delete SNMP Manager And Object ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} |
| 111 | Delete SNMP Manager And Object ${SNMP_MGR2_IP} ${NON_DEFAULT_PORT1} |
| 112 | Delete SNMP Manager And Object ${SNMP_MGR3_IP} ${NON_DEFAULT_PORT2} |
| 113 | |