You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Network Inventory can document the physical cable installation of a campus. It can be done manually, or via an api.

There are one import script from json to ni on git@cnaas-git.cnaas.sunet.se:random

it require a config.py file  with ni credentials

user='kaka'
key='kaka'
url='https://ni-dev.cnaas.io'

Input json file is a list of outlets

# JSON in file
{ ports: [
{hus : "Albano Hus 3", | Hus
stall : "2123" | Ställ / Rum med stativ "2123"
stativ : "FSSB01" | Stativ
panel : "01A" | Panel i stativ "01A" "01B" "01C" "01D" "01" "1"
port : "01" | Port i Panel "01" "02" "1" "2"
room : "2123" | Rum som uttaget finns i "2123" "Koridor 213"
comment : "I Tak" | Kommentar om vart uttaget är placerat i rummet. "Fönsterbänkskanal" "I tak"
},] }

Hus - sites: needs to be defined in NI before the import

Ställ - Room: CrossConnect room


Stativ - rack

Panel - Patchpanel 

Name in ni is the rack-name combined with the Panel name

Room: FSSB01 PatchPanel:33 → FSSB0133


Port - Port

The port is the number in the panel


room - room

(ops SE/EN should have been rum)

Is the room where the data outlet is located


Uttag - Outlet

The name is constructed from the rack + panel + port


Import Script


./Panel_kort/panelkort_json_to_ni_2.py  -i <pannel-kort.json>"

Excel to Json


  • No labels