How to get Confd Services State information?

May I know how can I get the service state of a daemon process in QEMU?
Also how can we stop and start a daemon explicitly?

See $CONFD_DIR /man/man1/confd.1 and ConfD UG Chapter “General Troubleshooting Strategies”

E.g.

$ confd --stop
$ confd --status
...

etc.

Thanks.

My Intention is to ask for something like if I had to see the current status of a daemon say “ftpd” running within confd then how it could be done.

-Priyadarshini M

Are you looking for state information? Take the $CONFD_DIR/examples.confd/intro/1-2-3-start-query-model for example.

$ confd_cli -u admin
...
# show confd-state internal cdb client 
NAME          INFO    TYPE        DATASTORE  LOCK  DATASTORE  TWOPHASE  PRIORITY  ID  PATH   ERROR  
----------------------------------------------------------------------------------------------------
./dhcpd_conf  8619/3  subscriber  -          -     running    -         3         6   /dhcp  -      

Figuring out what is going on

Check log files

  • confd.log
  • devel.log
  • audit.log
  • netconf.log
  • netconf.trace
  • LOG4J (Java)

confd --status
Verbose flag: confd --foreground –v
Check data providers
confd --check-callbacks