Hello, i see that it have passed few years since this post was created, but it seems i have a similar problem.
I am trying to run a repository(managed in SC) script through mgmt_api to one of my target gateways. The contents of the script is simply "clish -c 'show configuration'". While i run it from SC - all is great, i see the expected "sho config" output. But from mgmt_api this same request:
```
mgmt_cli run-script script-name "Show Configuration" script-type "repository" targets "gateway_object_name"
```
returns a b64 messageResponse, that when decoded shows something like:
```
APP PID STAT #START START_TIME MON COMMAND
FWK_FORKER 10547 E 1 [15:40:26] 12/10/2023 N fwk_forker
FWK_WD 10556 E 1 [15:40:27] 12/10/2023 N fwk_wd -i 6 -i6 0
CPVIEWD 10702 E 1 [15:40:45] 12/10/2023 N cpviewd
CPVIEWS 10707 E 1 [15:40:45] 12/10/2023 N cpview_services
SXL_STATD 10710 E 1 [15:40:45] 12/10/2023 N sxl_statd
...
...
```
Also this is shown in brief in description of task-details:
```
statusDescription: "APP PID STAT #START START_TIME MON COMMAND , FWK_FORKER 10547 E 1 [15:40:26] 12/10/2023 N fwk_forker , FWK_WD 10556 E 1 [15:40:27] 12/10/2023 N fwk_wd -i 6 -i6 0 , CPVIEWD 10702..."
```
It seems like my request is not even trying to get to specified gateway (changing from name to uid gives nothing)
Can you please point me to what I am doing wrong and how I can get a normal b64 response with "show config" output encoded there?
BTW The goal i try to reach is to get config(and not only) of each gate through web_api of SMS. Mgmt_api is just for low level tshoot, because trouble is the same.
Thank you!