pisera is the CLI tool and the Agent tool of phpIPAM.
In the CLI, you can work with phpIPAM to return a list of addresses or return unused addresses.
Agent automatically registers the host's address in phpIPAM.
Also, if the server has IPMI, it registers the device based on the IPMI address.
setting phpIPAM endpoint and username and password and app_id to pisera.toml
.
default path is /etc/pisera.toml
.
$ pisera subnet-list
$ pisera device-list
$ pisera -subnet 172.17.1.0/24 free-address
$ pisera -subnet 172.17.1.0/24 address-list
$ pisera -subnet 172.17.1.0/24 usage-subnet
$ pisera -hostname nrm-db
$ pisera -agent
To install, use go get github.com/sonod/pisera
:
add test
- Fork (https://github.com/sonod/pisera/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request