簡介
本檔案介紹檢查Cisco Unified Intelligence Center(CUIC)伺服器中當前登入使用者數量的過程。
背景資訊
運行CUIC伺服器時,需要確保當前登入到集群中任何報告節點的使用者數不超過限制。對於Unified Intelligence Server 11.0版,限製為每節點200個使用者。如果有更多使用者登入到特定節點,則可能會導致效能問題。
問題範例
具有登入名ccmadmin的使用者使用CUIC報告頁籤關閉了瀏覽器,但未正確註銷。您在輸出中看到兩個(重複)會話。此外,當前登入的報告使用者數量也不正確。
admin:utils cuic session list
Command executed successfully
Session ID details saved to file.
To view file, type "file view activelog cuic-session.out"
To SFTP file, type "file get activelog cuic-session.out"
admin:file view activelog cuic-session.out
User: CUIC\ccmadmin - Last Session Time: 13/Feb/2017 13:47:09 - SessionID: E819B0F5114A4A62778CB08C01BAB0F1
User: CUIC\ccmadmin - Last Session Time: 13/Feb/2017 15:04:38 - SessionID: E6AC6567352C245C8061E693BE1DC760
User: ADMINISTRATOR\cuicu1 - Last Session Time: 13/Feb/2017 15:21:17 - SessionID: 4EC191A25D946E5C7BF75AE2E79E0B72
end of the file reached
options: q=quit, n=next, p=prev, b=begin, e=end (lines 1 - 3 of 3) :
admin:show perf query counter ReportingEngineInfo ReportsUsersLoggedin
- Perf class ReportingEngineInfo(ReportsUsersLoggedin) has values:
-> ReportsUsersLoggedin = 3
驗證
若要檢查使用者數量,可以使用以下CUIC指令行介面(CLI)指令:
admin:show perf query counter ReportingEngineInfo ReportsUsersLoggedin
- Perf class ReportingEngineInfo(ReportsUsersLoggedin) has values:
-> ReportsUsersLoggedin = 2
另一種方法是檢入即時監控工具(RTMT)應用程式。導覽至System -> Performance。選擇要監視的節點。然後展開ReportingEngineInfo,然後按兩下ReportsUsersLoggedIn。
疑難排解
本節提供的資訊可用於對組態進行疑難排解。
在某些情況下,此值可能反映登入使用者的不準確數量。
此問題的一個常見根本原因是使用者報告關閉其瀏覽器而不是按一下右上角的Log Out按鈕。
若要獲取特定節點上已登入使用者的清單,請使用此命令。
admin:utils cuic session list
Command executed successfully
Session ID details saved to file.
To view file, type "file view activelog cuic-session.out"
To SFTP file, type "file get activelog cuic-session.out"
admin:file view activelog cuic-session.out
User: CUIC\ccmadmin - Last Session Time: 13/Feb/2017 15:04:38 - SessionID: E6AC6567352C245C8061E693BE1DC760
User: ADMINISTRATOR\cuicu1 - Last Session Time: 13/Feb/2017 15:21:17 - SessionID:3860176B2BAD8D8BEB10D4643FBD011F
end of the file reached
options: q=quit, n=next, p=prev, b=begin, e=end (lines 1 - 3 of 3) :
在這裡,您可以通過UserLoginAttempt(使用者按下登入按鈕)、UserLoginSuccess和SessionEnd(使用者按下註銷按鈕)操作找到CUIC報告日誌參考。
admin:file tail activelog cuic/logs/cuic/ recent regexp "User login or logout"
0000001591: 10.48.47.142: Feb 13 2017 15:01:35.520 +0100: %CCBU__CUIC_SECURITY-7-OPERATION: %[MESSAGE=Total number of login attempts for the server=50][OPERATION_TYPE=UserLoginAttempt][SESSION_ID=3860176B2BAD8D8BEB10D4643FBD011F][USER_ID=]: User login or logout request to server.
0000001636: 10.48.47.142: Feb 13 2017 15:01:35.576 +0100: %CCBU__CUIC_SECURITY-7-OPERATION: %[MESSAGE=Total number of logged-in user instance for the server=3][OPERATION_TYPE=UserLoginSuccess][SESSION_ID=3860176B2BAD8D8BEB10D4643FBD011F][USER_ID=ADMINISTRATOR\cuicu1]: User login or logout request to server.
0000001683: 10.48.47.142: Feb 13 2017 15:22:01.559 +0100: %CCBU__CUIC_SECURITY-7-OPERATION: %[MESSAGE=Total number of logged-in user instance for the server=2][OPERATION_TYPE=SessionEnd][SESSION_ID=3860176B2BAD8D8BEB10D4643FBD011F][USER_ID=ADMINISTRATOR\cuicu1]: User login or logout request to server.
如果在日誌檔案中未看到SessionEnd事件,則清楚地表明CUIC伺服器未收到來自客戶端的註銷請求。
解決方案
教育報告使用者在其關閉Internet瀏覽器之前按一下CUIC中的註銷按鈕。
相關文章