{"id":15475372,"url":"https://github.com/dhellmann/redfish-event-experiment","last_synced_at":"2025-06-26T08:33:51.053Z","repository":{"id":143288977,"uuid":"312632915","full_name":"dhellmann/redfish-event-experiment","owner":"dhellmann","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-16T21:29:09.000Z","size":261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-17T13:55:30.809Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhellmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-13T16:50:46.000Z","updated_at":"2024-06-19T08:08:59.610Z","dependencies_parsed_at":"2023-05-10T22:45:43.185Z","dependency_job_id":null,"html_url":"https://github.com/dhellmann/redfish-event-experiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dhellmann/redfish-event-experiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fredfish-event-experiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fredfish-event-experiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fredfish-event-experiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fredfish-event-experiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhellmann","download_url":"https://codeload.github.com/dhellmann/redfish-event-experiment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fredfish-event-experiment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262030459,"owners_count":23247659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T03:11:57.853Z","updated_at":"2025-06-26T08:33:51.036Z","avatar_url":"https://github.com/dhellmann.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experimenting with Redfish Event Subscription\n\n## Config files\n\nCopy `config.yaml.example` to `config.yaml` and modify the BMC\nsettings and the IP address for the receiver endpoint.\n\n## Data dumper\n\n`dump/main.go` shows some settings for the BMC, including existing\nevent subscriptions.\n\n```\ngo run ./dump/main.go\n```\n\n## Receiver\n\n`receiver/main.go` is a web server that dumps the event notifications\nto the console. To run it\n\n1. First, use `make_certs.sh` to generate certificates (you may need\n   to modify `openssl.conf` to change the hostname for the certs).\n2. Then run\n\n   ```\n   go run ./receiver/main.go\n   ```\n\n## Register the receiver\n\n`register/main.go` configures the BMC to send events to the receiver\nservice.\n\n```\ngo run ./register/main.go\n```\n\n## Testing\n\nAfter the receiver is registered, using the dumper should trigger a\nlogin event notification. The output on the console will look\nsomething like this.\n\n```\n$ go run ./receiver/main.go\nlistening on https://10.8.1.133:9090\n\n[POST] /: \"{\\\"Context\\\":\\\"Public\\\",\\\"EventId\\\":\\\"8491\\\",\\\"EventTimestamp\\\":\\\"2020-11-13T15:22:43-0500\\\",\\\"EventType\\\":\\\"Alert\\\",\\\"MemberId\\\":\\\"f35299c0-25ed-11eb-a058-588a5afa1cc4\\\",\\\"Message\\\":\\\"Successfully logged in using Username, from 10.8.1.133 and REDFISH.\\\",\\\"MessageArgs\\\":[\\\"Username\\\",\\\"10.8.1.133\\\",\\\"REDFISH\\\"],\\\"MessageArgs@odata.count\\\":3,\\\"MessageId\\\":\\\"USR0030\\\",\\\"OriginOfCondition\\\":\\\"iDRAC.Embedded.1\\\",\\\"Severity\\\":\\\"Informational\\\"}\\n\"\nAccept: */*\nContent-Length: 394\nContent-Type: application/json\n```\n\nThe web UI for the BMC also includes a way to send test events. The\ninput must be a valid message ID, as defined by the hardware. One\nvalue that works for Dell is `CPU0001`.\n\n## Cleaning up\n\n`unsubscribe/main.go` removes a subscription from the BMC. Use the\ndumper program to get the URI, then pass it on the command line.\n\n```\ngo run ./unsubscribe/main.go /redfish/v1/EventService/Subscriptions/f35299c0-25ed-11eb-a058-588a5afa1cc4\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fredfish-event-experiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhellmann%2Fredfish-event-experiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fredfish-event-experiment/lists"}