blob: 29f0b8b2d0492dbc2f80fde678820793c0eccc60 [file] [log] [blame]
Prashanth Katti081b3d92018-06-15 05:13:11 -05001*** Settings ***
2Documentation 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
6Resource ../lib/snmp/resource.txt
7Resource ../lib/snmp/snmp_utils.robot
8
9Library String
10Library SSHLibrary
11
12*** Test Cases ***
13Configure 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
22Configure 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
31Configure SNMP Manager On BMC With Out Of Range Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050032 [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 Katti081b3d92018-06-15 05:13:11 -050034 [Template] Configure SNMP Manager On BMC
35
George Keishing5abfe602018-07-05 11:54:37 -050036 # SNMP manager IP Port Scenario
37 ${SNMP_MGR1_IP} ${out_of_range_port} error
38
Prashanth Katti081b3d92018-06-15 05:13:11 -050039Configure SNMP Manager On BMC With Alpha Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050040 [Documentation] Configure SNMP Manager On BMC with alpha port and verify.
41 [Tags] Configure_SNMP_Manager_On_BMC_With_Alpha_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050042 [Template] Configure SNMP Manager On BMC
43
George Keishing5abfe602018-07-05 11:54:37 -050044 # SNMP manager IP Port Scenario
45 ${SNMP_MGR1_IP} ${alpha_port} error
46
Prashanth Katti081b3d92018-06-15 05:13:11 -050047Configure SNMP Manager On BMC With Negative Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050048 [Documentation] Configure SNMP Manager On BMC with negative port and verify.
49 [Tags] Configure_SNMP_Manager_On_BMC_With_Negative_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050050 [Template] Configure SNMP Manager On BMC
51
George Keishing5abfe602018-07-05 11:54:37 -050052 # SNMP manager IP Port Scenario
53 ${SNMP_MGR1_IP} ${negative_port} error
54
Prashanth Katti081b3d92018-06-15 05:13:11 -050055Configure SNMP Manager On BMC With Empty Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050056 [Documentation] Configure SNMP Manager On BMC with empty port and verify.
57 [Tags] Configure_SNMP_Manager_On_BMC_With_Empty_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050058 [Template] Configure SNMP Manager On BMC
59
George Keishing5abfe602018-07-05 11:54:37 -050060 # SNMP manager IP Port Scenario
61 ${SNMP_MGR1_IP} ${empty_port} error
62
Prashanth Katti081b3d92018-06-15 05:13:11 -050063Configure SNMP Manager On BMC With Out Of Range IP And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050064 [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 Katti081b3d92018-06-15 05:13:11 -050066 [Template] Configure SNMP Manager On BMC
67
George Keishing5abfe602018-07-05 11:54:37 -050068 # SNMP manager IP Port Scenario
69 ${out_of_range_ip} ${SNMP_DEFAULT_PORT} error
70
Prashanth Katti081b3d92018-06-15 05:13:11 -050071Configure 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
83Configure 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
95Configure 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