def run_check(self):
    for line in self.commandOut:
        fields = line.split('|')
        ispname = fields[1]
        ispstatus = fields[2]
        isprole = fields[3]
        if (ispname != 'Name'):
            ipstatus = 'WARN'
            if (ispstatus == 'OK'):
                state = 'PASS'
            self.add_result((((self.title + ' (Name: ') + ispname) + ')'), state, ('Role: ' + isprole))
        else:
            self.add_result(self.title, 'PASS', 'disabled')
def run_check(self):
    for line in self.commandOut:
        fields = line.split('|')
        ispname = fields[1]
        ispstatus = fields[2]
        isprole = fields[3]
        if (ispname != 'Name'):
            ipstatus = 'WARN'
            if (ispstatus == 'OK'):
                state = 'PASS'
            self.add_result((((self.title + ' (Name: ') + ispname) + ')'), state, ('Role: ' + isprole))
        else:
            self.add_result(self.title, 'PASS', 'disabled')