-
Notifications
You must be signed in to change notification settings - Fork 13
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
Meinberg Syncbox Agent #558
Conversation
for more information, see https://pre-commit.ci
@mhasself putting this on your radar as it seems relevant again. this had worked last year and I'm wondering if it'd be useful to update this and push for review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we should probably have this running.
Find a couple of comments inline from reading the code quickly.
It would be good to demonstrate that these variables do tell us something ... e.g. if we disconnect the PTP grandmaster, does the value of mbgSyncboxN2XPtpPortState change in a way that we would detect with this?
With the SNMP stuff it always bothers me that most of the fields will, like, never change. While for others you might want to sample them a little more often than every ~60s, but only report the value if it has changed (or if a long time has elapsed). Let's consider that a little more.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fixes -- still some issues with error handling I think.
I think the only way forward here is to make a list of expected fields (you have done that); then to query those on each iteration, and if any fields are missing, don't publish them and mark self as degraded.
If the "outputs" list is actually dynamic (depends on syncbox config), then you can have each output assigned to a different ocs feed -- that way it won't be an error for those to go in and out depending on syncbox configuration.
A better way, given that we want our syncbox to be in a particular configuration, would be to have command line args that specify which outputs should be configured. Then the syncbox can only monitor those, and become degraded if the status is not available.
@mhasself Should I not update |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest version looks good.
To mark the session as degraded, just set session.degraded = True
; then clear that when connection is re-established.
This seems good to merge, yeah? @davidvng any other changes incoming? |
@BrianJKoopman no other changes from me, I think it's good to merge |
Clearing request for changes, approval provided in comment above.
Description
Adds new agent to receive data from the Meinberg syncbox via SNMP.
Motivation and Context
Resolves #518 .
How Has This Been Tested?
Tested on
daq-dev
with syncboxes available on site.Types of changes
Checklist: