Skip to content

Commit afc07f1

Browse files
committed
Added tier nodes command
1 parent d6feacb commit afc07f1

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

adc.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,13 @@ register tier_get Retrieve Tier Information by Tier Name
557557
describe tier_get << EOF
558558
Retrieve Tier Information by Tier Name. Provide the application and the tier as parameters
559559
EOF
560+
function tier_nodes {
561+
apiCall -X GET "/controller/rest/applications/\${a}/tiers/\${t}/nodes" "$@"
562+
}
563+
register tier_nodes" Retrieve Node Information for All Nodes in a Tier"
564+
describe tier_nodes << EOF
565+
Retrieve Node Information for All Nodes in a Tier. Provide the application and the tier as parameters
566+
EOF
560567
function metric_list {
561568
local APPLICATION=${CONFIG_CONTROLLER_DEFAULT_APPLICATION}
562569
local METRIC_PATH=""

commands/tier/nodes.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
function tier_nodes {
4+
apiCall -X GET "/controller/rest/applications/\${a}/tiers/\${t}/nodes" "$@"
5+
}
6+
7+
register tier_nodes" Retrieve Node Information for All Nodes in a Tier"
8+
9+
describe tier_nodes << EOF
10+
Retrieve Node Information for All Nodes in a Tier. Provide the application and the tier as parameters
11+
EOF

main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
USER_CONFIG="$HOME/.appdynamics/adc/config.sh"
43
GLOBAL_CONFIG="/etc/appdynamics/adc/config.sh"
54

@@ -64,6 +63,7 @@ source ./commands/bt/list.sh
6463

6564
source ./commands/tier/list.sh
6665
source ./commands/tier/get.sh
66+
source ./commands/tier/nodes.sh
6767

6868
source ./commands/metric/list.sh
6969
source ./commands/metric/get.sh

0 commit comments

Comments
 (0)