import redfish def get_server_info(ip, username, password): redfish_obj = redfish.LegacyRestClient(ip, username, password) response = rest_obj.post('/redfish/v1/Managers/1/SnmpService/Actions/SnmpService.SendSNMPTestAlert/', body={}) return response