Command List Edit

Use the Command List Edit dialog box to create a login, a logout, or a move cursor command list to be saved in the .model file. To view a detailed example of a login and logout command list, see the Pine model example.

Tips:

To create a login command list:

  1. On the Connection menu, select Session Setup to open the Session Setup dialog box.
  2. In the Session box, select the terminal type from the Type box.
  3. Type the host name or IP address in the Host name or IP address box and click Connect.
  4. On the Model menu, point to Record and click Start Recording.
  5. Type your username and password and advance to the next screen.
  6. On the Model menu, point to Record and click Stop Recording.
  7. On the Stop Recording dialog box, select Save as login command list and click Save to open the Command List Edit dialog box.
  8. View and edit the commands associated with the login command list that you've just created in the Commands box and click OK to save it.
  9. To view and edit the login command list, use the buttons next to the Login (after host connect) box in the Model Properties dialog box.
  10. To execute your login command list, disconnect and then reconnect to the host, and click the Execute login command list button on the standard toolbar. Alternatively, you can open the Model Properties dialog box and click the Execute button.
To create a logout command list:
  1. Move to the home entity of the model.
  2. When you're ready to logout of the host, click Start Recording.
  3. Type the command used to logout of the host on the terminal screen.
  4. On the Stop Recording dialog box, select Save as logout command list and click Save to open the Command List Edit dialog box. Note: By default, the Stop Recording dialog box will open if you are disconnecting from a host while recording.
  5. View and edit the commands associated with the logout command list that you've just created in the Commands box and click OK to save it.
    Tip:
    Delete the .MoveCursor command.
  6. To view or edit the logout command list, use the buttons next to the Logout (before host disconnect) box in the Model Properties dialog box.
    Note:
    Make sure to save your model before exiting.
  7. To execute your logout command list, disconnect and then reconnect to the host, and click the Execute logout command list button on the standard toolbar. Alternatively, you can open the Model Properties dialog box and click the Execute button.

Notes:

"Execution of the logout command list will always start at the home entity. Since recording started at a different entity, we will add a 'Navigate to <name> entity' command to the start of your command list. At run-time, this may cause unnecessary host navigation. Do you want to continue?"

To create a move forward or move backward command list:

  1. Click the right arrow button and select a terminal key to use to move the cursor forward.
    Tip:
    Select Tab from the Key list and then configure your tab position settings using the Cursor tab on the Entity window.
  2. Click OK to save your move forward command list and return to the Advanced Model Properties dialog box.

    Note: Follow the same directions to create a move backward command list.