TrueNAS Documentation Archive
This content follows the TrueNAS 23.10 (Cobia) releases. Archival documentation is provided for reference only and not actively maintained. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.
Sessions
5 minute read.
Last Modified 2024-03-19 08:38 EDTThe SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
The sessions namespace has seven commands and is based on functions found in the SCALE API and web UI. It provides access to session information through the seven sessions commands.
You can enter commands from the main CLI prompt or the auth namespace prompt.
The sessions
command returns a table that displays each session id, whether or not each session is current and internal, each session origin, and the credentials and credential data used to log into each session.
The id
command displays the IDs of all TrueNAS sessions since boot.
The current
command displays whether or not the TrueNAS sessions in the sessions
list are current.
The internal
command displays whether sessions in the sessions
list are internally created (via the web UI) or not (via SSH).
The origin
command displays the login origin of the sessions in the sessions
list.
The credentials
command displays the credentials used to authenticate each session in the sessions
list.
The created_at
command displays the creation date and time of the sessions in the sessions
list.