이 페이지의 이전 버전을 보고 있습니다. 현재 버전 보기.

현재와 비교 페이지 이력 보기

버전 1 다음 »

Requirements

Ubuntu22, Docker

Install

# cd /opt
# git clone -b release https://github.com/netbox-community/netbox-docker nb --depth=1
# cd /opt/nb
# cp docker-compose.override.yml.example docker-compose.override.yml
# cat docker-compose.override.yml
services:
  netbox:
    ports:
      - "8000:8080"
...
# docker compose up -d
# docker compose exec netbox /opt/netbox/netbox/manage.py createsuperuser
Username: gdhong
Email address: gdhong@example.com
Password:
Password (again):
Superuser created successfully.

Create API Token

http://IP:8000/users/tokens/

Sample Device Import

# apt install python3-pip
# cd /opt
# git clone https://github.com/netbox-community/Device-Type-Library-Import
# cd Device-Type-Library-Import
# pip3 install -r requirements.txt
# cp .env.example .env
# vi .env
NETBOX_URL=http://__DOCKER_HOST_IP__:8000
NETBOX_TOKEN=111222333444...
REPO_URL=https://github.com/netbox-community/devicetype-library.git
REPO_BRANCH=master
IGNORE_SSL_ERRORS=False
# ./nb-dt-import.py --vendors cisco,juniper,dell


  • 레이블 없음