getpmondaemon_status
October 31, 2022 ยท View on GitHub
Overview
Get daemon status in pmon docker using supervisorctl status command.
Examples
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
pmon_status = duthost.get_pmon_daemon_status("pmon_daemon")
Arguments
daemon_name- name of pmon daemon- Required:
True - Type:
String
- Required:
Expected Output
Returns tuple with the following information:
- The daemon status (
RUNNING,STOPPED,EXITED) - The daemon pid