How do I telnet to a Cisco router and then connect to the console of each device through a serial line and run commands ?. 

FYI, I have configured serial async ports on my router. My objective is to connect to each serial line and configure the ip address and then run some commands. How do I do that ? Any idea ?.

Thanks
Arun