sriovmng 0.1.0

Creator: bradpython12

Last updated:

0 purchases

sriovmng 0.1.0 Image
sriovmng 0.1.0 Images

Languages

Categories

Add to Cart

Description:

sriovmng 0.1.0

# sriovmng## Aboutsriovmng is a tiny tool to make management of SR-IOV based devices a littleeasier for those who have a hard time to remember all the necessary paths andfile name in the sysfs filesystem.## Usage### List PF devices```sriovmng.pylistp2p1p2p2p5p1p5p2```### Show details about PF devices```sriovmng.pyshowp2p1device:0x10fbsriovnumvfs:7vendor:0x8086vfs:0000:05:10.00000:05:10.20000:05:10.40000:05:10.60000:05:11.00000:05:11.20000:05:11.4pciaddr:0000:05:00.0``` * *device*, *vendor*: these are device and vendor IDs * *sriov_numvfs*: displays current number of VFs for this devices * *vfs*: PCI addresses of the VFs on this device * *pci_addr*: PCI address of the device itself### Getting interface name by PCI address```sriovmng.pypciaddrtoifname0000:05:10.20000:05:10.2:p2p11 sriovmng.py pci_addr_to_ifname 0000:05:00.00000:05:00.0: p2p1You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode sriovmng.py ifname_to_pci_addr p2p1p2p1: 0000:05:00.0sriovmng.pyifnametopciaddrp2p11p2p11:0000:05:10.2```### Setting number of VFs on a PF device```# sriovmng.py numvfs p2p1 0#```Note: root access is required to perform this operation.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.