From 5d2e2133b818c719c3ff1592d7c51ef9ac8c2aac Mon Sep 17 00:00:00 2001 From: Erik Foris Date: Mon, 18 Mar 2024 13:15:42 +0000 Subject: [PATCH] add scripts --- getIP | 2 ++ getRoutes | 4 ++++ viewSubIDs => getSubIDs | 3 ++- getXApps | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 getIP create mode 100755 getRoutes rename viewSubIDs => getSubIDs (50%) create mode 100755 getXApps diff --git a/getIP b/getIP new file mode 100755 index 0000000..84ab43d --- /dev/null +++ b/getIP @@ -0,0 +1,2 @@ +#!/bin/bash +kubectl get pods -Ao wide | grep $1 | sed -E 's/.*[^0-9]([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+).*/\1/g' diff --git a/getRoutes b/getRoutes new file mode 100755 index 0000000..491f846 --- /dev/null +++ b/getRoutes @@ -0,0 +1,4 @@ +#!/bin/bash +SUBMGR=`./getIP rtmgr` +echo "route manager ip: $SUBMGR" +curl -X GET -H "accept: application/json" http://$SUBMGR:3800/ric/v1/getdebuginfo | jq diff --git a/viewSubIDs b/getSubIDs similarity index 50% rename from viewSubIDs rename to getSubIDs index 643edef..5591a2c 100755 --- a/viewSubIDs +++ b/getSubIDs @@ -1,3 +1,4 @@ #!/bin/bash -SUBMGR=$1 +SUBMGR=`./getIP submgr` +echo "subscription manager ip: $SUBMGR" curl -X GET http://$SUBMGR:8088/ric/v1/subscriptions diff --git a/getXApps b/getXApps new file mode 100755 index 0000000..625fbe0 --- /dev/null +++ b/getXApps @@ -0,0 +1,4 @@ +#!/bin/bash +SUBMGR=`./getIP appmgr` +echo "app manager ip: $SUBMGR" +curl -X GET -H "Content-Type:application/json" http://$SUBMGR:8080/ric/v1/xapps | jq