Run Script on Discovery during ZTP+ process


Userlevel 2
Dear all.

I have a question about running a script during ZTP+ process.

NetSight 8.0.4.54
EXOS 22.3.1.4 Patch 4

We want to deploy ZTP+ functionality. The overall process is working fine.
Devices are discovered. Firmware is updated and the devices are integrated automaticaly to the correct site in EMC.

What I want, is that a new device gets a special basic configuration after it is discovered.
In the settings for every site in the menu "Discovered Device Actions" you can add a script.

I can add the script, but it is not executed. I did not find some detailed information in any manual about this functionality.
So can anyone help me here to get this running!?

thanks and best regards
Alex







6 replies

Userlevel 6
Hi,

save the script as JSON-RPC and you should be good.

Z.
Userlevel 2
Hi Z.

thanks for your fast reply. I did so, but without success.
Can you please give me more details!?

I also checked the event log. It seems that the script is not executed at all. Neither CLI nore JSON-RPC.



regards
Alex
Userlevel 7
Hi,

it should work with any script. How do you create your script? It needs to be valid.
Userlevel 2
Grosjean, Stephane wrote:

Hi,

it should work with any script. How do you create your script? It needs to be valid.

Hello Stephane.

thanks for your help

I create the script by
Administration ->Scripting -> Scripts -> Add ...

If I run this script manualy on a device, it is working.
To avoid script errors, I only configure a sysname in my test lab.

configure snmp sysname "ingolstadt"

regards
Alexander
Hi,

I've encountered the same issue with 8.1.2.59 in a case with a customer. Here were my findings related to ZTP+ and Custom Scripts:

Troubleshooting: - Tested two different 8.1.2.59 versions with the same scenario:
1. ZTP+ - device pre-registered -> scripts won't run
2. ZTP+ - device not pre-registered -> scripts will run after configuration in discovered tab

Switch 220-12p-10GE2, version 1.2.2.3

I've opened a GTAC case for this and let you know about the findings later on.

Ali Aropaltio wrote:

Hi,

I've encountered the same issue with 8.1.2.59 in a case with a customer. Here were my findings related to ZTP+ and Custom Scripts:

Troubleshooting: - Tested two different 8.1.2.59 versions with the same scenario:
1. ZTP+ - device pre-registered -> scripts won't run
2. ZTP+ - device not pre-registered -> scripts will run after configuration in discovered tab

Switch 220-12p-10GE2, version 1.2.2.3

I've opened a GTAC case for this and let you know about the findings later on.

Tested today with 8.1.3.65 and the problem still presists.

Reply