This document outlines the procedures for managing and analyzing Citrix log files using various commands. Each command is explained to help understand its purpose and usage.
To uncompress a compressed log file, use the following command:
gunzip newnslog.21.gz
This command decompresses the file newnslog.21.gz
to newnslog.21
.
To find out the time period covered by a specific log file:
nsconmsg -K newnslog.21 –d setime
This command provides the start and end times of the log newnslog.21
.
To view load-balancing statistics:
nsconmsg -K newnslog.21 -s ConLb=2 -d oldconmsg
This command extracts and displays detailed load-balancing statistics from the archived log file newnslog.21
.
To extract logs for a specific time period:
nsconmsg -K newnslog.21 -s time=12Jan2006:00:00 -k short_log.nsl -T 1200 -d copy
This command extracts logs starting from 12 Jan 2006 00:00
for a duration of 1200 seconds and saves them to short_log.nsl
.
To start logging for the newnslog
file:
nsconmsg -k /var/nslog/newnslog -T 172800 &
This command starts the logging process for newnslog
and continues for 172800 seconds (2 days).
nsconmsg -K newnslog -d setime
Displays the time span of the current newnslog
file.
zcat filename | nsconmsg -K pipe -d setime
Uncompresses the archived log file and displays its time span.
nsconmsg -K newnslog -d event
Displays events recorded in the current newnslog
file.
nsconmsg -K newnslog -d consmsg
Displays console messages from the current newnslog
file.
nsconmsg -K newnslog -d stats
Displays all counter values.
nsconmsg -K newnslog -d stats –d current
Displays current counter values.
nsconmsg -K newnslog -d statswt0 –d current
Displays non-zero counter values.
nsconmsg -K newnslog -d event
Shows events such as entity up/down, alerts, and configuration saves.
nsconmsg -K newnslog -s totalcount=200 -g cpu_use -d current
Displays CPU usage information.
nsconmsg -s ConMEM=1 -d oldconmsg
Shows memory utilization.
nsconmsg -j server_NSSVC_HTTP_vserver -d current
Displays information about established HTTP connections.
nsconmsg -K newnslog –s ConLb=x –d oldconmsg
Displays load-balancing statistics, with x=1
for basic information and x=2
for detailed information.
nsconmsg -K /var/nslog/newnslog -s time -s ConLB=2 -2 distrconmsg
Shows traffic distribution information.
nsconmsg -K newnslog –s ConMon=x –d oldconmsg
Displays monitoring statistics, with x=1
for basic and x=2
for detailed information.
nsconmsg -K newnslog -s ConSSL=1 -d oldconmsg
Displays SSL statistics for front-end connections.
nsconmsg -K newnslog -s ConSSL=2 -d oldconmsg
Displays SSL statistics for back-end connections.
nsconmsg -K newnslog -s ConSSL=3 -d oldconmsg
Displays SSL statistics for both front and back-end connections.
nsconmsg -K newnslog –s ConCSW=1 -d oldconmsg
Displays content switching statistics.
nsconmsg -K newnslog –s ConCMP=x -d oldconmsg
Displays compression statistics, with x=1
for old method and x=2
for new method statistics.
nsconmsg -K newnslog -s ConIC=1 -d oldconmsg
Displays integrated caching statistics.
By following these commands, you can efficiently manage and analyze Citrix log files to troubleshoot and monitor your Citrix environment.