back

/getLastSession

Get the last capture session's configuration.

{
    "command": "/getLastSession",
    "command_result": {
        "sessions": [
            {
                "end_ts": 1557910397,
                "interfaces": [
                    {
                        "id": 0,
                        "mac": "30:9C:23:3F:58:54",
                        "name": "Ethernet"
                    }
                ],
                "profisharks": [
                    {
                        "capture_root_folder": "C:\\Users\\Heinrich Potgieter\\\\Documents\\Profisight\\captures/profishark_00_f7_2019-05-15\\captures/profishark_00_f7_2019-05-15",
                        "capture_time": 10,
                        "file_size": 4194304,
                        "friendly_name": "profishark_00_f7",
                        "mac": "00:1e:c0:93:aa:f7",
                        "max_nr_files": 0,
                        "model": "ProfiShark 1G+ GPS",
                        "model_id": 9,
                        "keep_files": true,
                        "loop_capture": 0
                    }
                ],
                "running": false,
                "start_ts": 1557910389,
                "timezone": "N/A",
                "user_name": "",
                "user_permissions": "",
                "uuid": ""
            }
        ]
    },
    "errors": false,
    "general_message": "No session is running"
}