A and C are both correct , but C is more specific for NSX-T environment, than A that is a general KVM command:
https://vdc-download.vmware.com/vmwb-repository/dcr-public/46158b4f-e75f-49a6-8014-056750afa658/a944ad7a-6043-41d7-91a2-99f602996c77/NSX-T%20Command-Line%20Interface%20Reference.html#set%20capture%20session%20%3Csession-number%3E%20[file%20%3Cfilename%3E]%20[count%20%3Cpacket-count%3E]%20[expression%20%3Cexpression%3E]
https://www.simongreaves.co.uk/nsx-t-cli-reference-guide/
I am pretty sure those guys who answered on original exam already well thought out. They answer Correct one and no additional input are need unless very helpful one.
Set capture is an answer
To run the packet capture using this configuration, use the set capture session <session-number> [file <filename>] [count <packet-count>] [expression <expression>] command.
Usage and Example
kvm-1> set capture session 1 interface b592a7c8-4e21-493e-b0fc-0b1d152c949c direction both
kvm-1> get capture session 1
Packet Capture Session
ID : 1
PORTS : ['b592a7c8-4e21-493e-b0fc-0b1d152c949c']
Mode
Basic
Availability
KVM
Ref: https://vdc-download.vmware.com/vmwb-repository/dcr-public/46158b4f-e75f-49a6-8014-056750afa658/a944ad7a-6043-41d7-91a2-99f602996c77/NSX-T%20Command-Line%20Interface%20Reference.html#set%20capture%20session%20%3Csession-number%3E
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
_MiDa_
3 years, 10 months agoHMaw
4 years, 8 months agolabi
4 years, 7 months agoBerni
4 years, 11 months agoerbfourie
4 years, 11 months ago