0.0.2-53 • Published 8 years ago

valacar v0.0.2-53

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

valacar

A tool for importing and viewing DHCP leases.

Installation

$ [sudo] npm install valacar -g

Usage

See the help for more information ...

$ valacar --help

Installation

To create a local database or upgrade an existing local database to the latest installed version (will create the file but the folder must exist) ...

$ valacar install ./data/valacar.db

By default log information is stored in ./valacar.log. This can be changed using the --logPath option ...

$ valacar install ./data/valacar.db --logPath ./data/valacar.log

Import

Import DHCP leases inlo a local database ...

$ valacar import /var/lib/dhcp/dhcpd.leases ./data/valacar.db --logPath ./data/valacar.log

This can be scheduled via cron using an entry like the following in crontab ...

0,15,30,45 * * * * /usr/bin/valacar import /var/lib/dhcp/dhcpd.leases /home/USER/data/valacar.db --logPath /home/USER/data/valacar.log

This will import the DHCP leases file every 15 minutes into a local database. Duplicate entries will be overwritten.

Server

To view imported DHCP leases in a web app, start the server using ...

valacar-server start ./data/valacar.db --port 8080 --masterLogPath ./data/valacar.master.log --workerLogPath ./data/valacar.worker.log --masterPIDPath ./data/valacar.master.pid --numberOfWorkers 1

This will make the web app available at http://127.0.0.1:8080. See the server help for more information ...

$ valacar-server --help
0.0.2-53

8 years ago

0.0.2-52

8 years ago

0.0.2-51

8 years ago

0.0.2-50

8 years ago

0.0.2-49

8 years ago

0.0.2-48

8 years ago

0.0.2-46

8 years ago

0.0.2-45

8 years ago

0.0.2-43

8 years ago

0.0.2-41

8 years ago

0.0.2-40

8 years ago

0.0.2-39

8 years ago

0.0.2-38

8 years ago

0.0.2-37

8 years ago

0.0.2-36

8 years ago

0.0.2-34

8 years ago

0.0.2-30

8 years ago

0.0.2-29

8 years ago

0.0.2-28

8 years ago

0.0.2-27

8 years ago

0.0.2-26

8 years ago

0.0.2-14

8 years ago

0.0.2-13

8 years ago

0.0.2-12

8 years ago

0.0.2-10

8 years ago

0.0.2-9

8 years ago

0.0.2-4

8 years ago

0.0.0-0

8 years ago