getconnectioncount RPC returns the number of connections to other nodes.
Result—the number of connections to other nodes
|The total number of connections to other nodes (both inbound and outbound)|
pai-cli -testnet getconnectioncount
GetNetTotals: returns information about network traffic, including bytes in, bytes out, and the current time.
GetPeerInfo: returns data about each connected network node.
GetNetworkInfo: returns information about the node’s connection to the network.