When a VM on this stack gets slow, four teams open four consoles and each one sees green. vCenter says the datastore is fine. The VMstore says the storage component is low. The UCS domain has no critical faults. The Nexus pair passes its vPC checks. The VM is still slow. The problem is not missing data. It is that nobody has lined up the numbers from each layer on the same clock and asked which layer is adding the time. This runbook starts from what the vSphere admin sees, routes each symptom to a layer with a decision tree, and gives the exact commands at each layer along with what a good and a bad result look like. It ends with a script that collects the evidence from every layer in one timestamped bundle, so the case you open with Broadcom, Cisco or Tintri starts with the right data.

Level: advanced  ·  Stack: vSphere 8 / VCF 9, Cisco UCS (Intersight Managed Mode or UCS Manager), Nexus 9000 vPC, Tintri VMstore NFS  ·  Build time: 60 minutes to stage the scripts, then 10 minutes per incident

This is part 5 of the series VMware vSphere with Tintri and Cisco. It assumes the design from part 1, the network from part 2, the VMstore setup from part 3 and the host build from part 4. When this post says “the design”, it means fabric A preferred for NFS, VMstore data ports on both fabrics, and no LACP to the Fabric Interconnects.


Contents

  1. Rules before you touch anything
  2. From symptom to layer: the decision tree
  3. The I/O path, and where each latency number is measured
  4. Layer 1: vSphere and ESXi
  5. Layer 2: Tintri VMstore
  6. Layer 3: Cisco UCS (VIC, IOM, Fabric Interconnect)
  7. Layer 4: Nexus 9000 vPC
  8. MTU black holes
  9. Symptom playbooks
  10. Evidence collection scripts
  11. Severity and escalation: what to send to whom
  12. End-to-end workflow
  13. When the runbook itself misleads you
  14. What’s next

01. Rules before you touch anything

Five rules make the difference between a two hour incident and a two day one. None of them are about tools.

  1. Pin the window in UTC. vCenter shows browser local time, ESXi logs in UTC, NX-OS uses whatever clock the switch was given, and the VMstore UI uses its own time zone setting. Write down the start and end of the bad period in UTC before you look at a single graph. The evidence script records each host’s clock next to the collector’s clock so skew is visible, not assumed.
  2. Pin the scope. One VM, one host, one chassis, one fabric, or everything. Scope is the cheapest discriminator there is. One VM points at the VM or its QoS. One host points at that host’s path. One chassis points at an IOM. Everything points at the VMstore or a shared switch.
  3. Collect before you change. Restarting a vmknic, bouncing a port or failing over a controller destroys the counters you needed. Run the evidence bundle first. It is read-only and takes a few minutes.
  4. Read rates, not totals. A CRC counter of 40,000 on a switch port that has been up for three years means little. A counter that moved by 400 during the bad ten minutes means a lot. Every counter in this post is read twice, a known interval apart.
  5. Stay non-destructive on a live stack. Everything in sections 04 to 08 is a show, a get, a list or a ping. The only exception is the jumbo ping, which sends a handful of large ICMP packets and is safe on a production storage VLAN.

02. From symptom to layer: the decision tree

The vSphere admin usually hears about a problem first, and usually in one of six forms. Each has one first question that splits the stack in half. The tree below is deliberately shallow: it gets you to the right layer in one step, and the layer sections then take over.

Step 0, every time: pin the time window in UTC, the scope (one VM, one host, every host) and run the evidence bundle Symptom in vSphere First question The answer routes you to Slow VM (one or many) VMstore breakdown: is host plus network the largest share? yes no Host or fabric: esxtop NFS view, vmnic stats, VIC, FI, Nexus VMstore: storage, contention or throttle (QoS), flash hit % Datastore inaccessible / APD Did every host lose the same datastore? yes no VMstore side: controller state, data ports, appliance ports Host path: vmk, uplink, vNIC pinning, VLAN, MTU vMotion fails vmkping -S vmotion -d -s 8972 succeeds? yes no Datastore identity: compare esxcli storage nfs list per host vMotion path MTU or VLAN: vDS, vNIC, FI QoS class, Nexus Intermittent latency spikes Do error, pause or discard counters rise in the same window? yes no Physical or L2: CRC = optics, stomp = MTU, pause = congestion Workload: contention, snapshots, backup and replication windows One host differs from the rest Is its config identical to peers? (mount, MTU, teaming, VIBs) yes no Hardware: VIC, IOM slot, FI port, firmware drift Fix the drift, then re-run vmkping and the mount check Replication lag (RPO missed) Path test passes and bytesRemainingMB is falling? yes no Throughput: replication throttle window, change rate, schedules Network: firewall ports, replication VLAN, routing, MTU
Figure 1. Symptom-to-layer decision lanes. Every incident starts with step 0; each symptom has one first question, and the answer sends you to a layer section below.

Two of these first questions deserve a word on why they work.

Slow VM: ask the VMstore first. The VMstore is the only component in the stack that reports a per-VM latency already broken into parts. If the host and network parts dominate, the array is waiting on the hypervisor and the wire, and an array-side investigation is wasted time. If the storage, contention or throttle parts dominate, the opposite is true. Tintri’s own Cisco UCS guide makes this point about blade chassis specifically: servers in a chassis share uplinks, and the per-VM network latency the VMstore reports is a direct indicator of whether those shared uplinks are the problem.

APD: count the hosts. An NFS outage seen by every host at once is an outage of something they share: the VMstore data interface, the controller, the appliance ports, or the VLAN on both fabrics. An outage seen by some hosts is a path problem specific to those hosts: their vmk, their uplink, their vNIC, their IOM. That one count removes half the stack from the investigation.

SymptomWhere it shows up for the vSphere adminFirst questionMost common root causes on this stack
Slow VMApplication complaint, VM disk latency in vCenter, VMstore latency chartWhich component of the VMstore latency breakdown dominates?Per-VM QoS maximum left in place, contention from a noisy neighbour, a degraded path on one fabric
Datastore inaccessible or APDDatastore greyed out, VMs inaccessible, hosts disconnected, vobd APD eventsAll hosts or some?Storage VLAN missing on one fabric or upstream, vNIC or pinning failure, controller failover with a path that only worked on one fabric
vMotion failuresTask fails at validation or partway throughDoes a jumbo vmkping on the vMotion stack pass?MTU mismatch on the vMotion path, NFS datastore mounted with a different server name on source and destination
Intermittent latency spikesvmkernel “performance has deteriorated” lines, spiky VMstore network componentDo error, pause or discard counters move in the same window?Failing optic or cable, congestion on FI uplinks during a fabric failover, snapshot or replication schedules
One host differentOnly one host logs NFS warnings, only one host fails vMotionIs its configuration identical to its peers?Config drift (MTU, teaming, advanced settings, VIB versions), a different IOM slot or FI port, firmware drift after a part replacement
Replication lagRPO alerts on the VMstore or in VMware Live Site RecoveryDoes the replication path test pass and is the backlog shrinking?Firewall or routing on the replication network, bandwidth throttle window, a change rate the link cannot carry

03. The I/O path, and where each latency number is measured

Every disagreement between teams on this stack comes from comparing numbers measured at different points on the path. vCenter’s virtual disk latency, the esxtop NFS view, the VMstore’s network component and a Nexus pause counter are all true. They measure different spans. The diagram lines them up.

VMware Cisco UCS and Nexus Tintri VMstore Layer on the NFS write path What you can measure there VMstore calls it Guest OS and application In-guest latency only: needs an agent inside the VM VMDK and vSCSI queue vCenter virtual disk latency; esxtop v view: LAT/rd, LAT/wr ESXi NFS client (per datastore) esxtop NFS view; vmkernel: “performance has deteriorated” vmkernel port and vDS uplink vmkping RTT; esxcli nic stats: drops and errors, no latency Cisco VIC vNIC (nenic driver) VIC macstats / lifstats: error counters, no latency IOM / FEX in the chassis IOM rmon: CRC, stomped frames, pause counters Fabric Interconnect A or B FI NX-OS: counters errors, Veth state, uplink pinning Nexus 9000 vPC (cross-fabric only) Nexus: counters errors, queuing drops, Rx/Tx pause VMstore data port (active ctrl) VMstore network diagnostics: DF ping at 8972 bytes TxOS file system, flash, disk latencyStorageMs, latencyContentionMs, latencyThrottleMs not seen by VMstore host network storage contention throttle
Figure 2. The NFS write path from guest to VMstore media, the number each layer can give you, and roughly how VMstore attributes its latency breakdown. Validate the attribution on your TxOS build before scripting on it.

Three things to take from it. First, only the VMware layers and the VMstore produce latency numbers. Everything in the Cisco layers produces counts: errors, discards, stomped frames, pause frames. You do not find a slow Cisco hop by its latency, you find it by counters that move during the bad window. Second, the VMstore network component is the only number that spans the whole Cisco fabric in one figure, which is why it is the first thing to read. Third, the Nexus box is dashed for a reason: in the design from part 2, NFS traffic stays inside fabric A and never touches the Nexus pair. Tintri’s UCS guide lists the failures that push storage traffic northbound through the upstream switches: a lost link on the active VMstore data port, or a failed IOM on fabric A in a host’s chassis. If the Nexus counters matter in your incident, one of those has happened, and that is a finding in itself.

The VMstore latency breakdown, field by field

The VMstore UI shows per-VM and per-vDisk latency as a stacked breakdown. The REST API exposes the same breakdown as fields on the VM, vDisk and datastore stat objects. The names and descriptions below come from Tintri’s public REST API DTO reference for API version v310, published with the Tintri Python SDK on GitHub.

Field (v310)Tintri’s descriptionWhat it usually means in an incident
latencyHostMsPortion of overall latency contributed by the ESX hostsTime in the hypervisor before the I/O reaches the wire: host CPU pressure, vSCSI queueing, NFS client queueing
latencyNetworkMsPortion contributed by the networkEverything between the vmkernel port and the VMstore data port: VIC, IOM, FI and, when traffic crosses fabrics, Nexus
latencyStorageMsPortion contributed by the Tintri storageTime inside the array
latencyContentionMsContention latency (queued behind other workloads)The VM is competing for array resources. Tintri’s QoS guidance is to raise the VM’s minimum, not the maximum
latencyThrottleMsPortion contributed by QoS throttlingA per-VM maximum IOPS setting is holding the VM back. Lower maximum, higher throttle latency
latencyFlashMs, latencyDiskMsPortions contributed by flash and by hard disksMostly relevant on hybrid models
latencyMirrorMsPortion contributed by synchronous replicationNon-zero only with synchronous replication; the remote acknowledgement is part of every write
latencyTotalMsTotal latency for the objectThe headline number
flashHitPercentPercentage of reads and writes satisfied by flashA falling value on a hybrid model explains rising storage latency

Two cautions. The DTO reference’s wording for some of these fields is loose (it describes the host and network portions “down to disks”), so before you build alerting on arithmetic between fields, dump one VM on your TxOS build and check that the total is the sum of the components you expect. And Tintri does not publish universal “good” thresholds for each component, so this post does not invent them. Read the breakdown relatively: which component is largest, and which one changed when the problem started. The VMware side has one published threshold worth knowing: since ESXi 7.0 for NFSv3 (7.0 Update 1 for NFSv4.1) the NFS client tracks a moving average per volume and logs when it deteriorates, with a default threshold of 10 ms (Broadcom KB 335047).

04. Layer 1: vSphere and ESXi

Start on the host, because the host is where all four vendors’ problems turn into one symptom. Run these from the ESXi shell (SSH enabled for the incident and disabled after) or let the PowerCLI collector in section 10 run their esxcli equivalents remotely.

# ---- identity and clock ----
esxcli system version get
date -u

# ---- how this host mounted the VMstore ----
esxcli storage nfs list          # NFSv3: Volume Name, Host, Share, Accessible, Mounted, Hardware Acceleration
esxcli storage nfs41 list        # NFSv4.1 mounts, if any
ls -l /vmfs/volumes/ | grep -i <DATASTORE_NAME>     # the UUID behind the name

# ---- the vmkernel port that carries NFS ----
esxcli network ip interface list                 # MTU, portgroup or DVPort, netstack per vmk
esxcli network ip interface ipv4 get
esxcli network ip route ipv4 list                # NFS must leave on the storage vmk, not the default route

# ---- uplinks: link, MTU, driver, firmware, error counters ----
esxcli network nic list
esxcli network nic get -n <VMNIC>                # Driver Info: nenic version and VIC firmware version
esxcli network nic stats get -n <VMNIC>          # drops, CRC, errors: read twice, a minute apart

# ---- advanced settings that must match across hosts ----
esxcli system settings advanced list -o /NFS/MaxVolumes
esxcli system settings advanced list -o /NFS/HeartbeatFrequency
esxcli system settings advanced list -o /NFS/HeartbeatMaxFailures
esxcli system settings advanced list -o /NFS/HeartbeatTimeout
esxcli system settings advanced list -o /Misc/APDTimeout

# ---- VIBs that must match across hosts ----
esxcli software vib list | grep -i -E 'tintri|nenic|nfnic|ucs'

# ---- the log lines that matter ----
grep -E 'NFS|APD' /var/run/log/vmkernel.log | tail -n 200
grep -i -E 'nfs|apd' /var/run/log/vobd.log | tail -n 100

# ---- 60 seconds of esxtop in batch mode, every counter ----
esxtop -b -a -d 5 -n 12 > /tmp/esxtop-$(hostname)-$(date -u +%Y%m%dT%H%M%SZ).csv

For the interactive view, Broadcom KB 335047 says to start esxtop, press n for the NFS view on ESXi 7.x and 8.x, and use f to make sure the DAVG/cmd and KAVG/cmd fields are shown. Check h on your build, because esxtop key bindings have moved between releases. On NFS there is no device layer below the client, so do not read DAVG as “the disk” the way you would on a LUN: KB 427727 reads a rise in both KAVG and DAVG on an NFS datastore as I/O queueing on the host caused by a slow NFS server. The batch capture’s column names vary by build; find the NFS columns with head -1 file.csv | tr ',' '\n' | grep -n -i nfs before you load it into a spreadsheet.

The log lines, and what each one tells you

# vmkernel.log: latency moving average crossed the threshold (KB 335047)
WARNING: NFS: NFSVolumeLatencyUpdate:4879: NFS volume <DATASTORE_NAME> performance has deteriorated. I/O latency increased from average value of 16857(us) to 68722(us). Exceeded threshold 10000(us)
NFS: NFSVolumeLatencyUpdate:4590: NFS volume <DATASTORE_NAME> performance has improved. I/O latency reduced from 68945(us) to 35389(us).

# vmkernel.log: heartbeats failed, server marked down; later restored (KB 341361)
WARNING: NFS: 338: Lost connection to the server <VMSTORE_DATA_IP> mount point <EXPORT_PATH>, mounted as <UUID> ("<DATASTORE_NAME>")
... Restored connection to the server <VMSTORE_DATA_IP> mount point <EXPORT_PATH>, mounted as <UUID> ("<DATASTORE_NAME>")

# vobd.log: the same events as VOBs, then the APD sequence (KB 381569, KB 2032940)
[vmfsCorrelator] ...: [esx.problem.vmfs.nfs.server.disconnect] <VMSTORE_DATA_IP><EXPORT_PATH> <UUID> <DATASTORE_NAME>
[APDCorrelator] ...: [esx.problem.storage.apd.start] Device or filesystem with identifier [<FS_ID>] has entered the All Paths Down state.
[APDCorrelator] ...: [esx.problem.storage.apd.timeout] Device or filesystem with identifier [<FS_ID>] has entered the All Paths Down Timeout state after being in the All Paths Down state for 140 seconds. I/Os will now be fast failed.
[APDCorrelator] ...: [esx.clear.storage.apd.exit] Device or filesystem with identifier [<FS_ID>] has exited the All Paths Down state.

The mount path in these examples is a placeholder; use whatever export path your VMstore presents. The numbers in the log lines are from the Broadcom KB examples, not from a Tintri system. The timing behind the APD lines matters for triage. With default heartbeat settings, ESXi needs between 113 and 130 seconds of silence before it marks an NFS server down (KB 323325 gives the formula), and then Misc.APDTimeout (140 seconds by default) runs before I/O is fast-failed. Tintri’s VMware best-practices guide (revision 3.1, 2019) lists NFS.HeartbeatFrequency 12, NFS.HeartbeatMaxFailures 10 and NFS.HeartbeatTimeout 5, notes these are already the defaults from ESXi 5.0 on, and warns that heartbeat settings must be identical on every host. So a short blip on the storage VLAN produces “performance has deteriorated” lines and a latency spike, not an APD. If you see APD, the path was gone for minutes.

CheckGoodBad, and what it means
esxcli storage nfs listSame Host and Share strings on every host, Accessible true, Mounted true, Hardware Acceleration SupportedAn IP on one host and an FQDN on another: different datastore UUIDs, vMotion fails (KB 400097, KB 306596). Hardware Acceleration “Not Supported”: Tintri VAAI plugin missing or not loaded on that host
esxcli network ip interface listStorage vmk on the storage portgroup with the MTU the design calls for, identical on every hostMTU 1500 on one host when the rest are 9000, or the NFS vmk on the wrong portgroup or netstack
esxcli network nic stats getReceive CRC errors and Total receive errors flat between two readsCRC errors incrementing: a Layer 1 problem on that uplink (Broadcom KB 341594 and 418667 cover the counters). Receive packets dropped rising under load: host-side congestion
esxcli network nic getnenic driver and VIC firmware match the pair your Cisco UCS HCL row lists, same on every hostOne host on a different driver or firmware: firmware drift after a board or adapter replacement
vmkernel.logNo “deteriorated” lines, or a few that pair with “improved” within secondsRepeated “deteriorated” lines on one datastore from many hosts: the VMstore or its shared path. From one host: that host’s path
vobd.logNo NFS disconnect or APD VOBsAny esx.problem.storage.apd.start: a path down for minutes; check scope (how many hosts) immediately

Two more checks belong on the vSphere side. The teaming policy on the storage portgroup should match the design: in Tintri’s UCS guide the storage portgroup is active on the fabric A uplink and standby on fabric B, with every other portgroup the reverse, and no LACP towards the Fabric Interconnects. And vCenter’s own per-host datastore latency (datastore.totalReadLatency.average and totalWriteLatency.average, instanced by datastore UUID) gives you the NFS client’s view per host without logging into each one. The collector pulls both.

05. Layer 2: Tintri VMstore

In the UI, the VM’s latency chart with its breakdown is the first stop, and the Hardware view is the second: both controllers present, one active, the system redundant. For scripting and for the evidence bundle, the REST API gives you the same data. The endpoints below come from Tintri’s public v310 SDK and DTO reference; default is accepted as the appliance and datastore identifier on a VMstore. Some TxOS builds expect a fully qualified API version such as v310.<minor>; if login returns 404, read /api/info and use what it reports.

#!/usr/bin/env bash
# vmstore-triage.sh: read-only VMstore health and latency snapshot (Tintri REST API v310)
# Needs: curl, jq. Secrets: TINTRI_USER, TINTRI_PASSWORD. Optional: TINTRI_CA (PEM bundle).
set -euo pipefail
VMSTORE="<VMSTORE_FQDN>"
API="v310"
JAR=$(mktemp); trap 'rm -f "$JAR"' EXIT
CURL=(curl -sS --max-time 60 -b "$JAR" -c "$JAR")
[ -n "${TINTRI_CA:-}" ] && CURL+=(--cacert "$TINTRI_CA")

"${CURL[@]}" "https://$VMSTORE/api/info" | jq .

jq -n --arg u "$TINTRI_USER" --arg p "$TINTRI_PASSWORD" \
  '{typeId:"com.tintri.api.rest.vcommon.dto.rbac.RestApiCredentials", username:$u, password:$p}' |
  "${CURL[@]}" -H 'Content-Type: application/json' -X POST --data @- \
  "https://$VMSTORE/api/$API/session/login" > /dev/null

echo "== file system and alerts";  "${CURL[@]}" "https://$VMSTORE/api/$API/appliance/default/operationalStatus" | jq '{isFilesystemUp, alertsUnreadCount, urgentMessage, uptime}'
echo "== controllers";             "${CURL[@]}" "https://$VMSTORE/api/$API/appliance/default/controller" |
  jq '(if type == "array" then . else (.items // [.]) end)[] | {locator, role, state, osVersion}'
echo "== failed components";       "${CURL[@]}" "https://$VMSTORE/api/$API/appliance/default/failedComponents" | jq .

echo "== top 15 VMs by total latency, newest sample"
{ printf 'VM\tTOTAL\tHOST\tNET\tSTORAGE\tCONTENTION\tTHROTTLE\tIOPS\n'
"${CURL[@]}" "https://$VMSTORE/api/$API/vm" | jq -r '
  [ .items[] | {vm: .vmware.name, s: (.stat.sortedStats // [] | last)} | select(.s != null) ]
  | sort_by(-(.s.latencyTotalMs // 0)) | .[:15][]
  | [ .vm, .s.latencyTotalMs, .s.latencyHostMs, .s.latencyNetworkMs, .s.latencyStorageMs,
      .s.latencyContentionMs, .s.latencyThrottleMs, .s.operationsTotalIops ] | @tsv'
} | column -t -s $'\t'

"${CURL[@]}" "https://$VMSTORE/api/$API/session/logout" > /dev/null

The per-VM objects in the /vm response carry their samples in stat.sortedStats; the script takes the last entry as the newest, which is what the earlier per-VM latency post does. Dump one VM object on your build to confirm the ordering and the field names before you rely on them, because they can vary between TxOS releases. For history rather than a snapshot, the API also has /vm/<uuid>/statsHistoric and /vm/<uuid>/statsRealtime, and /datastore/default/statsRealtime for the whole datastore.

CheckGoodBad, and what it means
operationalStatusisFilesystemUp: true, no urgentMessageFile system down: VMstore case, Severity 1. An urgent message: read it before anything else
controllerOne controller role: ACTIVE, the other STANDBY, same osVersionA missing standby or mismatched OS versions: no protection against the next failover, and an upgrade may be stuck
failedComponentsEmptyAny entry: hardware case with Tintri, include the component type and locator
Latency breakdownLargest component unchanged from your normal baseline for that VMNetwork component grew: go to sections 06 to 08. Contention grew: noisy neighbour or reserve exhausted. Throttle non-zero: a QoS maximum is in effect
Network diagnostics (UI)Jumbo test passes at 8972 bytes with do-not-fragment, and 8973 fails (expected with a 9000 MTU)8972 fails: an MTU black hole on the active data path (section 08)

Throttle deserves its own sentence because it is the most common self-inflicted slow VM. Tintri’s QoS guidance is that lowering a VM’s maximum normalized IOPS raises its throttle latency, and if a VM is slow after a maximum was set and later “removed”, throttle latency is the first thing to check. The QoS audit post finds every VM that still has a ceiling. Contention is the opposite case: the VM is not capped, it is queued behind other work, and the guidance is to confirm significant contention latency before raising the VM’s minimum.

06. Layer 3: Cisco UCS (VIC, IOM, Fabric Interconnect)

UCS troubleshooting for storage traffic is about counters at three places: the VIC in the server, the IOM (FEX) in the chassis, and the Fabric Interconnect. Start with faults, because the management plane often already knows.

Faults and alarms

In Intersight Managed Mode, open the alarms for the UCS domain and the affected servers, filtered to the incident window. From PowerShell, the Intersight.PowerShell module’s Get-IntersightCondAlarm reads the same alarms (the collector in section 10 does this). In UCS Manager, the Faults view in the GUI, show fault in the UCSM CLI, or Get-UcsFault in the UCS PowerTool module. The UCS log examples post and the service profile validation post cover the UCSM side in more depth. Faults that matter for NFS: vNIC or VIF down, uplink or appliance port down, IOM or FEX link problems, adapter faults, and anything about pinning failures.

Fabric Interconnect counters

Both management modes give you the FI’s NX-OS shell with connect nxos (UCSM uses connect nxos a or b; in IMM, run it on the FI you are logged into). Everything below is a show command. Cisco’s IMM troubleshooting note still reminds you to understand the potential impact of any command on a live network, which is good advice on a shared fabric.

# On each FI (turn on terminal session logging first)
connect nxos                                     # UCSM: connect nxos a | b
show clock
show interface counters errors                   # receive-side errors per port, read twice
show interface brief | include Veth              # the virtual interfaces behind each vNIC
show run interface | grep prev 1 <SERVER_PROFILE_NAME>   # find the Veth for a server's vNIC
show interface vethernet <VETH_ID>
show pinning border-interfaces                   # which uplink each Veth is pinned to
show interface <APPLIANCE_OR_UPLINK_PORT>        # MTU, CRC, input errors, pause
show logging last 200
exit

Cisco’s CRC troubleshooting note (document 215449) is the reference for reading these, and its interpretation of CRC columns is the single most useful thing in this section. A CRC error counted on the receiving link means a Layer 1 problem on that link: optics, cable, port. A stomped CRC means the frame was already bad when the far side forwarded it, so you walk upstream to where it was first corrupted. And stomped frames at the FI with no CRC or stomp at the link below it are usually a Layer 2 or policy violation, most commonly an MTU mismatch, so check the QoS system class MTU. That last pattern is the UCS signature of the black hole in section 08.

IOM and VIC counters

# IOM (FEX) in the chassis: from the FI CLI. Command family depends on IOM generation.
connect iom <CHASSIS_ID>
show platform software woodside sts              # 2200 series: which HIFs a blade uses
show platform software woodside rmon 0 <NIx|HIx> # RX_CRC_NOT_STOMPED, RX_CRC_STOMPED, TX_FRM_ERROR
show platform software tiburon rmon 0 nif_all | egrep -i 'crc|stomp|pause|err'   # 2300 series
show hardware internal tah counters asic 0 nxos-port <PORT>                       # 2408
exit

# VIC adapter in a blade: from the FI CLI (UCSM; in IMM use the debug path Cisco TAC gives you)
connect adapter <CHASSIS>/<BLADE>/<ADAPTER>
connect
attach-mcp
uifportstatus                                    # physical port state and speed
vnic                                             # vNICs on the adapter
lifstats                                         # per-LIF statistics (VIC 1200 series)
exit
attach-macd                                      # VIC 1400 / 1500 series
macstats 0                                       # Ethernet error counters, DELTA and TOTAL columns

These commands come from Cisco document 215449, which lists them per VIC and IOM generation; check it for your hardware, because the command families differ (dcem-macstats on VIC 1200, macstats under attach-macd on 1400 and 1500). On the ESXi side, the same VIC shows up as vmnics using the nenic driver, so esxcli network nic stats get from section 04 is the host’s view of the same port.

CheckGoodBad, and what it means
Alarms or faultsNothing new in the windowvNIC or VIF down, uplink down, pinning failure: the host lost a path and should have failed over. If it did not, check the teaming policy and whether the vNIC is pinned to a dead uplink
show interface counters errors on the FICounters flat between two readsRising CRC on one port: optics or cable on that link. Rising errors on every server-facing port: look at the IOM
IOM rmonNo movement in CRC or stomp countersRX_CRC_NOT_STOMPED rising: the corruption is on this link. RX_CRC_STOMPED: it happened further back
VIC macstatsError rows unchanged in the DELTA columnErrors on one adapter port only: that path. Errors on both: suspect the adapter or the IOM slot
Veth and pinningVeth up, pinned to an up uplink on its own fabricVeth down with “Source Pin Fail” (the IMM example in Cisco document 217561): the vNIC has nowhere to go

07. Layer 4: Nexus 9000 vPC

In the design, NFS traffic only reaches the Nexus pair when it has to cross from one fabric to the other. Everything else on the Nexus is still relevant, because the vMotion VLAN, the replication network and the VMstore management network may all ride there. The commands are standard NX-OS:

show clock
show vpc brief                                   # peer adjacency, keepalive, consistency status
show vpc consistency-parameters global           # Type 1 mismatches suspend vPCs
show vpc consistency-parameters vpc <VPC_ID>     # per vPC: MTU, mode, allowed VLANs
show interface counters errors                   # FCS-Err, Rcv-Err, Xmit-Err, OutDiscards per port
show interface <INTERFACE>                       # MTU, input errors, CRC, Rx pause, Tx pause
show queuing interface <INTERFACE>               # per-queue drops on a physical interface
show interface priority-flow-control             # only if PFC is configured anywhere
show running-config all | include jumbomtu       # default on Nexus 9000 is 9216
show logging last 200

Cisco’s MTU document for the Nexus 9000 family says the system jumbo MTU defaults to 9216, MTU is set per interface (mtu 9216, and Layer 2 ports accept only 1500 or the system jumbo value), and a mismatch between vPC peers causes a Type 1 inconsistency. Cisco’s vPC troubleshooting note adds that a Type 1 mismatch suspends the vPC, which turns a configuration slip into an outage on whatever rides that port-channel. For the switch side of MTU checks the MTU on Cisco switches post goes further, and checking CRC errors on Cisco switches covers the counters.

CheckGoodBad, and what it means
show vpc briefPeer adjacency formed ok, peer is alive, configuration consistency success, every vPC upAny vPC down or consistency failed: read the reason line; an MTU or allowed-VLAN mismatch on the FI uplink vPC breaks cross-fabric storage traffic
show interface counters errorsFlat between two readsFCS errors on the FI uplink ports: optics or cable. OutDiscards: congestion towards that port
show interface pause countersZero or static Rx and Tx pausePause frames rising during the bad window: something is asking the link to stop. Find out who sends them and why flow control is enabled there at all
show queuing interfaceNo drops in the queue that carries storage and vMotionDrops in that queue during the window: the uplink is oversubscribed, often only during a fabric failover when both fabrics’ storage traffic goes northbound
MTUMTU 9216 bytes on every interface carrying the storage and vMotion VLANs, including the peer-link1500 on any of them while the hosts use 9000: black hole

08. MTU black holes

An MTU black hole is the most confusing failure on an NFS stack because it lets small things work. The mount succeeds, because mount and GETATTR traffic is small. The datastore browses. Heartbeats pass. Then a large write or a vMotion stalls, because full-size frames are silently dropped by one device whose MTU is smaller than the endpoints’. Broadcom’s KB 341361 lists an MTU mismatch on the VMkernel interface, the physical path or the NAS as a cause of NFS disconnects. Both public Tintri guides go further: because of the volume of support cases caused by misconfigured jumbo frames, Tintri recommends against jumbo frames unless you have a specific reason, and if you do use them, the VMstore data interface runs MTU 9000 and every device in the path, including inter-switch links, should run 9216.

The test is the same at every layer: send a frame that exactly fills the endpoint MTU with do-not-fragment set. With a 9000 MTU that is 8972 bytes of ICMP payload (Broadcom KB 313061 and KB 1003728); with 1500 it is 1472.

# From every host, from the NFS vmk, to every VMstore data IP
vmkping -I <NFS_VMK> -c 3 <VMSTORE_DATA_IP>                 # reachability
vmkping -I <NFS_VMK> -c 3 -d -s 1472 <VMSTORE_DATA_IP>      # standard frames, DF set
vmkping -I <NFS_VMK> -c 3 -d -s 8972 <VMSTORE_DATA_IP>      # jumbo frames, DF set
vmkping -I <NFS_VMK> -c 3 -d -s 8973 <VMSTORE_DATA_IP>      # must fail with a 9000 MTU

# vMotion uses its own TCP/IP stack
vmkping -S vmotion -I <VMOTION_VMK> -c 3 -d -s 8972 <PEER_VMOTION_IP>
1472 DF8972 DFReading
passpassJumbo path is clean for the path you just tested. Repeat after a fabric failover to test the other one
pass100% lossBlack hole: some device between the vmk and the VMstore has a smaller MTU. Walk the path: vDS, UCS QoS system class and vNIC MTU, FI appliance or uplink port, Nexus interfaces and peer-link
passsendto() failed (Message too long)The local vmk is not at 9000. Fix the vmk or the vDS first; Broadcom KB 343871 covers this message
failfailNot an MTU problem. VLAN, IP, routing or the VMstore data interface itself

One test proves only one path. Tintri’s guides make this point about their own network diagnostics tool (available since TxOS 4.2): it tests the active data path only, and hashing, a failover, or the other controller after a software update can take a different path. On UCS the paths that matter are fabric A in normal operation, fabric B after a fabric failure, and the northbound cross-fabric path after a VMstore data port A link failure. A black hole that only exists on the northbound path is invisible until the day you need it, which is usually during a firmware upgrade. Test all three during a maintenance window; the jumbo frame check post automates the host side across the fleet.

09. Symptom playbooks

Slow VM

  1. Open the VM’s latency breakdown on the VMstore for the window. Note the largest component and whether it changed.
  2. Throttle non-zero: check the VM’s QoS settings. Contention dominant: look at what else got busy at the same time on that VMstore (the top-15 query in section 05 sorted by IOPS instead of latency).
  3. Host dominant: check the host’s CPU ready and the vCenter virtual disk latency against the per-host datastore latency. If the VMDK is much slower than the NFS client, the time is above the NFS client (vSCSI queueing, SIOC, snapshots in the chain).
  4. Network dominant: find which hosts the slow VMs run on. All on one chassis: that chassis’s IOM. All hosts: the VMstore data port or a fabric. Then read the counters in sections 06 and 07 twice, a minute apart.
  5. Storage dominant with nothing else changed: open a Tintri case with the VM names, the window and the breakdown.

The correlation script puts vSphere and VMstore latency for the same VMs in one table, which is steps 1 to 3 in one command.

Datastore inaccessible or APD

  1. Count hosts. In vCenter, check which hosts show the datastore inaccessible; in vobd.log, which hosts logged esx.problem.storage.apd.start for the same identifier.
  2. Every host: check the VMstore first (operationalStatus, controller roles, recent alerts, whether a controller failover just happened). Then check the storage VLAN on both FIs and upstream. Tintri’s UCS guide is explicit that the storage VLAN must be allowed on both fabrics through the upstream switches, or the stack cannot survive every failover scenario.
  3. Some hosts: run the vmkping matrix from one affected and one healthy host. Compare their vmk, teaming, Veth state and pinning. If the affected hosts share a chassis, read that chassis’s IOM counters.
  4. Do not change Misc.APDTimeout or the heartbeat settings mid-incident. Broadcom’s guidance (KB 406100) is not to change the APD settings unless support asks you to, and Tintri’s guide warns that heartbeat settings must stay identical on every host.
  5. When the path returns, vmkernel logs “Restored connection” and vobd logs esx.clear.storage.apd.exit. KB 341361’s guidance is that no action is needed once you see the restore. Your job then is the root cause, not the recovery.

If vCenter itself sits on the datastore that failed, its alarms go with it. That case is why the APD alerting post builds detection on ESXi syslog instead of vCenter.

vMotion failures

Two causes cover most cases on this stack. The first is the vMotion network: run the jumbo vmkping on the vMotion stack between source and destination. The second is datastore identity. ESXi derives an NFSv3 datastore’s UUID from the server and share strings exactly as they were typed, so a host that mounted the VMstore by IP and another that mounted it by FQDN see two different datastores with the same name, and vMotion between them fails (Broadcom KB 400097 and KB 306596; KB 308552 covers the “Unable to access file” variant). Compare esxcli storage nfs list output across the cluster; the datastore health sweep does this for a whole VCF fleet. A datastore name ending in “(1)” in vCenter is the visible symptom of the same mismatch. The vMotion deep dive explains which phase each error comes from.

Intermittent latency spikes

  1. Build a timeline of the spikes from vmkernel “deteriorated” and “improved” pairs on every host. Spikes on all hosts at the same second are shared; spikes on one host are that host’s path.
  2. Overlay scheduled work: VMstore snapshot and replication schedules, backup windows, vSphere snapshot consolidation, DRS migrations.
  3. Read error and pause counters at every layer before and after a spike. CRC that moves means physical. Stomped frames with clean links below them means MTU. Pause or queue drops mean congestion.
  4. If nothing moves at Layer 1 or 2 and the VMstore shows contention in the same seconds, it is workload. Use the VMstore’s per-VM view to find the neighbour.

One host different from the rest

Diff the host against a healthy peer, field by field: the NFS mount strings, the vmk MTU and portgroup, the teaming on the storage portgroup, the advanced settings, the VIB list (Tintri VAAI plugin, nenic, nfnic), the driver and VIC firmware from esxcli network nic get, and the server firmware in Intersight or UCSM. For the advanced settings, Tintri’s 2019 VMware guide recommends raising NFS.MaxVolumes to 256 and setting Net.TcpipHeapSize to 32 and Net.TcpipHeapMax to 1536, always together and on every host, with a reboot for the heap settings; confirm those values against the current Tintri guide for your TxOS and ESXi release before you treat a difference as drift. If the configuration is identical, look at hardware placement: same chassis as the other hosts, same IOM, same FI port group. A host that just had a board, adapter or blade replaced is the classic case of firmware drift, and the health sweep exists to find exactly this host.

Replication lag

Start with the replication path test in the VMstore UI (Settings, Replication), which Tintri documents for exactly this purpose. By Tintri’s published defaults, asynchronous ReplicateVM uses destination TCP port 1304 and synchronous replication uses TCP 1338; both can be changed, so check what your paths use and confirm the firewall allows it. Then read the backlog: the v310 replication stats include bytesRemainingMB (logical data still to replicate) and outgoing logical and physical throughput, and the VM filter can select VMs with replicationHasIssue. A backlog that keeps growing while the path test passes is a throughput problem: a bandwidth limit window on the path, a change rate above what the link carries, or schedules that overlap. A failing path test is a network problem on the replication VLAN, routing or firewall. Tintri also recommends running the same TxOS version on every VMstore in a replication relationship, so check versions after any upgrade.

10. Evidence collection scripts

Two scripts, because the layers need two kinds of access. The PowerShell script uses PowerCLI and the vendor REST APIs, so it needs no SSH to anything: vSphere through vCenter, the VMstore through its API, UCS through Intersight or UCS Manager PowerShell modules when they are installed. The shell script covers what only a CLI can give you: the Nexus pair over SSH, optional ESXi shell captures (logs and esxtop), and a command sheet for the Fabric Interconnects, whose connect nxos and adapter shells are interactive. Both write into one directory named with a UTC timestamp, record clocks, and finish with a checksum manifest so the bundle you send to support is the bundle you collected.

<#
.SYNOPSIS
  Collect-StackEvidence.ps1: one timestamped, read-only evidence bundle across vSphere,
  Tintri VMstore and Cisco UCS for an NFS incident.
.NOTES
  PowerShell 7.2+, VMware PowerCLI 13.x or VCF.PowerCLI 9.x.
  Optional modules: Intersight.PowerShell (IMM domains), Cisco.UCSManager (UCSM domains).
  Secrets come from environment variables only:
    VCENTER_USER, VCENTER_PASSWORD, TINTRI_USER, TINTRI_PASSWORD,
    INTERSIGHT_KEY_ID, INTERSIGHT_KEY_FILE, [INTERSIGHT_URL], UCSM_HOST, UCSM_USER, UCSM_PASSWORD
.EXAMPLE
  ./Collect-StackEvidence.ps1 -VCenter vcenter01.lab.local -Cluster cl-prod-01 -NfsVmk vmk1 `
      -VmstoreDataIp 10.0.30.20 -Vmstore vmstore01.lab.local -VmName app01,db01 -Minutes 60
#>
[CmdletBinding()]
param(
  [Parameter(Mandatory)][string]$VCenter,
  [Parameter(Mandatory)][string]$Cluster,
  [Parameter(Mandatory)][string]$NfsVmk,
  [Parameter(Mandatory)][string[]]$VmstoreDataIp,
  [string]$Vmstore,
  [string[]]$VmName = @(),
  [ValidateRange(5, 60)][int]$Minutes = 60,      # realtime stats only cover about an hour
  [string]$OutRoot = (Join-Path $PWD 'evidence'),
  [string]$SupportBundleHost,                     # optional: one host to pull a vm-support bundle from
  [switch]$SkipCertificateCheck                   # lab only; import the VMstore CA instead
)
$ErrorActionPreference = 'Stop'
$stamp = (Get-Date).ToUniversalTime().ToString('yyyyMMddTHHmmssZ')
$out   = Join-Path $OutRoot "stack-$stamp"
New-Item -ItemType Directory -Path $out -Force | Out-Null
Start-Transcript -Path (Join-Path $out 'transcript.txt') | Out-Null
$since = (Get-Date).AddMinutes(-$Minutes)

function Save-Json([object]$Object, [string]$Name) {
  $Object | ConvertTo-Json -Depth 8 | Set-Content -Path (Join-Path $out "$Name.json") -Encoding utf8
}
function Invoke-Step([string]$Name, [scriptblock]$Block) {
  try { & $Block }
  catch {
    Write-Warning "$Name failed: $($_.Exception.Message)"
    Add-Content -Path (Join-Path $out 'errors.txt') -Value "$((Get-Date).ToUniversalTime().ToString('o')) $Name : $($_.Exception.Message)"
  }
}
function New-Cred([string]$User, [string]$Pass) {
  if (-not $User -or -not $Pass) { throw 'credential environment variables are not set' }
  [pscredential]::new($User, (ConvertTo-SecureString $Pass -AsPlainText -Force))
}

Save-Json ([ordered]@{
  collectedUtc = $stamp; collector = [Environment]::MachineName; windowMinutes = $Minutes
  vcenter = $VCenter; cluster = $Cluster; nfsVmk = $NfsVmk; vmstoreDataIp = $VmstoreDataIp; vmstore = $Vmstore
}) 'manifest'

# ------------------------------------------------------------------ vSphere
Connect-VIServer -Server $VCenter -Credential (New-Cred $env:VCENTER_USER $env:VCENTER_PASSWORD) | Out-Null
$vmhosts = Get-Cluster -Name $Cluster | Get-VMHost | Sort-Object Name

Invoke-Step 'vds-teaming' {
  Save-Json (Get-VDPortgroup | Get-VDUplinkTeamingPolicy |
    Select-Object @{n='Portgroup';e={$_.VDPortgroup.Name}}, LoadBalancingPolicy, FailoverDetectionPolicy,
                  NotifySwitches, EnableFailback, ActiveUplinkPort, StandbyUplinkPort, UnusedUplinkPort) 'vds-teaming'
}

foreach ($h in $vmhosts) {
  $hn = $h.Name.Split('.')[0]
  $r  = [ordered]@{ host = $h.Name; connectionState = "$($h.ConnectionState)"; version = $h.Version; build = $h.Build }
  $esxcli = $null
  Invoke-Step "$hn esxcli" { $script:esxcli = Get-EsxCli -VMHost $h -V2 }
  Invoke-Step "$hn clock" {
    $dts = Get-View $h.ExtensionData.ConfigManager.DateTimeSystem
    $r.hostTimeUtc      = $dts.QueryDateTime().ToUniversalTime().ToString('o')
    $r.collectorTimeUtc = (Get-Date).ToUniversalTime().ToString('o')
  }
  if ($esxcli) {
    Invoke-Step "$hn nfs"  { $r.nfs = $esxcli.storage.nfs.list.Invoke(); $r.nfs41 = $esxcli.storage.nfs41.list.Invoke() }
    Invoke-Step "$hn vmk"  { $r.vmk = $esxcli.network.ip.interface.list.Invoke(); $r.ipv4 = $esxcli.network.ip.interface.ipv4.get.Invoke() }
    Invoke-Step "$hn nics" {
      $r.nics = @(foreach ($n in $esxcli.network.nic.list.Invoke()) {
        [ordered]@{ nic = $n.Name; link = $n.LinkStatus; speed = $n.Speed; mtu = $n.MTU
                    info  = $esxcli.network.nic.get.Invoke(@{ nicname = $n.Name })
                    stats = $esxcli.network.nic.stats.get.Invoke(@{ nicname = $n.Name }) }
      })
    }
    Invoke-Step "$hn vibs" {
      $r.vibs = $esxcli.software.vib.list.Invoke() | Where-Object { $_.Name -match 'tintri|nenic|nfnic|ucs' } |
                Select-Object Name, Version, Vendor, AcceptanceLevel
    }
    Invoke-Step "$hn vmkping" {
      $r.vmkping = @(foreach ($ip in $VmstoreDataIp) { foreach ($size in 1472, 8972) {
        $p = $esxcli.network.diag.ping.Invoke(@{ host = $ip; interface = $NfsVmk; size = $size; df = $true; count = 3 })
        [ordered]@{ target = $ip; payload = $size; transmitted = $p.Summary.Transmitted
                    lost = $p.Summary.PacketLost; maxMs = $p.Summary.RoundtripMaxMS }
      } })
    }
  }
  Invoke-Step "$hn advanced" {
    $r.advanced = Get-AdvancedSetting -Entity $h -Name 'NFS.*', 'Misc.APD*', 'Net.TcpipHeap*' | Select-Object Name, Value
  }
  Invoke-Step "$hn events" {
    $r.events = Get-VIEvent -Entity $h -Start $since -MaxSamples 5000 |
      Where-Object { $_.FullFormattedMessage -match 'NFS|All Paths Down|APD|uplink|redundancy' -or
                     ($_.PSObject.Properties['EventTypeId'] -and $_.EventTypeId -match '^esx\.(problem|clear)\.') } |
      Select-Object CreatedTime, @{n='EventTypeId';e={$_.EventTypeId}}, FullFormattedMessage
  }
  Invoke-Step "$hn datastore-latency" {
    $r.datastoreLatency = Get-Stat -Entity $h -Realtime -Start $since -ErrorAction SilentlyContinue `
      -Stat 'datastore.totalReadLatency.average', 'datastore.totalWriteLatency.average' |
      Select-Object Timestamp, MetricId, Instance, Value, Unit
  }
  Save-Json $r "esxi-$hn"
}

foreach ($n in $VmName) {
  Invoke-Step "vm $n" {
    $vm = Get-VM -Name $n
    Save-Json (Get-Stat -Entity $vm -Realtime -Start $since `
      -Stat 'virtualDisk.totalReadLatency.average', 'virtualDisk.totalWriteLatency.average' |
      Select-Object Timestamp, MetricId, Instance, Value, Unit) "vm-$n"
  }
}

if ($SupportBundleHost) {
  Invoke-Step 'vm-support' { Get-Log -VMHost (Get-VMHost -Name $SupportBundleHost) -Bundle -DestinationPath $out | Out-Null }
}
Disconnect-VIServer -Server $VCenter -Confirm:$false

# ------------------------------------------------------------------ Tintri VMstore (REST v310)
if ($Vmstore) {
  Invoke-Step 'vmstore' {
    $base = "https://$Vmstore/api"
    $tls  = @{ SkipCertificateCheck = [bool]$SkipCertificateCheck }
    Save-Json (Invoke-RestMethod -Uri "$base/info" @tls) 'vmstore-info'
    $body = @{ typeId = 'com.tintri.api.rest.vcommon.dto.rbac.RestApiCredentials'
               username = $env:TINTRI_USER; password = $env:TINTRI_PASSWORD } | ConvertTo-Json
    Invoke-RestMethod -Method Post -Uri "$base/v310/session/login" -Body $body -ContentType 'application/json' `
                      -SessionVariable tintri @tls | Out-Null
    foreach ($ep in 'appliance/default/operationalStatus', 'appliance/default/controller',
                    'appliance/default/failedComponents', 'datastore/default/statsRealtime', 'alert') {
      Save-Json (Invoke-RestMethod -Uri "$base/v310/$ep" -WebSession $tintri @tls) ('vmstore-' + ($ep -replace '/', '-'))
    }
    $vms = Invoke-RestMethod -Uri "$base/v310/vm" -WebSession $tintri @tls
    $rows = foreach ($v in $vms.items) {
      $s = $v.stat.sortedStats | Select-Object -Last 1
      if ($s) {
        [pscustomobject]@{ vm = $v.vmware.name; totalMs = $s.latencyTotalMs; hostMs = $s.latencyHostMs
          networkMs = $s.latencyNetworkMs; storageMs = $s.latencyStorageMs; contentionMs = $s.latencyContentionMs
          throttleMs = $s.latencyThrottleMs; flashHitPct = $s.flashHitPercent; iops = $s.operationsTotalIops }
      }
    }
    Save-Json ($rows | Sort-Object -Property @{ Expression = { [double]$_.totalMs }; Descending = $true }) 'vmstore-vm-latency'
    Invoke-RestMethod -Uri "$base/v310/session/logout" -WebSession $tintri @tls | Out-Null
  }
}

# ------------------------------------------------------------------ Cisco UCS
if ($env:INTERSIGHT_KEY_ID -and (Get-Module -ListAvailable -Name Intersight.PowerShell)) {
  Invoke-Step 'intersight-alarms' {
    Import-Module Intersight.PowerShell
    $isUrl = if ($env:INTERSIGHT_URL) { $env:INTERSIGHT_URL } else { 'https://intersight.com' }
    Set-IntersightConfiguration -BasePath $isUrl -ApiKeyId $env:INTERSIGHT_KEY_ID -ApiKeyFilePath $env:INTERSIGHT_KEY_FILE
    $res = Get-IntersightCondAlarm -Filter "Severity ne 'Cleared'" -Top 1000
    $items = if ($res.PSObject.Properties['Results']) { $res.Results } else { $res }
    Save-Json ($items | Select-Object CreationTime, LastTransitionTime, Severity, Code, AffectedMoDisplayName, Description) 'intersight-alarms'
  }
}
if ($env:UCSM_HOST -and (Get-Module -ListAvailable -Name Cisco.UCSManager)) {
  Invoke-Step 'ucsm-faults' {
    Import-Module Cisco.UCSManager
    $ucs = Connect-Ucs -Name $env:UCSM_HOST -Credential (New-Cred $env:UCSM_USER $env:UCSM_PASSWORD)
    Save-Json (Get-UcsFault -Ucs $ucs | Select-Object Created, LastTransition, Severity, Code, Dn, Descr) 'ucsm-faults'
    Disconnect-Ucs -Ucs $ucs | Out-Null
  }
}

# ------------------------------------------------------------------ seal the bundle
Stop-Transcript | Out-Null
Get-ChildItem -Path $out -File -Recurse | Get-FileHash -Algorithm SHA256 |
  ForEach-Object { "{0}  {1}" -f $_.Hash.ToLower(), (Resolve-Path -Relative -Path $_.Path -RelativeBasePath $out) } |
  Set-Content -Path (Join-Path $out 'SHA256SUMS') -Encoding utf8
Compress-Archive -Path $out -DestinationPath "$out.zip" -Force
Write-Host "Evidence bundle: $out.zip"

Three notes on the script. Realtime performance data in vCenter covers roughly the last hour, so collect while the problem is fresh or the per-host datastore latency comes back empty. Resolve-Path -RelativeBasePath needs PowerShell 7.4; on 7.2 replace that expression with the file name. And the Intersight and UCS Manager sections only run when their module and credentials are present, so the same script works for an IMM domain, a UCSM domain, or neither. Run Get-Help Get-IntersightCondAlarm once to confirm the property names your module version returns.

#!/usr/bin/env bash
# collect-fabric.sh: read-only Nexus, ESXi shell and VMstore evidence with UTC timestamps.
# Needs: ssh (key-based, read-only roles), curl, jq. Secrets: TINTRI_USER, TINTRI_PASSWORD.
set -uo pipefail

NEXUS_SWITCHES="${NEXUS_SWITCHES:-<NEXUS_A_FQDN> <NEXUS_B_FQDN>}"
NEXUS_USER="${NEXUS_USER:-<NEXUS_RO_USER>}"
NEXUS_IFACES="${NEXUS_IFACES:-<PHYSICAL_PORTS_TO_FIS e.g. Ethernet1/1 Ethernet1/2>}"
NEXUS_VPC_IDS="${NEXUS_VPC_IDS:-<VPC_IDS_TO_FIS e.g. 11 12>}"
ESXI_HOSTS="${ESXI_HOSTS:-}"          # optional: SSH enabled only for the incident
ESXI_USER="${ESXI_USER:-root}"
VMSTORE="${VMSTORE:-}"                # optional: VMstore admin FQDN
TINTRI_CA="${TINTRI_CA:-}"            # optional: PEM bundle for the VMstore certificate

STAMP=$(date -u +%Y%m%dT%H%M%SZ)
OUT="${OUT_ROOT:-./evidence}/fabric-$STAMP"
mkdir -p "$OUT"
SSH=(ssh -o BatchMode=yes -o ConnectTimeout=10)

run() {   # run <outfile> <command...>: append a UTC-stamped header and the output
  local f="$OUT/$1"; shift
  { printf '### %s  %s\n' "$(date -u +%FT%TZ)" "$*"; "$@" 2>&1; printf '\n'; } >> "$f"
}

# ---------------------------------------------------------------- Nexus 9000
for sw in $NEXUS_SWITCHES; do
  f="nexus-${sw%%.*}.txt"
  for c in "show clock" "show version" "show vpc brief" "show vpc consistency-parameters global" \
           "show interface counters errors" "show interface status" \
           "show running-config all | include jumbomtu" "show interface priority-flow-control" \
           "show logging last 200"; do
    run "$f" "${SSH[@]}" "$NEXUS_USER@$sw" "$c"
  done
  for v in $NEXUS_VPC_IDS; do run "$f" "${SSH[@]}" "$NEXUS_USER@$sw" "show vpc consistency-parameters vpc $v"; done
  for i in $NEXUS_IFACES; do
    run "$f" "${SSH[@]}" "$NEXUS_USER@$sw" "show interface $i"
    run "$f" "${SSH[@]}" "$NEXUS_USER@$sw" "show queuing interface $i"
  done
  sleep 60   # second read of the error counters, one minute later
  run "$f" "${SSH[@]}" "$NEXUS_USER@$sw" "show interface counters errors"
done

# ---------------------------------------------------------------- ESXi shell (optional)
for h in $ESXI_HOSTS; do
  f="esxi-${h%%.*}.txt"
  run "$f" "${SSH[@]}" "$ESXI_USER@$h" "date -u; esxcli storage nfs list; esxcli network ip interface list; esxcli network nic list"
  run "$f" "${SSH[@]}" "$ESXI_USER@$h" "grep -h -E 'NFS|APD' /var/run/log/vmkernel.log | tail -n 300"
  run "$f" "${SSH[@]}" "$ESXI_USER@$h" "grep -h -i -E 'nfs|apd' /var/run/log/vobd.log | tail -n 200"
  "${SSH[@]}" "$ESXI_USER@$h" "esxtop -b -a -d 5 -n 12" > "$OUT/esxtop-${h%%.*}.csv" 2>/dev/null
done

# ---------------------------------------------------------------- Tintri VMstore (REST v310)
if [ -n "$VMSTORE" ]; then
  JAR=$(mktemp)
  CURL=(curl -sS --max-time 60 -b "$JAR" -c "$JAR")
  [ -n "$TINTRI_CA" ] && CURL+=(--cacert "$TINTRI_CA")
  "${CURL[@]}" "https://$VMSTORE/api/info" > "$OUT/vmstore-info.json"
  jq -n --arg u "$TINTRI_USER" --arg p "$TINTRI_PASSWORD" \
     '{typeId:"com.tintri.api.rest.vcommon.dto.rbac.RestApiCredentials", username:$u, password:$p}' |
    "${CURL[@]}" -H 'Content-Type: application/json' -X POST --data @- \
    "https://$VMSTORE/api/v310/session/login" > /dev/null
  for ep in appliance/default/operationalStatus appliance/default/controller \
            appliance/default/failedComponents datastore/default/statsRealtime alert vm; do
    "${CURL[@]}" "https://$VMSTORE/api/v310/$ep" > "$OUT/vmstore-${ep//\//-}.json"
  done
  "${CURL[@]}" "https://$VMSTORE/api/v310/session/logout" > /dev/null
  rm -f "$JAR"
fi

# ---------------------------------------------------------------- Fabric Interconnect command sheet
cat > "$OUT/fi-commands-to-paste.txt" <<'SHEET'
# Paste on FI-A, then FI-B, with terminal session logging on. Read-only.
# Save the logs into this directory as fi-a.txt and fi-b.txt.
connect nxos            (UCSM: connect nxos a | connect nxos b)
show clock
show interface counters errors
show interface brief | include Veth
show pinning border-interfaces
show interface <FI_UPLINK_PORT_CHANNEL>
show interface <FI_APPLIANCE_PORT>
show logging last 200
exit
# UCSM only, from the top-level prompt:
show fault
SHEET

# ---------------------------------------------------------------- seal the bundle
( cd "$OUT" && { if command -v sha256sum >/dev/null; then sha256sum -- *; else shasum -a 256 -- *; fi; } > "../.sha-$STAMP" && mv "../.sha-$STAMP" SHA256SUMS )
tar -czf "$OUT.tar.gz" -C "$(dirname "$OUT")" "$(basename "$OUT")"
echo "Evidence bundle: $OUT.tar.gz"

Give the Nexus account a read-only role (network-operator) and the ESXi account only what the shell commands need, and turn SSH back off on the hosts when you are done. NX-OS accepts a single command per SSH exec, which is why the script opens one session per command; it is slower than a scripted interactive session and much easier to trust.

11. Severity and escalation: what to send to whom

Use your organisation’s severity definitions; the table below maps typical ones to this stack. The rule that saves the most time: at Severity 1, open cases with every vendor whose layer you have not yet cleared, in parallel, and put each vendor’s case number in the others’ cases. At Severity 3, open one case with the vendor the evidence points to.

SeverityExample on this stackOpen withTiming
1: production downDatastore inaccessible on every host, APD timeout, VMs down; VMstore file system downTintri and Broadcom in parallel; Cisco in parallel if any fabric fault or counter movedImmediately, by phone where the vendor requires it. Cisco has historically required S1 and S2 cases to be opened by phone; check Cisco’s current TAC guidance
2: severe degradationAPD on some hosts, sustained high latency on many VMs, one fabric down, replication stoppedThe vendor whose layer the decision tree points to; a second vendor if the first layer clearsWithin the hour, with the evidence bundle attached
3: limited impactOne slow VM, intermittent spikes, a single host that differs, replication behind but catching upOne vendor, chosen from the evidenceBusiness hours
4: question or planned workCompatibility question, upgrade planning, documentationThe vendor that owns the matrix in questionNormal case
VendorSend thisFrom
Broadcom (vSphere, VCF)vm-support bundle from at least one affected and one healthy host; vCenter support bundle if vCenter misbehaved; the window in UTC; the vobd and vmkernel lines; the esxi-*.json filesGet-Log -Bundle (the script’s -SupportBundleHost), vCenter’s support bundle export, the evidence bundle
Cisco TAC (UCS)UCS tech-support files for the FIs and the affected chassis and servers (UCS Manager or Intersight), the FI command sheet output, VIC and IOM counters, the alarm or fault list, server and FI firmware versionsUCS Manager or Intersight tech support collection, fi-a.txt and fi-b.txt, intersight-alarms.json or ucsm-faults.json
Cisco TAC (Nexus)show tech-support vpc and show tech-support details from both peers if vPC or interfaces are involved, plus the nexus-*.txt capturesThe switches, then the evidence bundle
Tintri supportThe VMstore support bundle generated per the current Tintri administration guide, affected VM names, the window in UTC, the latency breakdown (UI screenshot or vmstore-vm-latency.json), controller and alert state, replication path and backlogVMstore UI, the vmstore-*.json files

Every case should state, in the first paragraph, the window in UTC, the scope (how many hosts, which datastores, which chassis), what you have already ruled out with which evidence, and the case numbers you have open with the other vendors. That paragraph is what stops a vendor from asking you to collect what you already sent.

12. End-to-end workflow

Set this up once before you need it, then follow it on every incident. Each step has a verification and the output you should expect.

  1. Stage the tooling on a jump host. Install PowerShell 7, PowerCLI, and the Intersight or UCS Manager module you need. Verify: Get-Module -ListAvailable VMware.PowerCLI, VCF.PowerCLI, Intersight.PowerShell, Cisco.UCSManager | Select Name, Version lists what you installed.
  2. Create read-only accounts. A vCenter read-only role, a VMstore read-only user, an Intersight API key with a read-only role, a Nexus network-operator user with an SSH key. Verify: ssh -o BatchMode=yes <NEXUS_RO_USER>@<NEXUS_A_FQDN> "show clock" returns the time without a password prompt.
  3. Dry-run the collectors on a quiet day. Run both scripts against production with nothing wrong. Verify: the bundle has one esxi-*.json per host, errors.txt is absent or empty, and every vmkping row shows lost: 0 for both 1472 and 8972 if you use jumbo frames.
  4. Keep the dry run as the baseline. Store it with the date. Verify: you can answer “what is the normal largest latency component for our top ten VMs” from vmstore-vm-latency.json without looking at the UI.
  5. On an incident, pin window and scope. Verify: you can write one sentence of the form “from 09:12 to 09:40 UTC, 6 of 16 hosts in chassis 2, datastore ds-tintri-01”.
  6. Collect. Run both scripts with the window. Verify: the clocks in the esxi-*.json files are within a few seconds of the collector’s time, and the Nexus file contains two reads of show interface counters errors a minute apart.
  7. Route with the decision tree. Verify: you can name the layer and the evidence that sends you there, for example “network component of the VMstore breakdown tripled; FI-A uplink CRC rising”.
  8. Escalate with the bundle. Verify: each case has the window, scope, ruled-out list and cross-referenced case numbers in its first paragraph.
  9. Close the loop. After the fix, rerun the collectors. Verify: the counters that moved during the incident are flat between two reads, the vmkping matrix is clean on every path you can exercise, and the VMstore breakdown is back to the baseline shape.

13. When the runbook itself misleads you

SymptomLikely causeCheckFix
Every team’s numbers look fine but the VM is slowComparing numbers measured over different spans or windowsLine them up on the I/O path diagram and on UTCStart again from the VMstore breakdown for that VM in the exact window
Jumbo vmkping passes but large I/O still stallsYou tested the in-fabric path; the black hole is on the northbound or other-fabric pathWhich fabric and which VMstore data port were active during the testRepeat the test during a planned failover of each path
Counters are huge on every portReading lifetime totalsTwo reads a known interval apartAct on deltas only; clear counters only after the evidence is saved, and note when you did
vCenter per-host datastore latency comes back emptyRealtime stats only cover about an hour, or the window is olderGet-Stat -Realtime returns nothing for the windowCollect sooner; for older windows use the 5-minute historical rollup or your OTel pipeline
VMstore latency fields are nullDifferent field names or sample ordering on your TxOS build, or the VM is not registered through vCenterDump one VM object; check vmware.name is populatedAdjust field names; register vCenter on the VMstore as described in part 3
Login to the VMstore API returns 404The build expects a fully qualified API versionGET /api/infoUse the version string it reports
No APD alarm in vCenter during a real outagevCenter was on the datastore that failedWas vCenter’s VM on the affected datastore?Alert from ESXi syslog instead (see the APD post)
Nexus counters move but storage traffic should never reach the NexusA failure already pushed NFS northbound: VMstore data port A link down, or a fabric A IOM failure in that chassisVMstore data port state; IOM and Veth state for the affected hostsFix the underlying link or IOM; the Nexus symptoms go away with it
The evidence script stops halfwayOne host disconnected or one API unreachableerrors.txt in the bundleEach step is isolated; rerun after fixing access, and keep the partial bundle

14. What’s next

A runbook is only fast when the data is already flowing before the incident. Part 6 covers day-2 operations: upgrade order with compatibility gating, firmware, driver and TxOS lifecycle, monitoring the whole stack, DR with VMstore replication and VMware Live Site Recovery, and a monthly checklist. For continuous signals instead of incident snapshots, see measuring NFS datastore latency with OpenTelemetry, catching NFS APD before vCenter does and the OpenTelemetry for vSphere admins series. For the same four-layer method applied to stateful containers, read stateful OpenShift on Tintri NFS, Cisco UCS and vSphere, and for a daily view across every VMstore, the Tintri fleet sweep.

Sources for the vendor-specific values in this post: Broadcom KBs 335047, 427727, 323325, 381569, 2032940, 341361, 406100, 400097, 306596, 308552, 313061, 1003728, 343871, 341594 and 418667; Cisco documents 215449 (UCS CRC and drop troubleshooting), 217561 (IMM network troubleshooting), 118994 (Nexus MTU) and 217989 (vPC inconsistencies); Tintri’s VMstore with VMware Best Practices Guide (rev 3.1, 2019), Cisco UCS Deployment and Best Practice Guide (rev 1.1, 2016) and the public v310 REST API reference in the Tintri Python SDK. The Tintri guides predate Intersight Managed Mode and current TxOS releases; check the current Tintri documentation for your TxOS version before changing anything on a VMstore.

Leave a Reply