Configure NSWL client 编辑

After you install the NSWL client, you can configure the NSWL client using the nswl executable. These configurations are stored in the NSWL client configuration file (log.conf).

Note:

You can further customize logging on the NSWL client by making additional modifications to the NSWL configuration file (log.conf). For details, see Customizing Logging on the NSWL Client System.

The following table describes the commands that you can use to configure the NSWL client.

NSWL commandSpecifies
nswl -helpThe available NSWL help options.
nswl -addns -f <path-to-configuration-file>The system that gathers the log transaction data. You are prompted to enter the IP address of the Citrix ADC appliance. Enter a valid user name and password.
nswl -verify -f <path-to-configuration-file>Check for syntax or semantic errors in the configuration file.
nswl -start -f <path-to-configuration-file>Start the NSWL client based on the settings in the configuration file. Note: For Solaris and Linux: To start Web server logging as a background process, type the ampersand sign (&) at the end of the command.
nswl -stop (Solaris and Linux only)Stop the NSWL client if it was started as a background process; otherwise, use CTRL+C to stop Web server logging.
nswl -install -f <path-to-configuration-file> (Windows only)Install the NSWL client as a service in Windows.
nswl -startservice (Windows only)Start the NSWL client by using the settings in the configuration file specified in the nswl install option. You can also start NSWL client from Start > Control Panel > Services. Note: The NSWL log files will be created in C:\Windows\SysWOW64.
nswl -stopservice (Windows only)Stops the NSWL client.
nswl -removeRemove the NSWL client service from the registry.

Run the following commands from the directory in which the NSWL executable is located:

  • Windows: \ns\bin
  • Solaris and Linux: \usr\local\netscaler\bin

The Web server logging configuration files are located in the following directory path:

  • Windows: \ns\etc
  • Solaris and Linux: \usr\local\netscaler\etc

The NSWL executable is started as .\nswl in Linux and Solaris.

Add the IP addresses of the Citrix ADC appliance

In the NSWL client configuration file (log.conf), add the Citrix ADC IP address (NSIP) from which the NSWL client will start collecting logs.

To add the NSIP address of the Citrix ADC appliance

  1. At the client system command prompt, type:

    nswl -addns -f < directorypath > \log.conf < directorypath >: Specifies the path to the configuration file (log.conf).

  2. At the next prompt, enter the following information:

    • NSIP: Specify the IP address of the Citrix ADC appliance.
    • User name and Password: Specify the nsroot user credentials of the Citrix ADC appliance.

      Note:

      Any system user with logging privilege enabled supports this functionality.

Note:

If you add multiple Citrix ADC IP addresses (NSIP), and later you do not want to log all of Citrix ADC system log details, you can delete the NSIPs manually by removing the NSIP statement at the end of the log.conf file. During a failover setup, you must add both primary and secondary Citrix ADC IP addresses to the log.conf by using the command. Before adding the IP address, make sure the user name and password exist on the Citrix ADC appliances.

Verify the NSWL configuration file

To make sure that logging works correctly, check the NSWL configuration file (log.conf) on the client system for syntax errors.

To verify the configuration in the NSWL configuration file

At the client system command prompt, type:

nswl -verify -f <directorypath>\log.conf

< directorypath>: Specifies the path to the configuration file (log.conf).

Execute NSWL Client

Start Web server logging

At the client system command prompt, type:

nswl -start -f <directorypath>\log.conf

<directorypath>: Specifies the path to the configuration file ( log.conf).

Stop Web server logging started as a background process on the Solaris or Linux operating systems

At the command prompt, type:

nswl -stop

To stop Web server logging started as a service on the Windows operating system

At the command prompt, type:

nswl -stopservice

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:77 次

字数:6665

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文