-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# netbox-to-ipv4-heatmap | ||
Generate iplist file from Netbox for use with ipv4-heatmap project | ||
Generate iplist file from Netbox for use with [ipv4-heatmap](https://github.com/measurement-factory/ipv4-heatmap) project will which "Generate Hilbert curve heatmaps of the IPv4 address space." | ||
|
||
|
||
# Using | ||
|
||
``` | ||
./netbox-to-ipv4-heatmap.py --help | ||
usage: netbox-to-ipv4-heatmap.py [-h] -p PREFIX | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
-p PREFIX, --prefix PREFIX | ||
Prefix to search for in Netbox. ie 10.0.0.0/8 | ||
``` | ||
|
||
# Example | ||
Create 'iplist' file from netbox: | ||
``` | ||
./netbox-to-ipv4-heatmap.py -p 192.168.0.0/16 >/tmp/192.168.0.0-16.txt | ||
``` | ||
|
||
Generate image using `ipv4-heatmap` and the iplist file: | ||
``` | ||
./ipv4-heatmap -A 128 -B 8192 -y 192.168.0.0/16 -z 0 -o 192.168.png < /tmp/192.168.0.0-16.txt | ||
``` | ||
|
||
Consider tweaking `-A` and `-B` values. | ||
|
||
Example output from four different /16's: | ||
|
||
 | ||
 | ||
 | ||
 |