Created
January 18, 2019 21:53
-
-
Save mttjohnson/fabb6aeb061de9eb219b7a16e31e30ff to your computer and use it in GitHub Desktop.
Solr Administration Testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get Solr system info | |
| curl -s http://127.0.0.1:8983/solr/admin/system?wt=json | jq . | |
| # Create tunnel to remote server, and separately send request | |
| ssh -L 8983:127.0.0.1:8983 server_host | |
| curl -s http://127.0.0.1:8983/solr/admin/system?wt=json | jq . | |
| # Create temporary (10 seconds) tunnel in backgorund, then send web request | |
| ssh -f -o ExitOnForwardFailure=yes -L 8983:127.0.0.1:8983 server_host sleep 10 | |
| curl -s http://127.0.0.1:8983/solr/admin/system?wt=json | jq . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment