<< Previous Contents Index Next >>

Appendix C. Ancillary programs

The following section describes additional programs supplied with ipacc.

C.1. ipacc-password

The ipacc-password program generates passwords in Cisco "type 7" encoding. To run, simply run the program and enter the password to be encoded, and again for confirmation. The encoded password is written to standard output, e.g.

The password can then be used in router password or router enable statements in an ipacc configuration file, or for passwords in a Cisco or Quagga router configuration. For example:

Alternatively, if given a filename, ipacc-password will output one encoded password for each input line of the file. A parameter of a single hyphen causes the program to read from standard input.

C.2. ipacc-agedynamic

The ipacc-agedynamic program can be used to age the dynamic IP address file. The command takes the form:

The operation of the program is as follows. The file filename is renamed to filename.1, filename.2 and so-on up to count -1. The file filename.count and the penultimate file are merged together, and written back to filename.count, so that the most recent session in either file are preserved for each IP address that appears in either file. The original filename is re-created as an empty file.

If count is omitted, the files filename and filename.1 are merged into filename.1, and filename re-created as an empty file.


<< Previous Contents Index Next >>