def METHOD_NAME(self, cmd, errmsg):
    """
    Function to check if the cmd is successful or not
    """
    if process.system(cmd, timeout=3200, ignore_status=True,
                      shell=True) != 0:
        self.fail(errmsg)