Open aimin-tang opened 6 years ago
Could you solve this issue?
True for me as well, could you please share, if it was solved?
I've spotted, that the mirror session actually works after you go vSphere client, click edit
on this session and immediately save. However, it's not a solution for sure
To however reads this after me: I think I've managed to solve it - when I did that edit-save
thing, vSphere set value of parameter mirroredPacketLength
to -1
, even though documentation tells that value must not be less than 60. I did the same in my script, and the mirror session works perfectly now.
TL;DR: add mirroredPacketLength=-1
to the list of mirror session creation arguments
Can someone point me to the sample script to configure a port mirroring session? I can manually configure a session and it works. With the pyVmomi script below, I can create a session that appears on vsphere client just like the manual entry, but it does not work! In addition, I cannot find a proper way to remove it.
creates a session but doesn't seem to work:
exception when trying to remove it:
I appreciate the help!