Nortel Networks 3395 Network Card User Manual


 
Using the APGEN Utility
3-10 893-769-A
Converting a Portion of a Parameter File
You can create a script file that contains only those commands that define a particular feature or group of
features. These scripts are smaller and more efficient to use if you want to update the status of one
particular feature on a terminal server, rather than the entire parameter file. To create these scripts, use the
appropriate option on the apgen command line. (Chapter 4 also describes how to create scripts from files
created with the UNIX grep utility.)
The following apgen command, with the -session option, creates a script file that includes only the
commands that manage port session characteristics.
%apgen -session xff4b15.prm session.apg
%
The script file session.apg includes the following commands after the parameter file header:
#echo Port Session Information
#
DEFINE PORT 0 BACKWARD SWITCH NONE
DEFINE PORT ALL BACKWARD SWITCH NONE
DEFINE PORT 0 FORWARD SWITCH NONE
DEFINE PORT ALL FORWARD SWITCH NONE
DEFINE PORT 0 LOCAL SWITCH ~
DEFINE PORT ALL LOCAL SWITCH NONE
DEFINE PORT 0 DEFAULT SESSION MODE INTERACTIVE
DEFINE PORT ALL DEFAULT SESSION MODE INTERACTIVE
DEFINE PORT 0 SESSION LIMIT 4
DEFINE PORT ALL SESSION LIMIT 4