Nortel Networks 3395 Network Card User Manual


 
Using the APGEN Utility
893-769-A 3-5
About Comment Lines in the Script
The pound sign # that begins some lines in a script file indicates that the following text is a comment
rather than an executable command. The command processor on the terminal server ignores these lines
when it executes the script file.
The APGEN utility creates comment lines for commands associated with disabled features and protocols
that are configurable or keyed. This reduces script execution time on the terminal server, and provides a
way for you to easily determine which commands enable configurable and keyed features in the script file.
If the TN3270 protocol is disabled, for example, all server and port TN3270 commands are comment lines.
The terminal server ignores them during script execution. See the section “Enabling Configurable and
Keyed Features,” later in this chapter, for more information about these features.
Some comment lines, beginning with #echo, provide status information during script execution. For
example, the line #echo Server Features appears in the script before the commands that manage terminal
server features. The line Server Features appears on the terminal server screen right before the script
executes these commands.
Converting the Entire Parameter File With the -all Option
This example converts an entire binary parameter file to its ASCII equivalent with the
-all option, and stores the script in the file everything.apg. When the conversion is complete, the shell
prompt appears on the screen. This example assumes that the parameter file is in the /tftpboot directory, so
only the filename is required on the command line.
% cd /tftpboot
% apgen -all param-file.prm everything.apg
%
The following example shows portions of the APGEN script file everything.apg. The dots(. . .) indicate
a break in the file. (Appendix A of this manual shows the entire script file.)
#control_script
#
# APGEN Version 1.1
#
# Parameter File Header
#
# Version : 0x6A
# Date : 25 Oct 1993
# Time : 18:59:02
# Parameter Load Type : 1
# Compressed : Yes
# Software Type : 1
# Stored Format : 7
# Oldest Format : 3
# Hardware Type : 76
# Software Version : V5.2
# Product : Term Server
#
#############################################################
.
.
.