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