new function that uses show slave hosts to get slave list