Get daemon status in pmon docker using supervisorctl status
command.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
pmon_status = duthost.get_pmon_daemon_status("pmon_daemon")
daemon_name
- name of pmon daemon- Required:
True
- Type:
String
- Required:
Returns tuple with the following information:
- The daemon status (
RUNNING
,STOPPED
,EXITED
) - The daemon pid