如何获取消息 VPN 中用户名的客户端数量

how to get number of clients for a username in a message VPN

升级到 Sol 后OS 9.4

/SEMP/v2/monitor/msgVpns/vpn-xxx/clientUsernames

输出为

        "aclProfileName":"",
        "clientProfileName":"",
        "clientUsername":"",
        "dynamic":false,
        "enabled":true,
        "guaranteedEndpointPermissionOverrideEnabled":false,
        "msgVpnName":"vpn-xxx",
        "subscriptionManagerEnabled":false

早于 9.0 OS numClient 正在响应,9.4 中不会出现

        "aclProfileName":"",
        "authorizationGroup":"",
        "clientProfileName":"",
        "clientUsername":"",
        "clientUsernameDeniedLoginClientUsernameShutdown":0,
        "dynamicallyConfigured":false,
        "enabled":true,
        "guaranteedEndpointPermissionOverrideEnabled":false,
        "maxConnections":200000,
        "maxConnectionsServiceSmf":30000,
        "maxConnectionsServiceWeb":200000,
        "maxEndpoints":16000,
        "msgVpnName":"vpn-xxx",
        **"numClients":0,
        "numClientsServiceSmf":0,
        "numClientsServiceWeb":0,
        "numEndpoints":37,**
        "passwordConfigured":true,
        "subscriptionManagerEnabled":false

在 SolOS 9.0 中,监视器 API (SEMP/v2/monitor/...) 尚未发布。从 9.0 引用的输出是未记录的私有 API 的一部分,它不受支持并且可能会更改。这就是升级到 SolOS 9.4 时这些字段不再可用的原因。

在 SolOS 9.4 中,可以使用旧版 SEMP 获取此信息。