Example 1 using telnet method to login cisco server or router:
File name: telnet_cisco.ttl
File name: cisco.battimeout = 10connect '192.168.1.252:23 /nossh /T=1';Wait a prompt message to loginwait 'Username:'; Send usernamesendln 'cisco';Wait for a keyword to enter passwordwait 'Password:'; Send passwordsendln 'cisco'
How to used it:@echo offcd C:\Program Files (x86)\teratermTTERMPRO /m=D:\Macro_script\telnet_cisco.ttlpause
Just run the cisco.bat, it will automatic telnet for you.
Example 2: using serial comport to login your console
File name: comport.ttl
pause 5;sendin commandsendln "pacm "pause 2;closett will close the screenclosett
File name: comport.bat
How to used it:@echo offcd C:\Program Files (x86)\teratermTTERMPRO /C=3 /BAUD=115200 /c=3 /m=D:\comport.ttlpause
Just run the comport.bat, it will automatic accees using terateam to open com-port3 to your DUT console. If you have different com-port just changed the c=3 to correct com-port. My console port is 3, so I set to 3.
No comments:
Post a Comment