A simple guide for upgrading linux-based Citrix ADC web logging (NSWL) client
Instructions
Current NSWL client installation doest not support keeping the config file of the package during upgrade, to backup the config file before upgrade and restore it after upgrade is needed to keep customer setting.
Steps1. stop the nswl
2. backup '/usr/local/netscaler/etc/log.conf' to system directory like '/tmp'
3. upgrade the rpm by rpm -Uvp New_Build_Of_NSWL.rpm
4. backup new cong file
5. restore the orginal config file with that backed-up n #2
Sample to upgrade to 61.19 in our testbed [root@centos2 leo]# rpm -q NSweblog
NSweblog-59.16-12.1.x86_64
[root@centos2 leo]# cd /usr/local/netscaler/bin/
[root@centos2 bin]# ./nswl -stop
Trying to kill nswl (pid 2111)...Killed.
Done !!
[root@centos2 etc]# cp /usr/local/netscaler/etc/log.conf /tmp/log.conf
[root@centos2 ~]# rpm -Uvh /home/leo/nswl_linux-12.1-61.19.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:NSweblog-61.19-12.1 ################################# [ 50%]
Cleaning up / removing...
2:NSweblog-59.16-12.1 ################################# [100%]
[root@centos2 ~]# rpm -q NSweblog
NSweblog-61.19-12.1.x86_64
[root@centos2 ~]# mv /usr/local/netscaler/etc/log.conf /usr/local/netscaler/etc/log.conf.bak
[root@centos2 ~]# cp /tmp/log.conf /usr/local/netscaler/etc/
[root@centos2 bin]# ./nswl -start -f /usr/local/netscaler/etc/log.conf
#Debug log file is ./nswl.log-130520210725 & Log level is 1
#NetScaler weblogging configuration file /usr/local/netscaler/etc/log.conf is correct