CTX118677
NetScaler
NetScaler 8.0,NetScaler 8.0,NetScaler 8.0,NetScaler 8.0,NetScaler 8.0,NetScaler 8.0
Configuration
2016-04-15
2014-08-18
This article contains information about uploading a configuration script to the NetScaler appliance from the command line interface of the NetScaler appliance ...

Instructions

To upload a configuration script to a NetScaler appliance from the command line interface of the NetScaler appliance, complete any of the following procedures:

Using the batch Command

To upload a configuration script to a NetScaler appliance using the batch command, complete the following procedure:
  1. Upload the configuration script to the /var/tmp directory of the NetScaler appliance using a secure transfer utility, such as WinSCP.
    Note: If the NetScaler appliance is in a high availability pair, ensure that configuration script is uploaded to the primary NetScaler appliance.

  2. Switch to the shell prompt of the NetScaler appliance.

  3. Issue the following command to verify that the end of the line does not contain the ^M and other non-printing characters:
    # cat -vet batch_file.txt
    Note: In UNIX, the end of the line is treated differently as compared to the other operating systems. If you edit a file in Windows and in the UNIX operating systems, a Ctrl-M character is appended to the end of the line.

    1. If the output of the preceding command contains the ^M character, open the batch_file.txt file in the vi editor.
    2. In the vi editor, issue the following command to globally search and replace the ^M character with a space character:
      :%s/^M/ /g
    3. Save and close the file.
  4. Switch to the command line interface of the NetScaler appliance.

  5. Issue the following command to upload the configuration script:
    > batch -fileName /var/tmp/batch_file.txt -outfile /var/tmp/batch_file_out.txt

  6. Switch to the shell prompt of the NetScaler appliance, to examine the output file for errors.

  7. Issue the following command to verify the errors in the output file created in Step 6:
    # more /var/tmp/batch_file_out.txt

Using the source Command

To upload a configuration script to a NetScaler appliance using the source command, complete the following procedure:
  1. Complete the Steps 1 to 4 in the Using the batch Command section.

  2. Issue the following command to upload the configuration script:
    > source /var/tmp/batch_file.txt
    The output of the preceding command is displayed on the computer screen.


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.