Skip to content

Instantly share code, notes, and snippets.

@mttjohnson
Created January 18, 2019 21:53
Show Gist options
  • Save mttjohnson/fabb6aeb061de9eb219b7a16e31e30ff to your computer and use it in GitHub Desktop.
Save mttjohnson/fabb6aeb061de9eb219b7a16e31e30ff to your computer and use it in GitHub Desktop.
Solr Administration Testing
# 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