This function returns data about the system's transmission control protocol (TCP) IPv4 sockets.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ get_tcp4_sockets
{- "data": {
- "payload": [
- {
- "dport": 443,
- "dst": "10.0.0.2",
- "inode": 27171,
- "rqueue": 0,
- "sport": 2087,
- "src": "10.0.0.1",
- "state": 10,
- "uid": 102,
- "wqueue": 45
}
]
}, - "metadata": {
- "command": "get_tcp4_sockets",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}