GithubHelp home page GithubHelp logo

Issues running the script about adc-scripts HOT 11 OPEN

netscaler avatar netscaler commented on June 15, 2024
Issues running the script

from adc-scripts.

Comments (11)

geethapinnaka avatar geethapinnaka commented on June 15, 2024

Can we please know what issues you have faced before changing the permission of the files? And please let us know what is the command that is used to trigger the script?

from adc-scripts.

jeffsani avatar jeffsani commented on June 15, 2024

from adc-scripts.

geethapinnaka avatar geethapinnaka commented on June 15, 2024

Can you please share the issue you have faced before changing the permission?

from adc-scripts.

jeffsani avatar jeffsani commented on June 15, 2024

from adc-scripts.

geethapinnaka avatar geethapinnaka commented on June 15, 2024

Can you please confirm if you have triggered "bash nspepi_install_script" before triggering "./check_invalid_config"?
We are adjusting the permission of required files to 550 when "bash nspepi_install_script" is triggered. There is no need for 744 permissions.

from adc-scripts.

jeffsani avatar jeffsani commented on June 15, 2024

from adc-scripts.

tknoblock1 avatar tknoblock1 commented on June 15, 2024

I receive an error when running bash nspepi_install_script with multiple lines showing command not foundpt: and then line 32 has a problem with the "'do" at the end of line 32. I'm running ADC 12.1 build 62.27. Attached results.
nspepi_install_script issue.txt

from adc-scripts.

Aman-Agrawal1 avatar Aman-Agrawal1 commented on June 15, 2024

Can you please shares the steps you tried? I'm not able to reproduce the issue.

root@TODEVNS0004# cd /netscaler/
root@TODEVNS0004# bash nspepi_install_script
Copying the files to /var/nspepi_backup as a backup
Installation successful
root@TODEVNS0004# logout
Done

sh ver
NetScaler NS12.1: Build 62.27.nc, Date: Jul 6 2021, 19:29:04 (64-bit)
Done

from adc-scripts.

bwdbethke avatar bwdbethke commented on June 15, 2024

I'm having the same issue as @tknoblock1 but I'm on version: NetScaler NS13.0: Build 87.9.nc, Date: Jul 29 2022, 10:59:37 (64-bit)

I moved/renamed the existing files/dir

mv /netscaler/check_invalid_config /netscaler/check_invalid_config.bak
mv /netscaler/nspepi /netscaler/nspepi.bak
mv /netscaler/nspepi2 /netscaler/nspepi2-bak

then copied over the new files to /netscaler

cp /root/check_invalid_config /netscaler/check_invalid_config
cp /root/nspepi_install_script /netscaler/nspepi_install_script
cp /root/nspepi /netscaler/nspepi
cp -Rv /root/nspepi2 /netscaler/nspepi2

then I chmod 500 on several of the files I saw had different mode than the originals

chmod 550 /netscaler/check_invalid_config
chmod 550 /netscaler/nspepi_install_script
chmod 550 /netscaler/nspepi
chmod 550 /netscaler/nspepi2/config_check_main.py
chmod 550 /netscaler/nspepi2/nspepi_main.py
chmod 550 /netscaler/nspepi2/nspepi_helper

Then I try to run in the install script and it fails like Taylor motioned

root@NETSCALER# bash nspepi_install_script
: command not foundpt: line 2:
: command not foundpt: line 6:
: command not foundpt: line 13:
: command not foundpt: line 18:
: command not foundpt: line 25:
'spepi_install_script: line 32: syntax error near unexpected token `do
'spepi_install_script: line 32: `    for file in "${file_list_to_copy[@]}"; do

from adc-scripts.

Aman-Agrawal1 avatar Aman-Agrawal1 commented on June 15, 2024

@bwdbethke , You don't need to move or rename files manually. This should be done by nspepi_install_script script. Can you please tell me how did you copy nspepi_install_script script? Using GIT command? And the OS on which you copied the file?

from adc-scripts.

M1gh7yP1r473 avatar M1gh7yP1r473 commented on June 15, 2024

I receive an error when running bash nspepi_install_script with multiple lines showing command not foundpt: and then line 32 has a problem with the "'do" at the end of line 32. I'm running ADC 12.1 build 62.27. Attached results. nspepi_install_script issue.txt

Check out the post at https://discussions.citrix.com/topic/417810-issues-installing-pre-validation-script-for-131-upgrade-solved/#comment-2095929 Problem is the EOL format. Just convert it and reupload the files to Netscaler.

from adc-scripts.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.