02-09-2021 10:05 AM
I'm trying to run a persistent script on N3548 running nxos7.0(3)I7(9). Script has got three parts. (as per https://developer.cisco.com/docs/nx-os/#persistently-daemonizing-a-third-party/code-section-2)
1. Python script doing periodic show commands
2. shell script calling the python script from /etc/init.d
3. daemon file to start the shell script which get added to chkconfig level3.
I can run the script by issuing a "./testdaemon start" and it works fine. However when the device get reboots, script doesn't starts automatically.
Anyone running persistent scripts on N3548 on nxos7.0(3)I7(9)?
02-09-2021 10:25 PM
What user did you used for creating the scripts? Can you share a ls -l ?
Regards,
Sergiu
02-10-2021 12:56 AM
Hi Sergiu,
script was created as root and I've changed permission for all three files to 755.
02-10-2021 01:23 AM - edited 02-10-2021 01:23 AM
Did you tried with permissions as 777? If not, can you do it? In the link you shared the read/write/executable actions is set for group and others.
Cheers,
Sergiu
02-10-2021 01:48 AM
Still the same with 777. Fact that I can start the script by using "./xxx start" I'm thinking this may not be a permission issue, but it's not collecting the script from the init at the startup.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide