Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom fields in readme #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down