You can add nodes to monitor to the atlas from any simple text file that consists of DNS names, IP addresses or both.
Usually, a typical TCP/IP Hosts file is utilized, which contains the mappings of IP addresses to host names. Any other file can serve this purpose as long as it is in similar format. Each line in such a text file consists of information about a single node (DNS name, IP address or both, separated by at least a single space).
Lines starting with a hash mark (#) are always considered user's comments and therefore are not read by NetCrunch.
To insert node from file:
- From the Atlas Maps window select the place where the new nodes listed in file are to be added (Index of Nodes or any map from Custom Views section that is not based on filtering rules).
- From the File menu point to the
Import->Nodes From File.The standard Open window opens. - Specify the path and name of the file containing nodes to add to monitor.
- Click
Open. A dialog displays information that the nodes were added to be monitored by NetCrunch.
Importing nodes from .csv file
NetCrunch allows importing nodes from a csv file. The csv file can contain a list of nodes or subnetworks with the IP addresses range. If the csv file contains a list of nodes, then the Name, IP Address, Network Mask, Info 1 and Info 2 field can be imported.
As for subnetworks, list of IP ranges with the start and end addresses can be imported. The import process is performed automatically if NetCrunch identifies all fields. Otherwise, the Import Nodes from CSV File window is automatically opened, where you need to assign the columns in the csv file to the appropriate fields.
When the imported csv file contains a list of subnetworks you must decide which column contains the start and which contains the end address of the subnetworks.
The Import Nodes from CSV File window contains the elements described in the following table:
- File Content
- Allows selecting the appropriate contents of the specified csv file, which can contain a list of node or subnetworks.
- File Preview
- Allows previewing the contents of the selected csv file. In the Preview window, you can select the Skip First Row check box to exclude the first row from the import process.
- Column Mapping
- This section allows assigning the selected csv file columns (on the left) to the appropriate fields (on the right). At least one column needs to be assigned for importing. In each field on the left, you can select the appropriate column from the csv file by clicking the Down Arrow icon. Then the list of columns available for importing in the csv file is displayed.
- Skip First Row
- The selected csv file may contain a header. In such case, you can select this check box to exclude the first row from the list of columns available for importing from the csv file.
Note: If NetCrunch finds in the specified file a node which is already monitored, a dialog displays indicating this fact. Such a node will not be added again for monitoring purposes.
All nodes or subnetworks will be imported from the csv file regardless of the number of columns assigned.
You can import nodes from a file at the beginning, when creating an atlas or at any time after the atlas is created.