cheronobyl

report_iommu.sh

Dec 30th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Motherboard Information"
  3. lshw | grep -A10 "description: Motherboard" | sed -e 's/^[ \t]*//' | sed '/^\*/d' | tail -n +1
  4. echo -e "\nProcessor Information"
  5. lshw | grep -A1 "description: CPU" | sed -e 's/^[ \t]*//' | tail -n -1
  6. echo -e "\nKernel Information"
  7. uname -sr
  8. echo -e "\nIOMMU groups"
  9. shopt -s nullglob
  10. for d in /sys/kernel/iommu_groups/*/devices/*; do
  11. n=${d#*/iommu_groups/*}; n=${n%%/*}
  12. printf 'IOMMU Group %s ' "$n"
  13. lspci -nns "${d##*/}"
  14. done;
Advertisement
Add Comment
Please, Sign In to add comment