Configure core dumps for a NetScaler BLX appliance

Configure core dumps and core dump compression on the Linux host for generating core dumps whenever the NetScaler BLX appliance crashes.

To configure core dumps and core dump compression for a BLX appliance by using the Linux host CLI:

  1. Create a file /etc/security/limits.d/core.conf with the following contents to enable core dumps for all users.

    *       hard        core        unlimited
    *       soft        core        unlimited
    <!--NeedCopy-->
    
  2. Add the following line to the file /etc/systemd/system.conf:

    DefaultLimitCORE=infinity
    <!--NeedCopy-->
    
  3. Create a script file /usr/bin/core-compress.sh and add the following lines to the file:

    #!/bin/bash
    
    gzip -1 > /var/crash/core.$1.$2.$3.gz
    <!--NeedCopy-->
    

    Add execution permission to the script file by running the following command:

    chmod +x /usr/bin/core-compress.sh
    <!--NeedCopy-->
    
  4. Set the core pattern by running the following command:

    echo "|/usr/bin/core-compress.sh %e %p %s" > /proc/sys/kernel/core_pattern
    <!--NeedCopy-->
    
  5. Restart the systemd manager by running the following command:

    systemctl daemon-reexec
    <!--NeedCopy-->
    
  6. Restart the BLX appliance by running the following command:

    systemctl restart blx
    <!--NeedCopy-->
    
Configure core dumps for a NetScaler BLX appliance