# pptadm list -?
Usage:
pptadm list [ -j ]
pptadm list [-ap] [-o fields]
# pptadm list -a -j
{
"devices": [
{"dev":"/dev/ppt0","path":"/pci@0,0/pci8086,6f0a@3,2/pci15d9,1528@0,1","vendor-id":"8086","device-id":"1528","subsystem-vendor-id":"15d9","subsystem-id":"1528","revision-id":"1","label":"Intel Corporation Ethernet Controller 10-Gigabit X540-AT2"},
{"path":"/pci@0,0/pci8086,7270@1d","vendor-id":"8086","device-id":"8d26","subsystem-vendor-id":"8086","subsystem-id":"7270","revision-id":"5","label":"Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #1"}
]
}
[root@lava ~]# pptadm list -o all
DEV VENDOR DEVICE SUBVENDOR SUBDEVICE REV PATH LABEL
/dev/ppt0 8086 1528 15d9 1528 1 /pci@0,0/pci8086,6f0a@3,2/pci15d9,1528@0,1 Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
[root@lava ~]# pptadm list -o all -a
DEV VENDOR DEVICE SUBVENDOR SUBDEVICE REV PATH LABEL
/dev/ppt0 8086 1528 15d9 1528 1 /pci@0,0/pci8086,6f0a@3,2/pci15d9,1528@0,1 Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
-- 8086 8d26 8086 7270 5 /pci@0,0/pci8086,7270@1d Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #1
Last active
April 12, 2018 03:54
-
-
Save jlevon/1b8413b933c806d865f6e32ddf671728 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wonder if it would be possible to use
_
instead of-
since that's more JSON friendly?Specifically with node you could do:
but with the
-
you'd need to do:otherwise I think this looks good!