# Execution of full hidden action commands via confd\_cmd/maapi

**URL:** <https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131>\
**Category:** YANG\
**Created:** [June 25, 2020, 1:58am UTC](https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131 "2020-06-25T01:58:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourasen](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sourasen](https://dmap-community.ductus.global/u/sourasen)\
**Post date:** [June 25, 2020, 1:58am UTC](https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131/1 "2020-06-25T01:58:47Z")

</div>

I am looking to execute an Action-Command which is hidden from CLI/Northbound Interfaces via confd\_cmd binary as below and not sure of the syntax or if it’s a possibility to execute this via confd\_cmd?

container A{  
tailf:hidden full;  
tailf:action B {  
tailf:actionpoint B1;  
input {  
leaf val {  
mandatory true;  
type int8;  
}  
}  
}  
}

Also another possible way would be to execute it via maapi --clicmd --no-hidden “A B val 2” but running into incomplete path errors for this.

Any suggestions are appreciated

---

<div class="post-metadata">

**Author:** ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)\
**Post date:** [June 25, 2020, 2:05pm UTC](https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131/2 "2020-06-25T14:05:27Z")

</div>

`confd_cmd` has a command `maction`, but it supports only actions without parameters. My go-to CLI utility in such cases is `curl` to send a RESTCONF request, in your case it could be like this:

```auto
$ curl -s -u admin:admin 'http://localhost:8008/restconf/operations/A/B' \
 -X POST -H "Content-type: application/yang-data+json" \
 --data '{"input":{"val":42}}'

```

It obviously assumes that you have RESTCONF enabled and 8008 is your webui port; also, you may need to change username/password or provide the correct token, depending on your setup.

---

<div class="post-metadata">

**Author:** ![sourasen](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@sourasen](https://dmap-community.ductus.global/u/sourasen)\
**Post date:** [July 23, 2020, 5:40pm UTC](https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131/3 "2020-07-23T17:40:35Z")

</div>

Can you give an example of confd\_cmd usage with maction? Couldn’t find any references  
confd\_cmd/confd\_cli look to be the only options I have for now.

---

<div class="post-metadata">

**Author:** ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)\
**Post date:** [July 24, 2020, 9:16am UTC](https://dmap-community.ductus.global/t/execution-of-full-hidden-action-commands-via-confd-cmd-maapi/3131/4 "2020-07-24T09:16:41Z")

</div>

Using the ConfD example intro/7-action, the following invokes the action reboot:

```auto
$ confd_cmd -c 'maction /config/system/reboot'
$

```

Again, it works only for actions without (mandatory) parameters; the other two actions in the example cannot be invoked using `confd_cmd`.
