Collect information from switches

Hi All ,

In my environment we have 12 SAN switches .Culd u pls help me for below queries .

[1] would like to telnet to all switches and collect information in daily basis with "switchstatus" command and store the output under /tmp/ folder on systemA .

[2]To keep passwords of 12switches in a text file on unix host ,is there any best way to maintain in non-readable format just to protect the view from others .

Chinni.

[1] see if your server has expect or autoexpect. This is a interactive utility that will allow you to issue the commands to telnet to each server and collect the data.

[2] There are some password encryption utilities you can get to encrypt the passwords. Ultimately your script will have to unencrypt them to use them to login to the remove systems, which negates having them encrypted, because you have just provided all the information needed to decrypt them. If the switches support SSH setup encryption keys so your script will not have to provide a password.