If you need to get the network statistics via SSH on a VM nic, run the commands below.
- 'esxcli network vm list' to get VM ID.
- 'esxcli network vm port list -w <VM ID>' to get port ID number.
- 'esxcli network port stats get -p <port ID number>' to get network statistics.
Output:Packet statistics for port 50332931Packets received: 293182742829Packets sent: 90336672427Bytes received: 305397539251Bytes sent: 11805570153Broadcast packets received: 135893129Broadcast packets sent: 813717Multicast packets received: 386654045Multicast packets sent: 334554Unicast packets received: 292660195655Unicast packets sent: 90335524156Receive packets dropped: 0Transmit packets dropped: 0
No comments:
Post a Comment
Thank you for your comment.