# How to run default tailf commands

**URL:** <https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017>\
**Category:** General\
**Created:** [February 15, 2017, 1:17pm UTC](https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017 "2017-02-15T13:17:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seenu](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@seenu](https://dmap-community.ductus.global/u/seenu)\
**Post date:** [February 15, 2017, 1:17pm UTC](https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017/1 "2017-02-15T13:17:06Z")

</div>

I want to run few default tailf commands and i have referred confd user guide document.  
but it is not clear,how to run below commands…

operational mode :

1.job stop   
2.show jobs  
3.prompt1   
4.prompt2

configurational mode :

1.load   
2.save xml

so could you please provide more examples for the above commands…

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [February 16, 2017, 8:38am UTC](https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017/2 "2017-02-16T08:38:03Z")

</div>

**prompt**

```nohighlight
prompt1 Set operational mode prompt
prompt2 Set configure mode prompt

```

e.g:

```nohighlight
prompt1 "<my_router> " 
prompt2 "<my_router-config> "

```

**load/save**

`save <filename> xml`  
`load <filename>`

**jobs**

```nohighlight
# monitor start /var/log/syslog

# show jobs
lg:Feb 16 09:34:03 micnovak-lnx confd[6550]: audit user: admin/12 CLI 'show jobs'
JOB COMMAND
2 monitor start /var/log/syslog

# job stop 1

```

See ConfD User Guide, chapter 16 for more information.

---

<div class="post-metadata">

**Author:** ![seenu](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@seenu](https://dmap-community.ductus.global/u/seenu)\
**Post date:** [February 17, 2017, 6:12am UTC](https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017/3 "2017-02-17T06:12:56Z")

</div>

Thank you mnovak!!!

but prompt1 not working properly for me and tried below things in my system…

seenu# prompt1 “\u@\s”  
seenu# conf  
Enter configuration commands, one per line. End with CNTL/Z.  
seenu(config)# exit  
seenu# prompt2 “\u@\s”  
seenu# conf  
Enter configuration commands, one per line. End with CNTL/Z.  
secadmin@10.220.22.101eixt  
----------------------^  
syntax error: unknown command  
secadmin@10.220.22.101exit  
seenu# prompt1 “HI”  
seenu# conf  
Enter configuration commands, one per line. End with CNTL/Z.  
secadmin@10.220.22.101exit  
seenu#  
seenu#  
seenu#

I have hidden few operational commands(autowizard,complete-on-space,devtools,output-file,paginate,send,terminal,write) by using clispec file.

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [February 27, 2017, 9:31am UTC](https://dmap-community.ductus.global/t/how-to-run-default-tailf-commands/1017/4 "2017-02-27T09:31:58Z")

</div>

Not sure if it is done by your modification, I have tried the steps above and it works OK

```bash
# prompt1 "\u@\s "
admin@127.0.0.1 prompt2 "\u@\s "
admin@127.0.0.1 config 
Entering configuration mode terminal
admin@127.0.0.1 exit
admin@127.0.0.1 
admin@127.0.0.1 prompt1 "HI "
HI config 
Entering configuration mode terminal
admin@127.0.0.1 exit
HI 

```

I have added space after prompt text to easily read, but even without that is looks OK. Can it be by your modification?

Can you try it just with plain ConfD without your modifications?  
Start like this (use `confd.conf` from one of examples coming with ConfD):

```bash
${CONFD_DIR}/bin/confd -c confd.conf --addloadpath ${CONFD_DIR}/etc/confd
${CONFD_DIR}/bin/confd_cli -C --user=admin --groups=admin --interactive

```
