blob: f70eddf11e1c28a155178aef0b1eec30e9ee1725 [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
Sandhya Somashekar839a0c22019-01-31 05:05:43 -06006Resource ../lib/snmp/resource.robot
Prashanth Katti081b3d92018-06-15 05:13:11 -05007Resource ../lib/snmp/snmp_utils.robot
Prashanth Katti7dae0e82019-01-09 01:35:42 -06008Resource ../lib/openbmc_ffdc.robot
Prashanth Katti081b3d92018-06-15 05:13:11 -05009
10Library String
11Library SSHLibrary
12
Prashanth Katti7dae0e82019-01-09 01:35:42 -060013Test Teardown FFDC On Test Case Fail
14
Prashanth Katti081b3d92018-06-15 05:13:11 -050015*** Test Cases ***
16Configure 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
25Configure 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
34Configure SNMP Manager On BMC With Out Of Range Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050035 [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 Katti081b3d92018-06-15 05:13:11 -050037 [Template] Configure SNMP Manager On BMC
38
George Keishing5abfe602018-07-05 11:54:37 -050039 # SNMP manager IP Port Scenario
40 ${SNMP_MGR1_IP} ${out_of_range_port} error
41
Prashanth Katti081b3d92018-06-15 05:13:11 -050042Configure SNMP Manager On BMC With Alpha Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050043 [Documentation] Configure SNMP Manager On BMC with alpha port and verify.
44 [Tags] Configure_SNMP_Manager_On_BMC_With_Alpha_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050045 [Template] Configure SNMP Manager On BMC
46
George Keishing5abfe602018-07-05 11:54:37 -050047 # SNMP manager IP Port Scenario
48 ${SNMP_MGR1_IP} ${alpha_port} error
49
Prashanth Katti081b3d92018-06-15 05:13:11 -050050Configure SNMP Manager On BMC With Negative Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050051 [Documentation] Configure SNMP Manager On BMC with negative port and verify.
52 [Tags] Configure_SNMP_Manager_On_BMC_With_Negative_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050053 [Template] Configure SNMP Manager On BMC
54
George Keishing5abfe602018-07-05 11:54:37 -050055 # SNMP manager IP Port Scenario
56 ${SNMP_MGR1_IP} ${negative_port} error
57
Prashanth Katti081b3d92018-06-15 05:13:11 -050058Configure SNMP Manager On BMC With Empty Port And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050059 [Documentation] Configure SNMP Manager On BMC with empty port and verify.
60 [Tags] Configure_SNMP_Manager_On_BMC_With_Empty_Port_And_Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050061 [Template] Configure SNMP Manager On BMC
62
George Keishing5abfe602018-07-05 11:54:37 -050063 # SNMP manager IP Port Scenario
64 ${SNMP_MGR1_IP} ${empty_port} error
65
Prashanth Katti081b3d92018-06-15 05:13:11 -050066Configure SNMP Manager On BMC With Out Of Range IP And Verify
Prashanth Katti081b3d92018-06-15 05:13:11 -050067 [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 Katti081b3d92018-06-15 05:13:11 -050069 [Template] Configure SNMP Manager On BMC
70
George Keishing5abfe602018-07-05 11:54:37 -050071 # SNMP manager IP Port Scenario
72 ${out_of_range_ip} ${SNMP_DEFAULT_PORT} error
73
Prashanth Katti081b3d92018-06-15 05:13:11 -050074Configure 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
86Configure 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
98Configure 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