Displaying Connection Statistics


You can view the statistical data collected while connected to a host by using the command:


CLI (network-admin@switch1) > connection-stats-show

connection-stats-show

Display connection statistics while connected to a host.

time date/time: yyyy-mm-ddThh:mm:ss

Specify a time to start statistics collection.

start-time date/time: yyyy-mm-ddThh:mm:ss

Specify the start-time for statistics collection.

end-time date/time: yyyy-mm-ddThh:mm:ss

Specify the end-time  for statistics collection.

duration: #d#h#m#s

Specify the duration of statistics collection.

interval duration: #d#h#m#s

Specify the interval between statistics collection.

since-start

Displays statistics from the start of collection.

older-than duration: #d#h#m#s

Displays statistics older than a specified duration.

within-last duration: #d#h#m#s

Displays statistics within the last specified duration.

count count-number 

Specify a count for connection statistics

mac mac-address

Specify the MAC address of connections

vnet vnet-name 

Specify the vNET of connections

vlan vlan_id

Specify the VLAN of connections.

ip ip-address

Specify the IP address of connections.

port port-number

Specify the port number of connections.

iconns iconns-number

Specify the number of incoming connections.

oconns oconns-number

Specify the number outgoing connections.

obytes

Specify the number of bytes sent from the client side of the connection.

ibytes

Specify the number of bytes received by the client side of the connection.

total-bytes total-bytes-number

Specify the total number of bytes for the connection.

first-seen date/time: yyyy-mm-ddThh:mm:ss

Specify the time at which an entry was first seen.

last-seen date/time: yyyy-mm-ddThh:mm:ss

Specify the time at which an entry was last seen.

last-seen-ago duration: #d#h#m#s

Specify the duration since the statistics was last seen.


To clear connection statistics that was collected while connected to a host, use the command:


CLI (network-admin@switch1) > connection-stats-clear


To clear the history of connection statistics that was collected while connected to a host, use the command:


CLI (network-admin@switch1) > connection-stats-clear-history


To modify statistics collection settings, use the command connection-stats-settings-modify.


CLI (network-admin@switch1) > connection-stats-settings-modify

connection-stats-settings-modify

Modify connection statistics settings.

enable|disable

Enable or disable collecting connection statistics.

connection-max-memory connection-max-memory-number

Specify the maximum memory allowed for connection statistics.

connection-backup-enable|connection-backup-disable

Enable or disable backup for connection statistics collection. This option is disabled by default.

connection-backup-interval duration: #d#h#m#s

Specify backup interval for connection statistics collection.

client-server-stats-max-memory client-server-stats-max-memory-numbe

Specify maximum memory for client server statistics.

client-server-stats-log-enable|client-server-stats-log-disable

Enable or disable client server statistics logging. This option is disabled by default.

client-server-stats-log-interval duration: #d#h#m#s

Specify the client server statistics logging interval.

client-server-stats-log-disk-space disk-space-number

Specify the disk-space allocated for client server statistics logging.

connection-stats-max-memory connection-stats-max-memory-number

Specify the maximum memory allowed for connection statistics.

connection-stats-log-enable|connection-stats-log-disable

Enable or disable connection statistics logging. This option is disabled by default.

connection-stats-log-interval duration: #d#h#m#s

Specify the connection statistics logging interval.

connection-stats-log-disk-space disk-space-number

Specify the disk-space allocated for connection statistics logging.

service-stat-max-memory service-stat-max-memory-number

Specify the maximum memory allowed for service statistics.

fabric-connection-max-memory fabric-connection-max-memory-number 

Specify the maximum memory allowed for fabric connection statistics.

fabric-connection-backup-enable|fabric-connection-backup-disable

Enable or disable backup for fabric connection statistics collection. This option is disabled by default.

fabric-connection-backup-interval duration: #d#h#m#s

Specify the backup interval for fabric connection statistics collection.


In Netvisor ONE version 6.0.1, the logging of connection statistics to disk is disabled by default. Specifically, the options below under the command connection-stats-settings-modify are disabled by default.

connection-backup-enable|connection-backup-disable

client-server-stats-log-enable|client-server-stats-log-disable

fabric-connection-backup-enable|fabric-connection-backup-disable

connection-stats-log-enable|connection-stats-log-disable

You can, however, enable any of the options above for a limited duration. For example:

CLI (network-admin@switch1) > connection-stats-settings-modify connection-stats-log-enable


Note: Pluribus recommends disabling connection statistics to minimize disk usage during normal operations.


To view the connection statistics settings, use the command connection-stats-settings-show:


CLI (network-admin@switch1) > connection-stats-settings-show

switch:                                   switch1

enable:                                   yes

connection-max-memory:                    50M

connection-max-count:                     52012

connection-current-count:                 28482

connection-backup-enable:                 no

connection-backup-interval:               1m

connection-backup-used-disk-space:        5.54M

client-server-stats-max-memory:           50M

client-server-stats-max-cnt:              71234

client-server-stats-cur-cnt:              132

client-server-stats-log-enable:           no

client-server-stats-log-interval:         1m

client-server-stats-log-disk-space:       50M

connection-stats-max-memory:              50M

connection-stats-max-cnt:                 82956

connection-stats-cur-cnt:                 108

connection-stats-log-enable:              yes

connection-stats-log-interval:            1m

connection-stats-log-disk-space:          50M

service-stat-max-memory:                  1M

service-stat-max-cnt:                     4681

service-stat-cur-cnt:                     0

fabric-connection-max-memory:             10M

fabric-connection-max-count:              8090

fabric-connection-current-count:          7234

fabric-connection-backup-enable:          no

fabric-connection-backup-interval:        1m

fabric-connection-backup-used-disk-space: 1.46


In this example, the software has enabled connection statistics logging for a duration of 1m.


north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south