本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
查看 NICE DCV 会话
Windows NICE DCV 服务器上的管理员或 Linux NICE DCV 服务器上的根用户可以查看服务器上运行的所有活动会话。NICE DCV 用户只能查看他们创建的会话。
列出所有活动会话
要列出 Windows 或 Linux NICE DCV 服务器上的活动控制台会话或虚拟会话,请使用 dcv list-sessions
命令。
语法
dcv list-sessions
输出
该命令使用以下格式返回活动会话列表。
Session:
session-id
(owner:session-owner
type:virtual|console
name:'my session
')
查看有关特定会话的信息
要查看有关会话的信息,请使用 dcv describe-session
命令并指定唯一的会话 ID。
语法
$
dcv describe-sessionsession_id
输出
在以下示例输出中,display-layout
元素指示会话的显示布局设置为使用两个 800x600 屏幕。其中的第二个屏幕从第一个屏幕偏移 x=800(向右)。
Session: test
owner: session-id
name: session-name
x display: :1
x authority: /run/user/1009/dcv/test.xauth
display layout: 800x600+0+0,800x600+800+0
您还可以包含 --json
(或 -j
)选项,以强制命令以 JSON 格式返回输出。JSON 输出提供了有关会话的其他详细信息。
$
dcv describe-sessionsession-id
--json
以下是示例 JSON 输出。
{
"id" : "session-id
",
"owner" : "dcvuser",
"name" : "session-name
",
"num-of-connections" : 0,
"creation-time" : "2020-03-02T16:08:50Z",
"last-disconnection-time" : "",
"licenses" : [
{
"product" : "dcv",
"status" : "licensed",
"check-timestamp" : "2020-03-02T16:08:50Z",
"expiration-date" : "2020-03-29T00:00:00Z"
},
{
"product" : "dcv-gl",
"status" : "licensed",
"check-timestamp" : "2020-03-02T16:08:50Z",
"expiration-date" : "2020-03-29T00:00:00Z"
}
],
"storage-root" : "",
"type" : "virtual",
"x11-display" : ":2",
"x11-authority" : "/run/user/1009/dcv/vsession.xauth",
"display-layout" : [
{
"width" : 800,
"height" : 600,
"x" : 0,
"y" : 0
},
{
"width" : 800,
"height" : 600,
"x" : 800,
"y" : 0
}
]
}