Skip to content

Instantly share code, notes, and snippets.

View shadabshaukat's full-sized avatar
🕶️

Shadab Mohammad shadabshaukat

🕶️
View GitHub Profile
@shadabshaukat
shadabshaukat / View_Report_Extract.sh
Last active May 23, 2022 03:11
View_Report_Extract
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/info/reports/<extract name>.rpt
@shadabshaukat
shadabshaukat / Deployment_Health.sh
Last active May 22, 2022 15:50
Deployment_Health
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/config/health
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/exttrails
@shadabshaukat
shadabshaukat / Purge_Trails_Older_Than_X_Hours.sh
Last active May 23, 2022 03:09
Purge_Trails_Older_Than_X_Hours
curl -u user:"password"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X POST https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/commands/execute -d '{"name": "purge","purgeType":"trails","trails": [{"name": "<trail name>"}],"useCheckpoints":false,"keep": [{"type": "min","units": "hours","value": 7}]}'
@shadabshaukat
shadabshaukat / Get_Lag_of_All_Processes.sh
Created May 22, 2022 15:03
Get_Lag_of_All_Processes
curl -X "POST" "https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/commands/execute" \
 -H 'Content-Type: application/json' \
 -H 'Accept: application/json' \
 -u 'user:password' \
 -d $'{
 "name": "report",
 "thresholds": [
 {
 "type": "info",
 "units": "seconds",
@shadabshaukat
shadabshaukat / Get_Status_of_a_Replicat.sh
Last active May 23, 2022 03:07
Get_Status_of_a_Replicat
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/info/status
@shadabshaukat
shadabshaukat / Retrieve_Details_of_an_Replicat.sh
Last active May 23, 2022 03:08
Retrieve_Details_of_an_Replicat
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>
@shadabshaukat
shadabshaukat / Retrieve_Details_of_an_Extract.sh
Last active May 23, 2022 03:07
Retrieve_Details_of_an_Extract
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>
@shadabshaukat
shadabshaukat / Get_Status_of_an_Extract.sh
Last active May 23, 2022 03:07
Get_Status_of_an_Extract
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/info/status
curl -u <user>:"<password>"
-H "Content-Type: application/json"
-H "Accept: application/json"
-X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats