Code Monkey home page Code Monkey logo

netbox-utilities's Introduction

netbox-utilities

Utilities for Netbox management

  • duplicates.py - Compare CSV files from an IPPlan export with a Netbox export
  • duplicates_ipam.py - Compare IPPlan and Netbox addresses for duplicates
  • export_ipplan.py - Parse an IPPlan MySQL export and export a CSV for import into Netbox
  • parse_cisco_configs.py - Parse Cisco router configs for IP and VLAN information
  • pull_juniper_router_vlans.py - Poll Junipers routers for IP and VLAN information
  • Sync-Netbox.ps1 - Synchronize VMware vCenter virtual machine inventory with Netbox
  • vcenter_export.py - parse a basic vCenter VM export to import into Netbox
  • Remove-LogFiles.ps1 - simple script to cleanup synchronization log files older than 1 week
  • vCenter_Netbox_Log_Cleanup.xml - Windows scheduled task example for cleaning log files older than 1 week
  • vCenter_Netbox_Sync.xml - Windows scheduled task example for running the Sync-Netbox script nightly
  • netbox_inventory.py - Generate an Ansible inventory file from Netbox

netbox-utilities's People

Contributors

dpu-jwegner3 avatar jwegner89 avatar sdktr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netbox-utilities's Issues

Sync-vmware Issue with non-unique host names

We have some VMs that have an operating system hostname that is not unique, which was causing them to not be provisioned properly into Netbox. I made the following workaround to have all VMs named by their VM name and not the guest host name.

Line 192:
Old: $Hostname = $Guest.Hostname.ToLower()
New: $Hostname = $VM.Name.ToLower()

PowerCLI 10.2 Get-VM error

In version 10.2 of PowerCLI, the Get-VM command will fail, causing all current VMs to be deleted since the VM array will be empty.

A workaround is to use $VMs = Get-VM -Name "*", which will bypass the issue of unavailable VMs.

Sync-VMware IP Addresses

This script works well with vCenter 6.5 and NetBox 2.4.4. The IP addresses are currently being created as either /32 or /128, but the mask should be matching the mask of the prefix. Is there a way to check if the IP falls into an existing prefix and then use the mask for that subnet, falling back to the /32 or /128 if no prefix is found?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.