On GPUs, nvidia-smi and gpustat give a quick look at what each device is doing. These are the same two tools for Cloud TPUs. Both install with pip.
google-smi
google-smi is a status table in the style of nvidia-smi. For each TPU device on the VM it shows HBM usage, TPU utilization, PCIe, NUMA and IOMMU context, and which processes are using it.
pip install google-smi
google-smi
tpustat
tpustat does for google-smi what gpustat does for nvidia-smi: it turns the verbose table into a compact view with one line per device. It also supports JSON output, a watch mode and richer process details, and it reads from the google_smi Python package or falls back to google-smi --json.
pip install tpustat
tpustat -i # refresh continuously
tpustat --json # machine-readable output