Showing results for 
Search instead for 
Did you mean: 



This document describes about the logs and ways to collect them for a Nexus 1000v. Logs are the primary way to identify and troubleshoot issues with Nexus 1000v. Cisco Nexus 1000V generates many types of system messages on the switch and sends them to a syslog server, if configured.


Configuring Syslog Server

Follow the steps to configure syslog server to send logs to:

n1kv# conf t
n1kv (conf)# logging server <server_ip_add> 6 facility local1


About VSM and VEM


Cisco Nexus 1000V has 2 parts:

Virtual supervisor module (VSM) - This is the control software of the Cisco Nexus 1000V distributed virtual switch. It runs on a virtual machine (VM) and is based on NX-OS software.
Virtual Ethernet module (VEM) - This is the part of Cisco Nexus 1000V that actually switches data traffic. It runs on a VMware ESX 4.0 host. Several VEMs are controlled by one VSM. All the VEMs that form a switch domain should be in the same virtual Data Center as defined by VMware VirtualCenter.


VSM Log Collection:

When troubleshooting the Nexus 1000v switch, there are a couple of different log bundles that can be generated within the environment.   Logs can be gathered from each component of the Nexus 1000v switch – the VSM and VEMs. Like other Nexus switches, a tech-support file can be generated and downloaded from the VSM.  The tech-support file contains much of the same information you would see in a physical Nexus switch tech-support: version, logging logfile, configuration, interface details/counters, process status, etc. In order to collect a tech-support from the VSM, there are a couple of options:


Save Output From a Logged Session:

  • 1.     Start logging your SSH/Telnet session
  • 2.     From any command line level on the VSM:

        show tech-support svs | no-more

  • 3.     The full tech-support output will be dumped to the screen, and sent to the log file created for the remote session
  • 4.     Stop logging of the session
  • 5.     Go to location of log file and provide to support engineer


Save Output to Bootflash and Copy to a Remote Server:

If you are at the console of the VSM and don’t have the ability to log the session output, you can save the tech-support file to the bootflash of the VSM and copy it off using one of the following: TFTP, SFTP, FTP, SCP:


  • 1.     Log into the VSM and run the following from any command line level on the VSM:

        show tech-support svs > bootflash:techsupport.log

  • 2.     Confirm that the size of the tech-support file is greater than 0 with the output of:

        dir bootflash:

  • 3.     Copy the tech-support file off of the VSM to a remote server. The following example utilizes TFTP:

        copy bootflash:techsupport.log tftp://x.x.x.x

  • 4.     Retrieve the tech-support data from the remote server and provide to TAC engineer


VEM Log Collection:

Several show commands can be run on the VEM, from the VSM, as long as the VEM is present in the VSMs configuration by running:

        module vem <#> execute vemcmd <command>


Unfortunately, the command that is needed to collect the log bundle from the ESX/ESXi host cannot be run from the VSM – you will need to either SSH or console into the host itself. Once you are at the CLI prompt of your ESX host, the following command can be run to collect the VEM logs:

        vem-support all or /usr/bin/vem-support all


This collects logs related to the VEM module running and its current configuration for troubleshooting from the VEM side. You will see the following output once the log bundle collection is complete:

        Generated /tmp/cisco-svs-1203-2348.tgz


The log bundle is saved to the /tmp directory of the ESX host. In order to retrieve it from the server, you would need to either SFTP or SCP it to a remote server, or browse the datastore in vCenter and download the .tgz file.

Cisco's Nexus 1000v Troubleshooting Guides contain other helpfful commands that can be used for diagnosing the switch:

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: