Open Julia-Delta opened 5 months ago
@meghagn12345 @prkatti1 Please check on this
@Julia-Delta We tested it on our system & this code is working fine.
For SNMP_MGR1_IP & SNMP_MGR2_IP please pass the IP of the system from where your are tracking/checking the snmp trap
@meghagn5 Thanks for your reply. What is your testing environment? My test environment is the following: Python 3.10.12 Robot Framework 6.1.1 (Python 3.10.12 on linux) redfish 3.2.2 redfish_utilities 3.2.7 redfishtool 1.1.8
@Julia-Delta
Python - 3.11 Robot Framework - 6.11
Hi @meghagn5, I changed the environment to python 3.11, but test still failed. I could enable snmptrapd, but recevied nothing after sending the error log event request. May I ask the snmptrapd complete command? the trap message will send to the standard error stream, the standard output stream or others?
Test environment as following, BMC IP: 100.100.100.142 SNMP_MGR1_IP:100.100.100.142 SNMP_MGR2_IP:100.100.100.151 SNMP_MGR3_IP:100.100.100.144 SNMP_TRAPD_CMD:/usr/sbin/snmptrapd -f -c /etc/snmp/snmptrapd.conf -Le
Test result is failed because that the ${snmp_trap} was a empty string as the following capture.
But I test commands which in the robot script manually. snmptrapd can get the trap which occurred by setting error event log reuqest
These are 2 questions,
Attached file is testing resuslt results.zip