blob: 6946b808ec69f643053a0a2ef59445d4e5fa922f [file] [log] [blame]
Prashanth Katti391000c2021-06-11 04:09:21 -05001*** Settings ***
2Documentation This testing requires special setup where SNMP trapd is
3... configured and installed. For download, installation and
4... configuration refer http://www.net-snmp.org/.
5
6
7Resource ../../lib/snmp/resource.robot
8Resource ../../lib/snmp/redfish_snmp_utils.robot
9Resource ../../lib/bmc_redfish_resource.robot
10Resource ../../lib/openbmc_ffdc.robot
11Resource ../../lib/bmc_redfish_resource.robot
12Resource ../../lib/openbmc_ffdc.robot
13Resource ../../lib/logging_utils.robot
14
15
16Test Teardown FFDC On Test Case Fail
17Suite Setup Suite Setup Execution
18
19*** Variables ***
20
21${snmp_function} SNMPTrap
22${snmp_version} SNMPv2c
23${subscription_uri} /redfish/v1/EventService/Subscriptions
24
25
26*** Test Cases ***
27
28Configure SNMP Manager On BMC And Verify
29 [Documentation] Configure SNMP manager on BMC via Redfish and verify.
30 [Tags] Configure_SNMP_Manager_On_BMC_And_Verify
Prashanth Kattidd99a912021-06-14 09:12:02 -050031 [Teardown] Delete SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
Prashanth Katti391000c2021-06-11 04:09:21 -050032
33 Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} ${HTTP_CREATED}
34
35 Verify SNMP Manager Configured On BMC ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
36
37
38*** Keywords ***
39
40Suite Setup Execution
41 [Documentation] Do suite setup execution.
42
43 Redfish.Login
44
45 # Check for SNMP configurations.
46 Valid Value SNMP_MGR1_IP
47 Valid Value SNMP_DEFAULT_PORT