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