This is an old revision of the document!
After NAV is installed and started (with ´nav start´) NAV does absolutely nothing
Put differently, NAV does not autodiscover your network, you have to seed the database with key information using the Seed Database tool. This document explains the requirements that need to be followed in order to get NAV going.
We explain three levels of seeding data into NAV:
You may start on level 1 or 2, stay there forever, or later extend to level 3, as you are getting more familiar with NAV.
In all cases you may seed data in two different ways:
The latter allows you to gather all your data in colon separated text files and easily import all these seed data into NAV. You may have other sources of this seed data and can consider extracting the data from these sources and automatically build your seed text files.
Please note that after you have bulk imported a given entity and later would like to change some of the entity attributes, this must be done with the edit form (we do not support bulk sync, only initial import).
When you seed network equipment into NAV you need to specify the organization that is operationally responsible for the equipment, and further the room the equipment is placed in. A room needs further to belong to a location. To make things simple a fresh NAV install includes the organization myorg
, the room myroom
and the location mylocation
. You may register all your equipment belonging to myorg
and placed in myroom
.
The minimum requirements are:
myroom
myorg
If you stick with these minimum requirements it will mean NAV has no information of where the equipment is located, nor what organizations are involved. Further, since you have not yet adopted the recommended NAV guidelines for configuring router interface description, you will have no information on the ownership and usage of the various subnets/vlans. It is of course possible to improve these things at a later stage when you are ready to get better organized.
You may of course use bulk import with the minimum requirements to be even more efficient. You only need to bulk the IP devices. An example follows:
#roomid:ip:orgid:catid[:ro:serial:rw:function:subcat:...] myroom:10.0.0.101:myorg:GW:public myroom:10.10.10.11:myorg:SW:public::private myroom:10.10.20.100:myorg:SRV myroom:10.10.10.12:myorg:SW:public::private myroom:10.10.10.13:myorg:SW:public::private myroom:10.10.10.14:myorg:SW:public::private
Level 2 extends the minimum requirements to:
To make things most efficient Seed Database has the ability to bulk import data from text files using a colon separated list.
In our example we have a campus network spread across three campuses around town. We have 7 rooms were the network/server equipment is placed. We have included 6 IP devices in the example.
Do to the given dependencies you should do your bulk import in the same order as in our example:
Your location bulk text file will be:
#locationid:descr campusA:campus at the east side of town campusB:campus at the west side of town campusC:campus at the north side of town
You room bulk text file will be (you may skip the description, it is not compulsory):
#roomid:locationid:[descr:opt1:opt2:opt3:opt4:position] room1:campusA:Room C302 in Math building room2:campusA:Room B103 in Science building room3:campusA:Room B403 in Science building room4:campusB:Room A225 in Social sciences building room5:campusB:Room E103 in Philosophy building room6:campusB:Room H205 in Philosophy building room7:campusC:Room B238 in Arts building
You could extend your room info with more data using opt1-4 and/or you could add a location coordinate (use NAV's Geomap to find, click and cut and paste your room positions). An example of the latter:
#roomid:locationid:[descr:opt1:opt2:opt3:opt4:position] room1:campusA:Room C302 in Math building:::::63.41609, 10.4059 room2:campusA:Room B103 in Science building:::::63.41744, 10.4053 room3:campusA:Room B403 in Science building:::::63.41836, 10.4015 room4:campusB:Room A225 in Social sciences building:::::63.40718, 10.4694 room5:campusB:Room E103 in Philosophy building:::::63.40914, 10.4699 room6:campusB:Room H205 in Philosophy building:::::63.40952, 10.4730 room7:campusC:Room B238 in Arts building:::::63.42412, 10.4346
Remember that if you later would like to add more data in a room, this must be done using the edit form (you cannot bulk import the same room twice).
In our case the IT department is the owner of all equipment and we do not bother about using NAV's recommended guidelines for router interface descriptions at this level (meaning we have no way of knowing who are the users of a given subnet). The simple bulk import will be (you may even skip the description, it is not compulsory) :
#orgid[:parent:description:opt1:opt2:opt3] IT::IT department
Now we have prepared for the juice. About time to add the equipment we want NAV to monitor.
#roomid:ip:orgid:catid[:ro:serial:rw:function:subcat:...] room1:10.0.0.101:IT:GW:public room1:10.10.10.11:IT:SW:public::private room1:10.10.20.100:IT:SRV room2:10.10.10.12:IT:SW:public::private room2:10.10.10.13:IT:SW:public::private room5:10.10.10.14:IT:SW:public::private
You will notice that servers have no SNMP community. The router has read community only and the switches also have WRITE community. The latter is because you want to use the port blocker tool Arnold and/or the PortAdmin tool for configuring switch ports.
To take full advantage of NAV's capabilities do the following:
Due to dependencies within the database, it is recommended that you register seed data in the following order:
Registering IP devices is by far the most important and most comprehensive registering process. Some comments:
After an IP device is successfully added to NAV, the collection system will collect data from the device.
Data collection will commence within 2 minutes. Information on modules, switch ports and ARP data will be available shortly after this. Bridge table data and topology information will need some more time:
As an option you can add seed data using the bulk import option. We recommend this for the initial seeding when you need to input a lot of data.
Tips on bulk importing:
See the Level 2 part of this document for examples of bulk imports.
We here comment on the other seed topics.
IP devices (typically servers) may have one or more services that you would like to monitor. Available services are shown in the service list when you add a service. Most services requires extra arguments, they may also have optional arguments. I.e. for imap you have to supply a username/password. This is necessary in order to make a fully qualified test if the service is working properly.
(more doc of the services options will come later)
All IP devices are located in a room.
A location is a geographical area containing a number of rooms. The locationid is max 30 characters.
An organization has a name of max 30 characters. It may have a parent organization, we thus support a hierarchical structure. Further it has a description and three generic fields, optional1 - 3. Like for room, the optional field can serve a local purpose, and you can adopt report.conf to reflext this. You may for instance want to register an email address or a contact person etc.
Note that organization in NAV serves three purposes:
Relevant (along with organization) if you adopt the aforementioned guidelines for configuring router interface descriptions. The usage categories are typically students, staff, administration etc. A maximum of 30 characters are allowed.
All equipment that answers to SNMP supply a system.sysObjectID, this is an identifier for type. When you add a new IP device NAV will relate this to a known type. If the type is unknown to NAV a new type record will automatically be created. You will most probably want to edit the type name and type description manually later to get better human understandable data. This will become apparent when you look at the “all ip devices report” in the report tool.
Please note that NAV 3.10 (Aug 2011) will remove the attributes cdp, tftp, cs at vlan and chassis, and thus simply the type table a lot.
Consult the type page for more information about types.
Types are of a vendor. A number of vendors are predefined in NAV, if you need to add more do it here.
You may define subcategories within the predefines categories in NAV, see CategoriesAndTypes for more. IP devices may in turn belong to one or more subcategories.
Prefixes that are in operation are autodiscovered in NAV. The collection system finds all directly connected subnets and static routes (the latter will be included i NAV 3.11) from the routers (GW / GSW). The prefixes you can register here are of the following two types:
A vlan is equivalent to a broadcast domain which in turn may consist of zero, one of more IP subnets (usually one). All vlans are autodiscovered in NAV. If the NAV guidelines for configuring router interface descriptions are followed, the collection system has an easy task filling in information on network type, organization and usage. The vlan value can also in many (most) cases be automatically derived. If the guidelines are not followed the network type will be automatically derived (correctly in most cases). If the UNINETT description guidelines are followed, the collection system will set the middle part (logical portname) as netident.
In any circumstance, if there are missing information in the vlan table, you can manually alter the information. The information you may alter are: organization, usage and vlan.
If you like, you can document your cabling system. For each room (wiring closet) register the jack numbers and the target building and room number. Also register the twisted pair category and a description if you like.
Please note that the cabling information is not used elsewhere in NAV, not even in the report system. It is not recommended to add data here.
Similarly you can register patches that are done in the wiring closets from switch port to jack. The patch may be a split, register what kind, and what leaf.
Please note that the patch information is not used elsewhere in NAV, not even in the report or machine tracker tools. It is not recommended to add data here.
We recommend that you instead document directly in your switch port descriptions on your switches. Document i.e. to which jack the given switch port is connected. Since switch port descriptions are collected by NAV, you can in turn easily search for a given jack using the report tool.
You will notice that it is not possible to edit the room, location or organization values directly when in edit mode. You may however obtain the same effect using the 'Move selected' option available from the 'List' tab!
From the IP device list you may:
The same operation can be done for: