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

Add CLI options for specific query execution (e.g., SNMP dump) #424

Closed
11 tasks done
NassimBtk opened this issue Sep 23, 2024 · 1 comment
Closed
11 tasks done

Add CLI options for specific query execution (e.g., SNMP dump) #424

NassimBtk opened this issue Sep 23, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request java
Milestone

Comments

@NassimBtk
Copy link
Member

NassimBtk commented Sep 23, 2024

Specification

We need to extend the MH CLI by adding new options to run specific queries. This includes executing tasks like collecting SNMP dumps, running particular requests, and other extension-specific queries.

  • SnmpExtension
  • SnmpV3Extension
  • HttpExtension
  • IpmiExtension
  • WbemExtension
  • WmiExtension
  • WinRmExtension
  • OsCommandExtension
  • JdbcExtension
  • PingExtension
  • Testing on MetricsHub CLI

Documentation : #526

@bertysentry
Copy link
Member

+1

Excellent idea, and it's really easy to implement!

@CherfaElyes CherfaElyes added enhancement New feature or request java labels Oct 18, 2024
@NassimBtk NassimBtk added this to the 1.0.02 milestone Oct 22, 2024
@NassimBtk NassimBtk removed this from the v0.9.08 milestone Nov 22, 2024
CherfaElyes added a commit that referenced this issue Dec 2, 2024
* Added IQuery interface to handle protocols queries.
* Developed SnmpCli executable which enables to execute SNMP get, getNext & walk commands through CLI.
* Tested the generated SNMP.exe with different commands.
CherfaElyes added a commit that referenced this issue Dec 2, 2024
CherfaElyes added a commit that referenced this issue Dec 3, 2024
* Refactored tests to make them more concise.
* Refactored executeQuery on SNMP Extension to make it more concise.
* Reformatted the code.
* Tested the client.
CherfaElyes added a commit that referenced this issue Dec 3, 2024
* Refactored tests to make them more concise.
* Refactored executeQuery on SNMP Extension to make it more concise.
* Reformatted the code.
* Tested the client.
CherfaElyes added a commit that referenced this issue Dec 3, 2024
CherfaElyes added a commit that referenced this issue Dec 3, 2024
CherfaElyes added a commit that referenced this issue Dec 4, 2024
* Corrected some tiny issues related to javadoc and picocli orders.
CherfaElyes added a commit that referenced this issue Dec 4, 2024
CherfaElyes added a commit that referenced this issue Dec 5, 2024
* Added a default configuration on SNMP Cli in order to simplify some requests.
* Made the necessary changes to correct unit tests.
* Added executeQuery() empty method to JdbcExtension
CherfaElyes added a commit that referenced this issue Dec 5, 2024
* Added SNMP unit tests to increase the coverage.
CherfaElyes added a commit that referenced this issue Dec 5, 2024
CherfaElyes added a commit that referenced this issue Dec 5, 2024
CherfaElyes added a commit that referenced this issue Dec 10, 2024
* Added IQuery interface to handle protocols queries.
* Developed SnmpCli executable which enables to execute SNMP get, getNext & walk commands through CLI.
* Tested the generated SNMP.exe with different commands.
CherfaElyes added a commit that referenced this issue Dec 10, 2024
* Developped HTTP Cli which enables to execute HTTP queries from the CLI.
* Tested http.exe.
CherfaElyes added a commit that referenced this issue Dec 10, 2024
* Added Unit tests to HttpCli
* Added Unit tests to HttpExtension
* Tested http.exe
CherfaElyes added a commit that referenced this issue Dec 10, 2024
CherfaElyes added a commit that referenced this issue Dec 10, 2024
* Refactored HttpCli to exclude port, hostname, path & protocol. These will be extracted from the Url.
* Made the neccessary changes to make everything work.
* Added unit tests.
* Tested the CLI.
CherfaElyes added a commit that referenced this issue Dec 11, 2024
* Refactored HttpCli to exclude port, hostname, path & protocol. These will be extracted from the Url.
* Made the neccessary changes to make everything work.
* Added unit tests.
* Tested the CLI.
CherfaElyes added a commit that referenced this issue Dec 11, 2024
* Refactored HttpCli to exclude port, hostname, path & protocol. These will be extracted from the Url.
* Made the neccessary changes to make everything work.
* Added unit tests.
* Tested the CLI.
CherfaElyes added a commit that referenced this issue Dec 11, 2024
* Developped IPMI Cli which enables to execute IPMI queries from the CLI.
* Added Unit tests.
* added ipmi.exe to Windows and Linux pom.xml
* Tested ipmi.exe.
CherfaElyes added a commit that referenced this issue Dec 11, 2024
* Developped SnmpV3 Cli which enables to execute SnmpV3 queries from the CLI.
* Added Unit tests.
* added SnmpV3.exe to Windows and Linux pom.xml
* Tested SnmpV3.exe.
CherfaElyes added a commit that referenced this issue Dec 13, 2024
* Developped Wbem Cli which enables to execute Wbem queries from the CLI.
* Added Unit tests.
* added Wbem .exe to Windows and Linux pom.xml
* Tested Wbem .exe.
CherfaElyes added a commit that referenced this issue Dec 13, 2024
* Refactored unit tests to make them work.
CherfaElyes added a commit that referenced this issue Dec 16, 2024
* Developped WMICli which enables to execute WMIqueries from the CLI.
* Added Unit tests.
* added WMI.exe to Windows and Linux pom.xml
* Tested WMI.exe.
CherfaElyes added a commit that referenced this issue Dec 16, 2024
* Developped WMICli which enables to execute WMIqueries from the CLI.
* Added Unit tests.
* added WMI.exe to Windows and Linux pom.xml
* Tested WMI.exe.
CherfaElyes added a commit that referenced this issue Dec 16, 2024
* Developped WinRmCli which enables to execute WinRm queries from the CLI.
* Added Unit tests.
* added WinRm.exe to Windows and Linux pom.xml
* Tested WinRm.exe.
CherfaElyes added a commit that referenced this issue Dec 19, 2024
* Developped JdbcCli which enables to execute JDBC queries from the CLI.
* Added Unit tests.
* added JDBC.exe to Windows and Linux pom.xml
* Tested JDBC.exe.
CherfaElyes added a commit that referenced this issue Dec 19, 2024
* Developped SshCli which enables to execute command line queries through SSH from the CLI.
* Added Unit tests.
* added Ssh.exe to Windows and Linux pom.xml
* Tested Ssh.exe.
CherfaElyes added a commit that referenced this issue Dec 19, 2024
* Developped SshCli which enables to execute command line queries through SSH from the CLI.
* Added Unit tests.
* added Ssh.exe to Windows and Linux pom.xml
* Tested Ssh.exe.
CherfaElyes added a commit that referenced this issue Dec 26, 2024
* Developped PingCli which enables to execute ICMP ping queries from the CLI.
* Added Unit tests.
* added ping.exe to Windows and Linux pom.xml
* Tested ping.exe.
CherfaElyes added a commit that referenced this issue Dec 26, 2024
- Reformatted all the ProtocolCLI classes.
- Added ping CLI which allows to ping a host through metricshub.
- Updated Windows and Linux pom.xml to include ping exe
- Tested ping.exe
- Tested all the protocols.
CherfaElyes added a commit that referenced this issue Dec 27, 2024
* Minor adjustements on the CLIs by enabling case insensive options.
CherfaElyes added a commit that referenced this issue Dec 27, 2024
* Fixed a unit test to make it work on windows & linux.
CherfaElyes added a commit that referenced this issue Dec 27, 2024
* Fixed LF & CRLF issue in a unit test.
CherfaElyes added a commit that referenced this issue Dec 27, 2024
* Make all the line separators as LF to resolve the Linux test failure.
NassimBtk added a commit that referenced this issue Dec 27, 2024
* Various updates before merge.
* Code refactoring on SNMP Extension
NassimBtk added a commit that referenced this issue Dec 27, 2024
…-options-for-specific-query-execution-eg-ping

Issue #424: Add CLI options for specific query execution
@NassimBtk NassimBtk added this to the 0.9.09 milestone Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants