Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 842 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 842 Bytes

netbox-ip-status

指定したネットワーク内のすべてのアドレスにPINGを送信し、応答があれば記録する ツール

How to use

Dockerコンテナを使う方法

$ docker pull ghcr.io/yamada-factory/netbox-ip-status:latest
$ docker run -e NETBOX_API_KEY="mofumofu" -e NETBOX_URL="http://netbox.example.com" -e NETBOX_PREFIX_TAG="homelab-1" ghcr.io/yamada-factory/netbox-ip-status:latest

compose.yml

.env.sample を .env にコピーして編集

services:
  netbox-ip-status:
    image: ghcr.io/yamada-factory/netbox-ip-status:latest
    env_file:
      - .env

プログラムをそのまま実行する方法

$ git clone [email protected]/Yamada-Factory/netbox-ip-status.git && cd netbox-ip-status
$ cp .env.sample .env # edit .env
$ python netbox-ip-status.py