Please advise on ssh to many hosts; su - and then commands

Hi,
I would like to do ssh to many hosts and then would like to do 'su -' with respective host's passwords and execute certain commands.

This being a secure and big network , we have to login every server individually and then su with different passwords.

So is there a way to achive it?

Thanks a lot in adance

In my mind you can use rsh for your purpuse. To know more about it have a look into the "man rsh"

rsh is not secure, doing this via script means storing the password of the respective server in file, plus using "expect / TCL" to achieve this, we had few similar threads here. Depending on what flavor of UNIX is being used, you may search for special software for managing large number of servers, or, setup passwordless authentication via ssh keys.