Skip to content

Update README.md #48

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-d host=localhost \
-d port=3390 \
-d username=snare \
-d password="abcdABCD1234##" \
-d password="" \
-d database=snarepoc \
-d interval=1 \
-d period=10 \
Expand All @@ -58,7 +58,7 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-d host=localhost \
-d port=3390 \
-d username=snare \
-d password="abcdABCD1234##" \
-d password="" \
-d database=snarepoc \
-d interval=1 \
-d period=10 \
Expand Down Expand Up @@ -169,19 +169,19 @@ This section shows how to set up SSH tunnels to connect to remote databases from

### Oracle Autonomous Database (ADB) SSH Tunnel
```bash
ssh -fNT -v -L 1522:10.180.2.238:1521 opc@168.138.10.135 -i "/Users/shadab/Downloads/OracleContent/Keys/mydemo_vcn.priv"
ssh -fNT -v -L 1522:10.180.2.238:1521 opc@168.x.x.x -i "mydemo_vcn.priv"
```
### Local Oracle DB SSH Tunnel
```bash
ssh -fNT -v -L 1521:10.180.2.158:1521 opc@168.138.10.135 -i "/Users/shadab/Downloads/OracleContent/Keys/mydemo_vcn.priv"
ssh -fNT -v -L 1521:10.180.2.158:1521 opc@168.x.x.x -i "mydemo_vcn.priv"
```
### PostgreSQL SSH Tunnel
```bash
ssh -fNT -v -L 5432:10.180.2.205:5432 opc@168.138.10.135 -i "/Users/shadab/Downloads/OracleContent/Keys/mydemo_vcn.priv"
ssh -fNT -v -L 5432:10.180.2.205:5432 opc@168.x.x.x -i "mydemo_vcn.priv"
```
### MySQL SSH Tunnel
```bash
ssh -fNT -v -L 3306:10.180.2.30:3306 opc@168.138.10.135 -i "/Users/shadab/Downloads/OracleContent/Keys/mydemo_vcn.priv"
ssh -fNT -v -L 3306:10.180.2.30:3306 opc@168.x.x.x -i "mydemo_vcn.priv"
```
## API Usage Examples

Expand All @@ -195,7 +195,7 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-d host=localhost \
-d port=5432 \
-d username=ggadmin \
-d password="RAbbithole1234##" \
-d password="" \
-d database=dvdrental \
-d interval=1 \
-d period=5 \
Expand All @@ -217,7 +217,7 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-d host=localhost \
-d port=3306 \
-d username=admin \
-d password="RAbbithole1234##" \
-d password="" \
-d database=dvdrental \
-d interval=1 \
-d period=5 \
Expand All @@ -239,7 +239,7 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-d host=localhost \
-d port=1521 \
-d username=mpos \
-d password="abcdABCD1234##" \
-d password="" \
-d database=T1DB04 \
-d interval=1 \
-d period=5 \
Expand All @@ -262,9 +262,9 @@ curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
curl -u admin:abcd1234 -X POST https://localhost:8000/api/test-latency \
-k \
-d dbtype=oracle \
-d host="(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=localhost))(connect_data=(service_name=g9b8049aad9c64c_spotlightdemo_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))" \
-d host="(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=localhost))(connect_data=(service_name=****_s***_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=no)))" \
-d username=dvdrental \
-d password="RAbbithole1234##" \
-d password="" \
-d interval=1 \
-d period=5 \
| jq .
Expand Down