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

Provide for workaround for internet validation (ping) #87

Closed
cocarrig opened this issue Mar 29, 2023 · 3 comments
Closed

Provide for workaround for internet validation (ping) #87

cocarrig opened this issue Mar 29, 2023 · 3 comments
Assignees

Comments

@cocarrig
Copy link
Collaborator

Description:
For network validation, the DAKboard OS completes a ping request to validate internet access. Because some organizations block outbound ping requests there is a use case for the ability for the users with terminal access to change the destination ping address in one location as opposed to the current hardcoded multiple locations.

@cocarrig
Copy link
Collaborator Author

cocarrig commented May 25, 2023

potential redesign methodology using netcat:
nc -vz google.com 443

  • if fails continue
    nc -vz dakboard.com 443
  • if fails take legacy actions for failure to ping

command success criteria:
'succeeded' is present in response

@Dan-Peck Dan-Peck self-assigned this Nov 13, 2023
@Dan-Peck
Copy link

After some initial research, nc appears to never exit when there's a failed connection, and while we can specify the length of timeouts, there is no way to specify the number of retries!

However, there is a CLI unix utility called timeout that can kill a process after X amount of time. I've tested this and it works nicely! The exit status can be used to determine the success of the operation. If it is 0, then it was a successful test, anything else, and it is a connection failure.

@cocarrig
Copy link
Collaborator Author

cocarrig commented Mar 6, 2024

Completed and released in version 4.01 for RPi models, will not be supported for OPi models at this time:
https://github.com/dakboard/Hardware-OS/releases/tag/4.01

@cocarrig cocarrig closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants