Cisco Headend Digital Broadband Delivery System User Guide
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
Prepare the Text File
4020694 Rev B
79
Prepare the Text File
System operators who want to use the convertIP utility to convert many IP
addresses should prepare a text file beforehand. System operators can then run the
convertIP utility with the name of the text file as an argument. This section contains
guidelines and instructions for preparing the text file.
addresses should prepare a text file beforehand. System operators can then run the
convertIP utility with the name of the text file as an argument. This section contains
guidelines and instructions for preparing the text file.
Guidelines for Preparing the Text File
Use the following guidelines when preparing the text file:
Prepare the file using a standard text editor, such as vi.
Prepare the file with one IP address per line.
Use either format (decimal or dotted-decimal notation) when preparing the text
file. The convertIP utility automatically recognizes the input format and converts
the IP address to the other format.
Note: You can even mix formats in the text file.
file. The convertIP utility automatically recognizes the input format and converts
the IP address to the other format.
Note: You can even mix formats in the text file.
Our engineers recommend that you save the file in the /dvs/dncs/tmp directory
of the DNCS.
of the DNCS.
Preparing the Text File
Follow these instructions to prepare the text file for use with the convertIP utility.
Important: These instructions use the vi text editor as an example. The vi text editor
is not intuitive. These instructions are not a substitute for a good working
knowledge of the vi text editor.
1 If necessary, open an xterm window on the DNCS.
2 Type cd /dvs/dncs/tmp and then press Enter.
is not intuitive. These instructions are not a substitute for a good working
knowledge of the vi text editor.
1 If necessary, open an xterm window on the DNCS.
2 Type cd /dvs/dncs/tmp and then press Enter.
Note: Our engineers recommend that you save the file in the /dvs/dncs/tmp
directory of the DNCS.
directory of the DNCS.
3 Type vi [file name].txt and then press Enter. The file opens for editing.
Note: Substitute the name of the input file you are creating for [file name].
Example: Type vi IP_input_file and then press Enter.
Example: Type vi IP_input_file and then press Enter.
4 Insert your list of IP addresses into the file you have just opened.
Note: Use the guidelines set forth in Guidelines for Preparing the Text File (on
page 79).
page 79).
5 Save the file and close the vi editor.