To upload a configuration script to a NetScaler appliance from the command line interface of the NetScaler appliance, complete any of the following procedures:
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.
Switch to the shell prompt of the NetScaler appliance.
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.
Switch to the command line interface of the NetScaler appliance.
Issue the following command to upload the configuration script:
> batch -fileName /var/tmp/batch_file.txt -outfile /var/tmp/batch_file_out.txt
Switch to the shell prompt of the NetScaler appliance, to examine the output file for errors.
Issue the following command to verify the errors in the output file created in Step 6:
# more /var/tmp/batch_file_out.txt
Complete the Steps 1 to 4 in the Using the batch Command section.
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.