From f61f989dcd2cc37af22715854b2d8941c9099602 Mon Sep 17 00:00:00 2001 From: adam-leggett Date: Mon, 20 Jun 2022 12:40:12 -0700 Subject: [PATCH] Fix readme Corrected readme to include netbox object model requirements for custom fields, and corrected last_used custom field to last_seen to fix run error --- .DS_Store | Bin 0 -> 6148 bytes README.md | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a87a7aa6a8212e83c3752e5c2a6cac506a0e7c40 GIT binary patch literal 6148 zcmeHKJ5EC}5S)b+kq}Z!N?(B+SW!3u2LM7S5P>K0ktkoqxi}iLpXTX77n*2RT93Wn zvE?b=z6D_GkKHA(0(A*`M&$iPAXzVI?s5*BX0152fWX+e-AkK9M5FD;%>s< zV!-F_?S8)EIA8 z0CB-^80XPT5Ss^xy>Luqgl0)4Ce^CNu%t8IDz6ugiAjf5^I>(fRfl46JI`;C4(o{; zrGONeDsY<1mDm3(`XBxOl%$mukOD`gfGsxHn>C+QwRQG5ueFVSOZS{_x*O*~;SlAR j80DA?FUJ>=lzGkP-0y{BV$c~6I#E9Zu8T|x{I>!>*5ek? literal 0 HcmV?d00001 diff --git a/README.md b/README.md index c2b341e..b7ca3a5 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,9 @@ Tags: - `discovered` Custom Fields: - - last_used: date + - last_seen: date - mac: string + > Note: both custom fields need to be present in Netbox object model: "DCIM > device", "IPAM > IP address" ## Environment Variable * `NETBOX_URL`: URL of the Netbox instance @@ -37,7 +38,7 @@ This repo contains a module (`meraki-netbox`) along with scripts that leverage t Description: -This script iterates through the specified organization's networks looking for networks with the `discover-clients` tag. When it finds such a network, it iterates through all of the hosts in that network. For each host, it either adds it to `IP Addresses` if it does not exist or updates it if it does exist. In both cases, it updates the `last_used` and `mac` fields. When it adds a host, it also adds a `discovered` tag to keep track of the hosts that were added through the discovery process. +This script iterates through the specified organization's networks looking for networks with the `discover-clients` tag. When it finds such a network, it iterates through all of the hosts in that network. For each host, it either adds it to `IP Addresses` if it does not exist or updates it if it does exist. In both cases, it updates the `last_seen` and `mac` fields. When it adds a host, it also adds a `discovered` tag to keep track of the hosts that were added through the discovery process. ## Makefile targets