Is there a way of setting up some type of CRON job on the Netscaler VPX running firmware 11.0 to automatically clear Persistence Session Records on a daily basis?
Asked
Active
Viewed 607 times
1
-
I will explore adding clear lb persistentSessions [
in /etc/crontab Next challenge is figuring out exact syntax and how to configure not overwriting on reboots. According to a blog anything in /etc is just in RAM. https://blog.norz.at/scheduling-commands-on-citrix-netscaler-from-crontab – Dave M Aug 29 '18 at 04:49
2 Answers
0
in the /nsconfig folder you have a rc.netscaler file. Make a entry in the rc.netscaler where you add the cron job.
When you reboot the rc.netscaler will be executed.
You can also put files in the /var directory (survives reboot) and use an entry in /nsconfig/rc.netscaler to copy to /etc/....

KaiT
- 156
- 2
0
setup a cron job on the netscaler freebsd. use the following structure for your command:
nscli -U xxx.xxx.xxx.xxx:nsroot:nsroot "clear lb persistentSessions"
edit to add the following note: keep in mind you will most likely impact anyone connected at the time when running this command (depends on your application)

virgula24
- 523
- 5
- 23