How to Restart the Logging Process of the Performance Data of the NetScaler Appliance to the newnslog File

How to Restart the Logging Process of the Performance Data of the NetScaler Appliance to the newnslog File

book

Article ID: CTX215652

calendar_today

Updated On:

Description

This document contains information about restarting the logging process of the performance data of the NetScaler appliance to the newnslog file.


Instructions

Background

The following processes of the NetScaler appliance ensure that the performance data is logged appropriately in the newnslog file:

  • nslog.sh: This file controls the logging for the newnslog file.
  • nsconmsg: This file controls the writing of the log entries to the newnslog file.

    Restarting the Logging Process of the Performance Data of the NetScaler Appliance to the newnslog File

    If the newnslog file does not increment in size, it indicates that the performance data of the appliance is not being written to the newnslog file.

    To restart logging process of the performance data of appliance to the newnslog file, complete the following procedure:

    1. Run the following command to verify that the nslog.sh process is running on the appliance:
    • ps aux | grep nslog.sh
      root 356 0.0 0.1 1372 460 d0- I 30Apr08 0:00.05 sh /netscaler/nslog.sh start
    1. If the nslog.sh process is running, then run the following command to verify the process ID of the nsconmsg process:
    • root@ns# ps aux | grep nsconmsg
      root 46295 0.0 0.1 2580 1212 ?? S Wed09AM
      0:00.57 /netscaler/nsconmsg -k /var/nslog/newnslog -T
      172800 -s logsize=300m –S
    1. Run the following command to kill the nsconmsg process:
    • kill -9 46295
    1. Killing the nsconmsg process restarts the process. Run the following command to verify that the nsconmsg process has restarted:
    • root@ns# ps -fawwaux | grep nsconmsg
      root 52411 0.0 0.1 2580 1212 ?? S 12:07PM
      0:00.01 /netscaler/nsconmsg -k /var/nslog/newnslog -T
      172800 -s logsize=300m –S
      root 52418 0.0 0.1 1072 580 p3 R+ 12:08PM 0:00.00 grep nsconmsg

    To restart the compressing process of the newnslog file, complete the following procedure:

    Modify the contents of the nslog.nextfile file to reflect an appropriate integer value. You could modify the contents of the file either through vi editor or write it to the file through the echo command:

    echo 8 > /var/nslog/nslog.nextfile.

    The integer value can be any number from 0 to 99. It represents the number of the next newnslog file that will be rolled over. So one can check the contents of the /var/nslog to identify what should be the number of the next file that will be rolled over.