add scripts

This commit is contained in:
Erik Foris 2024-03-18 13:15:42 +00:00
parent 4b003bf0c1
commit 5d2e2133b8
4 changed files with 12 additions and 1 deletions

2
getIP Executable file
View File

@ -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'

4
getRoutes Executable file
View File

@ -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

View File

@ -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

4
getXApps Executable file
View File

@ -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