How to run default tailf commands

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…

prompt

prompt1   Set operational mode prompt
prompt2   Set configure mode prompt

e.g:

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

load/save

save <filename> xml
load <filename>

jobs

# 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.

1 Like

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.

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

# 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):

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