Some links to myself on the newnslog
files (these are binary log files; high precision; need a tool called nsconmsg
to view them).
- NetScaler Master Class of April 2017
- Useful blog posts:
- https://github.com/uncon/wiki/blob/master/netscaler/nsconmsg.md (has a good list of all the options)
- https://www.franken.pro/blog/citrix-netscaler-cli-commands (a very good post with examples)
- https://support.citrix.com/article/CTX113341 – from Citrix
A typical format of the command is like this:
1 |
nsconmsg -K /path/to/newnslog -d <operation> |
The <operation> can be one of these (this is just a copy-paste from nsconmsg -?
):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
current - display the current performance data past - display the performance data from begining stats - display current statistics counters finalstats - display final newnslog statistics counters last - display last newnslog statistics counters memstats - display current memory statistics statswt0 - display current statistics counters, excluding counters with 0 value lastwt0 - display last newnslog statistics counters, excluding counters with 0 value finalstatswt0 - display final newnslog statistics counters, excluding counters with 0 value (same as '-d lastwt0') devcr - display device creation/removal information devlink - display device link information devname - display all device names symname - display all symbol names & decoding scheme devsymrel - display all device and symbol relationship event - display events nicdata - display NIC debug data eventwait - display events (real time wake) consmsg - display console message oldconmsg - display netscaler old console message (use -s options for different debug level) setime - display the start and end time of data file auditedcmd - display audited command logfromnfw - display seleced log messages from new logging framework copy - alias to copyr copyr - copy data from one file to another file with filter and sample rate change maxvalue - display highest value and time minvalue - display lowest value and time maxrate - display highest rate value and time minrate - display lowest rate value and time distrconmsg - display distribution of counter (use -s options for different debug level) |
The newnslog files are rotated every 2 days (or a certain number of events if I remember correctly). The older ones can be accessed by putting a path to that file (e.g. /var/nslog/newnslog.28.tar.gz
in the command above). This will extract the file and show the logs. The Citrix page says we have to extract the logs first, but am guessing that’s old info.
That’s all for now. Will add more to this post later …