To enable logging on NetScaler to all consoles (serial & ssh) issue the following lines:

  • create alias “nslogtoshell” for enabling logging to console: alias nslogtoshell “shell cp /etc/syslog.conf /etc/syslog.conf.orig; shell chmod 666 /etc/syslog.conf; shell echo ‘local0.* *’ >> /etc/syslog.conf; shell killall -9 syslogd; shell /usr/sbin/syslogd -b 127.0.0.1 -n -v -v –8; shell cp /etc/syslog.conf /nsconfig/”
  •  create alias “nologtoshell” for disabling logging to console: alias nologtoshell “shell cp /etc/syslog.conf.orig /etc/syslog.conf; shell killall -9 syslogd; shell /usr/sbin/syslogd -b 127.0.0.1 -n -v -v -8; shell cp /etc/syslog.conf /nsconfig/
  •  enable logging from NetScaler CLI using nslogtoshell
  • disable logging from NetScaler CLI using nologtoshell