Are you saying that there are common passwords for root and a generic user on over 600 of your servers? And, that you want to embed them in a script?
So, something like:
Code:
while read zf
do
rlogin $zf -l root
echo "logged into $zf as root"
rlogin $zf -l any_user
echo "logged into $zf as any_user"
done < list_servers