Lines Matching full:snmp

1 Documentation  Utility for SNMP configurations via Redfish.
37 Get SNMP Manager List
38 [Documentation] Get the list of SNMP managers and return IP addresses and ports.
40 # Get the list of SNMP manager URIs.
41 @{snmp_mgr_uris}= Get SNMP Child URIs
51 # "Destination": "snmp://xx.xx.xx.xx:162",
66 Configure SNMP Manager Via Redfish
67 [Documentation] Configure SNMP manager on BMC via Redfish.
71 # snmp_mgr_ip SNMP manager IP address
72 # snmp_port SNMP manager port
76 ${snmp_mgr_data}= Create Dictionary Destination=snmp://${snmp_mgr_ip}${colon}${snmp_port}
83 Verify SNMP Manager Configured On BMC
84 [Documentation] Verify SNMP manager configured on BMC.
88 # snmp_mgr_ip SNMP manager IP address
89 # snmp_port SNMP manager port
91 # Get the list of SNMP managers that are configured on BMC.
92 @{snmp_mgr_list}= Get SNMP Manager List
96 List Should Contain Value ${snmp_mgr_list} snmp://${snmp_ip_port}
97 ... msg=SNMP manager is not configured.
100 Get SNMP Child URIs
101 [Documentation] Get the list of all SNMP manager URIs.
103 # Sample output of SNMP URI:
140 @{snmp_mgr_uris}= Redfish.Get Members List ${subscription_uri} filter=snmp
145 Delete SNMP Manager Via Redfish
146 [Documentation] Delete SNMP manager.
150 # snmp_mgr_ip SNMP manager IP.
151 # snmp_port Network port where SNMP manager is listening.
156 # Get the list of SNMP manager URIs.
157 @{snmp_mgr_uris}= Get SNMP Child URIs
159 # Find the SNMP manager URI that has IP and port configured.
166 # "Destination": "snmp://xx.xx.xx.xx:162",
173 # Find the SNMP manager that has matching destination details.
176 # Delete the SNMP manager if the requested IP & ports are found
178 IF 'snmp://${snmp_ip_port}' == '${snmp_mgr}'
186 ... SNMP Manager: ${snmp_mgr_ip}:${snmp_port} is not configured on BMC
188 # Check if the SNMP manager is really deleted from BMC.
190 ... Verify SNMP Manager Configured On BMC ${snmp_mgr_ip} ${snmp_port}
192 Should Be Equal ${status} ${False} msg=SNMP manager is not deleted in the backend.
201 # expected_error Expected error on SNMP.
203 Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT} ${HTTP_CREATED}
205 Start SNMP Manager
213 Delete SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
215 # Stop SNMP manager process.
218 # Sample SNMP trap:
230 Verify SNMP Trap ${snmp_trap} ${expected_error}
235 Verify SNMP Trap
236 [Documentation] Verify SNMP trap.
240 # snmp_trap SNMP trap collected on SNMP manager.
241 # expected_error Expected error on SNMP.
252 Start SNMP Manager
253 [Documentation] Start SNMP listener on the remote SNMP manager.
258 # Clean SNMP managers running in the background.
261 # The execution of the SNMP_TRAPD_CMD is necessary to cause SNMP to begin
262 # listening to SNMP messages.
272 # expected_error Expected error on SNMP.
274 Configure SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
276 Start SNMP Manager On Specific Port ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
284 Delete SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${NON_DEFAULT_PORT1}
286 # Stop SNMP manager process.
289 # Sample SNMP trap:
301 Verify SNMP Trap ${snmp_trap} ${expected_error}
306 Start SNMP Manager On Specific Port
307 [Documentation] Start SNMP listener on specific port on the remote SNMP manager.
311 # snmp_mgr_ip SNMP manager IP.
312 # snmp_port Network port on which SNMP manager need to run.
319 # The execution of the SNMP_TRAPD_CMD is necessary to cause SNMP to begin
320 # listening to SNMP messages.
330 # expected_error Expected error on SNMP.
332 Start SNMP Manager
340 Delete SNMP Manager Via Redfish ${SNMP_MGR1_IP} ${SNMP_DEFAULT_PORT}
342 # Stop SNMP manager process.
345 # Sample SNMP trap:
357 Verify SNMP Trap ${snmp_trap} ${expected_error}