reporttool
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
reporttool [2007/09/27 19:17] – faltin | reporttool [2011/04/03 17:26] – [IP address scope - graphical view] faltin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== The report tool ====== | ====== The report tool ====== | ||
- | {{tools: | + | {{tools: |
Each NAV report is in essence an SQL query to the database. It shown its data in a number of columns. The | Each NAV report is in essence an SQL query to the database. It shown its data in a number of columns. The | ||
data is in many cases also hyperlinks to other reports or other tools in NAV. The whole report system | data is in many cases also hyperlinks to other reports or other tools in NAV. The whole report system | ||
is highly configurable, | is highly configurable, | ||
- | the configuration is provides | + | the configuration is provided [[# |
===== Reports ===== | ===== Reports ===== | ||
Line 12: | Line 12: | ||
An example report showing all your network equipment sorted by type: | An example report showing all your network equipment sorted by type: | ||
- | {{screenshot: | + | {{screenshot: |
From this report you can drill down on a particularly type and see the number of devices you have of this | From this report you can drill down on a particularly type and see the number of devices you have of this | ||
Line 24: | Line 24: | ||
* The search bars on top are shortcuts to interesting reports. The room searc lets you go directly to a room of interest. You may also search for a particular port name, or you may dive directly into the IP device center of a device in interest. | * The search bars on top are shortcuts to interesting reports. The room searc lets you go directly to a room of interest. You may also search for a particular port name, or you may dive directly into the IP device center of a device in interest. | ||
- | ===== IP Device Center ===== | ||
- | The IP device center is a dashboard for a given device showing relevant information. It presents | + | ===== IP address scope - graphical |
- | recent events for the device, if any. If the device is a switch or router a switch port and/or | + | |
- | router interface | + | |
- | {{screenshot: | + | For large networks the task of maintaining the total IP address scope may be a challenge in itself. It is useful to have an overview of all the subnets in operation, and what is more, how full they are, i.e. how many machines they contain. NAV introduces a tabular view that gives an excellent overview on a single page: |
- | ===== IP address scope - graphical view ===== | + | {{ screenshot: |
- | For large networks the task of maintaining the total IP address | + | A prerequisite for this tool to work is that you have seeded your database with one or more scope prefixes. The scope prefixes defines your total address |
- | {{screenshot: | + | You may also use the reserved prefix option in Seed Database. A reserved |
+ | A brief explanation of the functionality in the prefix matrix: | ||
+ | |||
+ | * Layout | ||
+ | * For IPv4 each row is a /24 scope and the columns counts from 0-255 | ||
+ | * For IPv6... (to be completed) | ||
+ | * A coloured area means that this prefix is in use or allocated | ||
+ | * reserved prefixes are brown | ||
+ | * in cases where there are many small subnets (meaning too small to display in a good manner), the row is blue | ||
+ | * prefixes in use follow a colour scheme based on their utilization rate: | ||
+ | * a very heavily used prefix will be red | ||
+ | * a lightly used prefix will have a light colour | ||
+ | * The displayed percentage is the actual percentage of the IP addresses in the prefix that are in use. If you click on this link you will be directed to the machine tracker that can display the actual IP addresses (and mac addresses) that are in use. | ||
+ | * If you click on the row titles on the left you will be directed to a report displaying all prefixes in that area | ||
+ | * If you click on an actual allocated prefix you will e directed to a report displaying details regarding this prefixes | ||
+ | * If you uncheck the "Show unused address rows" you will get a collapsed view removing rows where there are no allocations. | ||
===== Service matrix ===== | ===== Service matrix ===== | ||
This tool is quite simple and only useful if you use the NAV service monitor to an extent. It displays | This tool is quite simple and only useful if you use the NAV service monitor to an extent. It displays | ||
all servers and services in a matrix showing operational status. | all servers and services in a matrix showing operational status. | ||
+ | |||
+ | |||
====== Configuration ====== | ====== Configuration ====== | ||
- | As mentioned the report system is higly configurable, | + | As mentioned the report system is highly |
- | In NAV 3.4 we will strengthen | + | |
- | see [[devel:tasklist#smj3improve_the_report_tool|Task SMJ3]]. | + | |
+ | |||
+ | |||
+ | ==== Report configuration ==== | ||
+ | |||
+ | The NAV reports are made based on the '' | ||
+ | with new reports | ||
+ | limitations). It is easy to make hyper links from data in the report to other reports | ||
+ | |||
+ | An example report is given, this is the router port report: | ||
+ | |||
+ | < | ||
+ | gwport { | ||
+ | $description = " | ||
+ | $sql= " | ||
+ | | ||
+ | gwport.link, | ||
+ | gwportid, gwport.portname, | ||
+ | FROM netbox | ||
+ | JOIN module ON (netbox.netboxid=module.netboxid) | ||
+ | JOIN gwport ON (module.moduleid=gwport.moduleid) | ||
+ | LEFT JOIN (SELECT gwportid, COUNT(gwportid) AS prefixcount | ||
+ | FROM gwportprefix | ||
+ | GROUP BY gwportid) tempaggr1 USING (gwportid) | ||
+ | LEFT JOIN netbox AS n2 ON (gwport.to_netboxid=n2.netboxid) | ||
+ | LEFT JOIN swport ON (gwport.to_swportid=swport.swportid) | ||
+ | "; | ||
+ | $title = " | ||
+ | $hide = " | ||
+ | $name_sysname=" | ||
+ | $name_interface=" | ||
+ | $name_gwip=" | ||
+ | $name_speed=" | ||
+ | $name_portname=" | ||
+ | $name_prefixcount=" | ||
+ | $name_otherbox=" | ||
+ | $name_remoteif=" | ||
+ | $order_by=" | ||
+ | $url_sysname=" | ||
+ | $url_module=" | ||
+ | $url_prefixcount=" | ||
+ | $url_otherbox=" | ||
+ | $url_remoteif=" | ||
+ | $explain_gwp=" | ||
+ | $sum=" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The syntax of the report configuration is: | ||
+ | |||
+ | Each report is enclosed within brackets: | ||
+ | |||
+ | < | ||
+ | r1{ | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | This report is seen as '' | ||
+ | |||
+ | Further explanation of the report configuration syntax: | ||
- | Anyway FIXME more on report.conf | + | ^Command |
+ | | $description=" | ||
+ | | $sql=" | ||
+ | | $title=" | ||
+ | | $name_MYCOL | ||
+ | | $explain_MYCOL | ||
+ | | $order_by | ||
+ | | $url_MYCOL | ||
+ | | $hide | Columns that must be included in the $sql because they are used in $url. $hide will not show the column in the report. | ||
+ | | $extra | ||
+ | | $sum | Show the sum total of a given column (which must contain numeric values) | | ||
reporttool.txt · Last modified: by faltin