Appendix B - Scripting
RF300E/RF310E
117
Example Script:
proc main;
string login_prompt;
string user_name;
string password_prompt;
string password;
string shell_menu;
string shell_menu_response;
integer timeout;
timeout=10;
login_prompt=”login:”;
user_name=”user1”;
password_prompt=”Password:”;
password=”user1”;
shell_menu=”choice:”;
shell_menu_response=”1”;
transmit(“A”);
wait(1)
transmit(“T^M”);
waitfor (“OK”,10);
transmit (“A”);
wait (1);
transmit (“T”);
wait (1);
transmit (“DT963^M”);
if (waitfor (login_prompt,60)) then
transmit (user_name);
transmit (“^M”);
if (waitfor (password_prompt,timeout)) then
transmit (password);
transmit (“^M”);
if (waitfor (shell_menu,timeout)) then
transmit (shell_menu_response);
transmit (“^M”);
else
transmit (“Shell Menu Not Received^M”);
endif
else
transmit (“Password Prompt Not Received^M”);
endif
else
transmit (“Login Prompt Not Received^M”);
endif
Endproc
Summary of Contents for RASFinder RF300E
Page 5: ...Remote Access Device Chapter 1 Introduction and Description ...
Page 11: ...Remote Access Device Chapter 2 Installation ...
Page 14: ...RASFinder RF300E RF310E User Guide RF300E RF310E 14 ...
Page 15: ...Remote Access Device Chapter 3 Software Loading and Configuration ...
Page 35: ...Remote Access Device Chapter 4 RASFinder Software ...
Page 72: ...RASFinder RF300E RF310E User Guide RF300E RF310E 72 ...
Page 73: ...Remote Access Device Chapter 5 Client Setup ...
Page 90: ...RASFinder RF300E RF310E User Guide RF300E RF310E 90 ...
Page 91: ...Remote Access Device Chapter 6 RAS Dial Out Redirector ...
Page 99: ...Remote Access Device Chapter 7 Remote Configuration and Management ...
Page 108: ...RASFinder RF300E RF310E User Guide RF300E RF310E 108 ...
Page 109: ...Remote Access Device Chapter 8 Service Warranty and Tech Support ...
Page 113: ...Remote Access Device Appendixes ...