/nx9kv-x

forked from https://github.com/cmsirbu/nx9kv/

Nexus9000v Automation

The code used in my NX-OSv 9000 Automation series of blog posts where I explore setting up a development environment for NX-API automation.

Part 3 - in which everything actually works

Write-up can be found on my blog here.

Backing up configs to git with ansible - Code - Blog Post

Commands needed after VirtualBox and Vagrant have been successfully installed:

For Nexus Devices -- below are the steps on a Mac to get a local environment set up. If you are using another OS or need more detailed information please go to Cisco 9000v

  1. Download nxosv.9.2.3.box from ${URL}
  2. vagrant box add --name n9000v nxosv.9.2.3.box # from within directory
  3. vagrant up n9k1
  4. brew install socat
  5. socat unix-connect:/tmp/n9k1 stdin
  6. This should log you into the switch with a serial connection. You now need to shut down the VM and change a few settings manually before continuing (** note there is a lot output on the serial connection and you may need to wait several minutes before it is completely done. You should see a message about "The guestsheel has been enabled". After that, wait until you get the login prompt. ) 6a. Change network settings for Adapter 1 from NAT to Bridged Adapter and set Promiscuous Mode to Allow All (don't need port forwarding because we are going to set up a static IP that allows you to ssh into switch without needing specific port) 6b. Now go back to the serial "socat" connection to the n9k1 switch and log in with "admin"/"admin". 6c. enter following commands to set up static IP and mgmt access:
  1. Make sure that you run "no password strength-check"
  2. snmp-server host 10.10.0.144 version 3 priv wavefront udp-port 162
  3. snmp-server host 10.10.0.144 use-vrf management udp-port 162
  4. Force a trap i.e. interface Ethernet 1/3 & then "shutdown"