Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FleXoft/0c2780de9e76b754773778bb6240cde7 to your computer and use it in GitHub Desktop.
Save FleXoft/0c2780de9e76b754773778bb6240cde7 to your computer and use it in GitHub Desktop.
Listing physical and virtual FC adapters and their WWNs on the server as root (lists only the adapters for that server):
lsdev -S a -Cc adapter | grep '^fcs' | awk '{print $1}' | while read name; do lscfg -vl ${name} | grep -E "${name}|Network Address"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment