You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: USAGE.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ The following commands in the global namespace can be called directly.
25
25
26
26
| Command | Description | Example |
27
27
| ------- | ----------- | ------- |
28
-
| config | Initialize the default environment. This is an alias for `act.sh environment add -d`|`act.sh config `|
29
28
| version | Print the current version of act.sh |`act.sh version `|
29
+
| config | Initialize the default environment. This is an alias for `act.sh environment add -d`|`act.sh config `|
30
30
31
31
32
32
## account
@@ -44,6 +44,7 @@ Import or export all actions in the specified application to a JSON file.
44
44
45
45
| Command | Description | Example |
46
46
| ------- | ----------- | ------- |
47
+
| create | Provide a json string or a file (with @ as prefix) as parameter (-d) |`act.sh action create -d @actions.json`|
47
48
| delete | Provide an action id (-i) as parameter. |`act.sh action delete `|
48
49
| export | Export actions. Provide an application id or name as parameter (-a). |`act.sh action export -a 15`|
49
50
| import | Import actions. Provide an application id or name as parameter (-a) and a json string or a file (with @ as prefix) as parameter (-d) |`act.sh action import -a 15 -d @actions.json`|
@@ -177,11 +178,11 @@ Basic calls against an AppDynamics controller.
| status | Get the server status. This command will return a XML containing status information about the controller. |`act.sh controller status `|
181
+
| version | Get installed version from controller |`act.sh controller version `|
180
182
| isup | This command will pause until the controller is up. Use this to get notified after the controller is booted successfully. |`act.sh controller isup ; act.sh application list`|
181
183
| call | Send a custom HTTP call to an AppDynamics controller. Provide the endpoint you want to call as parameter. You can modify the http method with option -X and add payload with option -d. |`act.sh controller call /controller/rest/serverstatus`|
182
184
| login | Check if the login with your appdynamics controller works properly. If the login fails, use `act.sh controller ping` to check if the controller is running and check your credentials if they are correct. |`act.sh controller login `|
183
185
| ping | Check the availability of an appdynamics controller. On success the response time will be provided. |`act.sh controller ping `|
184
-
| version | Get installed version from controller |`act.sh controller version `|
185
186
186
187
187
188
## dashboard
@@ -210,18 +211,18 @@ Use the Database Visibility API to get, create, update, and delete Database Visi
210
211
| list | List all collectors. No further arguments required. |`act.sh dbmon list `|
211
212
| queries | Get queries for a server. Requires a server id (-i), a start time (-b) and an end time (-f) as parameters. |`act.sh dbmon queries -i 2 -b 1545237000000 -f 1545238602`|
212
213
| servers | List all servers. No further arguments required. |`act.sh dbmon servers `|
213
-
| create | Create a new database collector. You need to provide the following parameters:"<br>"/ -i name"<br>"/ -u user name"<br>"/ -h host name"<br>"/ -a agent name"<br>"/ -t type"<br>"/ -d database name"<br>"/ -p port"<br>"/ -s password |`act.sh dbmon create -i MyTestDB -h localhost -n db -u user -a "Default Database Agent" -t DB2 -p 1555 -s password`|
214
214
| events | List all database agent events. This is an alias for `act.sh event list -a '_dbmon'`, so you can use the same parameters for querying the events. |`act.sh dbmon events -t BEFORE_NOW -d 60 -s INFO,WARN,ERROR -e AGENT_EVENT`|
215
+
| create | Create a new database collector. You need to provide the following parameters:<br>/ -i name<br>/ -u user name<br>/ -h host name<br>/ -a agent name<br>/ -t type<br>/ -d database name<br>/ -p port<br>/ -s password |`act.sh dbmon create -i MyTestDB -h localhost -n db -u user -a "Default Database Agent" -t DB2 -p 1555 -s password`|
215
216
216
217
217
218
## download
218
219
219
220
| Command | Description | Example |
220
221
| ------- | ----------- | ------- |
221
-
|login|Login with AppDynamics to retrieve an OAUTH token for downloads. You can use the provided token for downloads from https://download.appdynamics.com/|`act.sh download login`|
222
+
|versionlist||`act.sh download versionlist`|
222
223
| get | Download an agent. You need to provide a partial name of an agent you want to download. Optionally, you can provide a directory (-d) as download location. By default only the first match is downloaded, you can provide parameter -a to download all matches. |`act.sh download get -d /tmp golang`|
223
224
| list | List agent files. You can provide a filter (-f) to filter for specific agent files. Or you can provide a search query (-s) to execute . Provide parameter -d to get the full download path |`act.sh download list -d -f golang`|
224
-
|versionlist||`act.sh download versionlist`|
225
+
|login|Login with AppDynamics to retrieve an OAUTH token for downloads. You can use the provided token for downloads from https://download.appdynamics.com/|`act.sh download login`|
225
226
226
227
227
228
## environment
@@ -232,13 +233,13 @@ Afterwards you can use `act.sh -E <name>` to call the given controller.
| add | Add a new environment. To change the default environment, run with `-d`|`act.sh environment add -d`|
242
243
243
244
244
245
## eum
@@ -288,8 +289,8 @@ Configure and retrieve health rules and their violates.
288
289
| get | Get a healthrule. Provide an application (-a) and a health rule name (-n) as parameters. |`act.sh healthrule get -a 29`|
289
290
| list | List all healthrules. Provide an application (-a) as parameter |`act.sh healthrule list -a 29`|
290
291
| violations | Get all healthrule violations. Provide an application (-a) and a time range type (-t) as parameters, as well as a duration in minutes (-d) or a start-time (-b) and an end time (-f) |`act.sh healthrule violations -a 29 -t BEFORE_NOW -d 120`|
292
+
| list | Copy healthrules from one application to another. Provide the source application id ("-s") and the target application ("-t").<br>/If you provide ("-n") only the named health rule will be copied. |`act.sh healthrule list -a 29`|
291
293
| import | Import a health rule. ||
292
-
| list | Copy healthrules from one application to another. Provide the source application id ("-s") and the target application ("-t")."<br>"/If you provide ("-n") only the named health rule will be copied. |`act.sh healthrule list -a 29`|
293
294
294
295
295
296
## licenserule
@@ -318,8 +319,8 @@ Configure and retrieve health rules and their violates.
318
319
| Command | Description | Example |
319
320
| ------- | ----------- | ------- |
320
321
| get | Get a specific metric by providing the metric path. Provide the application with option -a ||
321
-
| tree | Create a metric tree for the given application (-a). Note that this will create a lot of requests towards your controller. ||
322
322
| list | List all metrics available for one application (-a). Provide a metric path like "Overall Application Performance" to walk the metrics tree. ||
323
+
| tree | Create a metric tree for the given application (-a). Note that this will create a lot of requests towards your controller. ||
323
324
324
325
325
326
## node
@@ -386,7 +387,7 @@ List servers, their properties and metrics
386
387
| delete | Delete a machine. Provide a machine id (-m) as parameter. |`act.sh server delete -m 244`|
387
388
| get | Get a machine. Provide a machine id (-m) as parameter. |`act.sh server get -m 244`|
388
389
| list | List all machines. No additional argument required. |`act.sh server list `|
389
-
| query | Query a machineagent by hostname provide a machine name (-m) as parameter |`act.sh server query -m Myserver or if you want to query your own name -m NEUMANNS-M-55CU on Linux`|
390
+
| query | Query a machineagent by hostname provide a machine name (-m) as parameter |`act.sh server query -m Myserver or if you want to query your own name -m mhu-ThinkPad-P52 on Linux`|
0 commit comments