Skip to content

Conversation

@NightowlKr
Copy link
Contributor

  • Introduced argparse to support '-r' or '--config' command-line option for specifying the configuration JSON file path.
  • The default config path remains /etc/snmp/ss.json for backward compatibility.
  • This enhancement allows users to flexibly provide alternative config files without modifying the script.
  • Updated internal logic to consistently use the supplied config path.

add -r/--config option to specify config file path
@NightowlKr NightowlKr changed the title Update ss.py Fix ss.py for specifying the configuration JSON file path Jun 19, 2025
@NightowlKr NightowlKr changed the title Fix ss.py for specifying the configuration JSON file path Fix Socket Statistics Script for specifying the configuration JSON file path Jun 19, 2025
- Minor code cleanup and docstring update.
- Update documentation and example config in the script header.
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

Successfully merging this pull request may close these issues.

1 participant