Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to configure SNMP manager with invalid port (Ex: alpha & negative port) #3628

Closed
gtmills opened this issue May 8, 2023 · 2 comments
Closed
Assignees
Labels
ReadyForDev Stories ready for development work

Comments

@gtmills
Copy link

gtmills commented May 8, 2023

Able to configure SNMP manager with invalid port (Ex: alpha & negative port)
Internal defect number: 525716
Steps to create:

curl -k -H "X-Auth-Token: $bmc_token" -X POST -D headers.txt https://${bmc}/redfish/v1/EventService/Subscriptions -d '{"Destination":"snmp://xx.yy.xx.yy:ab", "SubscriptionType":"SNMPTrap", "Protocol":"SNMPv2c"}'
{
  [
    {
      "@odata.type": "#Message.v1_1_1.Message",
      "Message": "The resource has been created successfully.",
      "MessageArgs": [],
      "MessageId": "Base.1.13.0.Created",
      "MessageSeverity": "OK",
      "Resolution": "None."
    }
  ]
}
bash-4.2$ curl -k -H "X-Auth-Token: $bmc_token" -X POST -D headers.txt https://${bmc}/redfish/v1/EventService/Subscriptions -d '{"Destination":"snmp://xx.yy.xx.yy:-40", "SubscriptionType":"SNMPTrap", "Protocol":"SNMPv2c"}'
{
   [
    {
      "@odata.type": "#Message.v1_1_1.Message",
      "Message": "The resource has been created successfully.",
      "MessageArgs": [],
      "MessageId": "Base.1.13.0.Created",
      "MessageSeverity": "OK",
      "Resolution": "None."
    }
  ]
}
@gtmills gtmills added the ReadyForDev Stories ready for development work label May 8, 2023
@ChicagoDuan
Copy link
Member

Done, please review: ibm-openbmc/bmcweb#688

@ChicagoDuan ChicagoDuan self-assigned this May 24, 2023
@ChicagoDuan
Copy link
Member

Merged: ibm-openbmc/bmcweb#688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ReadyForDev Stories ready for development work
Projects
None yet
Development

No branches or pull requests

2 participants