-
Notifications
You must be signed in to change notification settings - Fork 3
Scripts
Enrico Liguori edited this page Dec 2, 2013
·
8 revisions
The script that pull informations from you network infrastructure via Simple Network Management Protocol (SNMP). Usually runs every 10/20 minutes. According with the configuration of the devices he sends snmp query to gather info about:
- Asset management: devices model, serial, firmware, ecc ecc;
- Mac Address Tables: device's MAT infos are fundamental to know all the objects connected to the net;
- ARP Table: ARP associations collected on level 3 devices;
- CDP Neighbors;
- Device interfaces infos: speed, status, VLAN ecc of every device interfaces;
- VTP : Cisco VTP infos
The other key piece on which the whole project relies. Usually this script acts like a daemon sniffing ARP request in order to establish MAC-IP addresses correspondences.
This script translate for you the schema described by the Dbix::Class classes printing in STDOUT the corresponding sql statements. Options:
- _--backend <MySQL|SQLite|...> the preferred database backend (mandatory option)
- _--add-drop-table Add "drop table x" before any "Create table x" statement
Used to dump/restore data from/to the back-end. There are two main options that control the behaviour of the script:
- --save [tarname.tar.gz] Dump the database content to a number of files, usually one per table, in YAML format (a data serialization format).
- --load <tarname>.tar.gz
Initialize the database with defaults values for:
- username (admin) and password (admin) for admin user
- Default VLAN (VLAN 1)
- Default IPv4 subnet (that ranges from 0.0.0.0 to 255.255.255.255)