List hostgroup function.