Usage
python./set_vm_ptp_privilege.py <cmd> <server fully qualified hostname> <Local master virtual machine>
where <cmd>
can be info
or set-master
.
Example
# python ./set_vm_ptp_privilege.py info mserv1.domain.com vm-ptp
Connecting to mserv1.domain.com ...
username: root
password:
mserv1.domain.com
Solarflare NICs
id: 0000:81:00.0 deviceId: 0x0a03 (SFC9220)
id: 0000:81:00.1 deviceId: 0x0a03 (SFC9220)
id: 0000:81:00.2 deviceId: 0x1a03 (<class> Ethernet controller)
id: 0000:81:00.3 deviceId: 0x1a03 (<class> Ethernet controller)
[vm-ptp]
power: on
sriov ethernet devices:
SR-IOV network adapter 1 (pt-ptp)
pf: Automatic-0000:81:00.0
vf: 0000:81:00.2
Adapter deviceId
- 0x1a03 VF on SFN7000 or SFN8000 series adapter.
- 0x1b03 VF on X2 series adapter.
- 0x0a03 PF on SFN7000 or SFN8000 series adapter.
- 0x0b03 PF on X2 series adapter.