Nortel Networks 3395 Network Card User Manual


 
Chapter 4
Using UNIX Utilities with APGEN Script
Files
893-769-A 4 -1
Several UNIX utilities allow you to search through, edit, and compare APGEN script files. These tools are
particularly useful when you need to manage large scripts with many commands created with the -all or -
verbose options. This chapter describes some of the basic uses for these tools with APGEN scripts,
including the following information:
Using the diff utility to compare two APGEN files
Using the grep utility to search through an APGEN file
For more information about UNIX tools, refer to the UNIX documentation for your system.
Using the diff Utility to Compare Two APGEN Script Files
The diff utility compares two files and lists their differences in the output file you specify. You can
compare the differences between the old and new versions of a parameter file from the same terminal server.
Or, you can compare the differences between the parameter files of two different terminal servers. Some
common uses for these comparisons include the following:
To determine the reason that performance is better on one terminal server compared to another, or to
learn why the performance on the same terminal server has changed over time
To determine why a particular feature works on one terminal server but does not work on another
To create files which log changes in a parameter file over time
See the man pages on your UNIX system for complete information about the diff command.
Creating a File With the diff Utility
The following example compares an old parameter file with a new parameter file. Use the same process to
compare any two APGEN files.
Create an APGEN file from the current parameter file, param.prm:
%apgen -all /tftpboot/param.prm param.now
%
Create an APGEN file from the backup parameter file, param.bck:
%apgen -all /tftpboot/param.bck param.old
%