cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Run Script on Discovery during ZTP+ process

Run Script on Discovery during ZTP+ process

aloeffle
Contributor
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

726c4687e8864d9db6b90d6cc741c7bc_RackMultipart20171104-2023-1ll2h89-discovery_script_ing_inline.jpg



726c4687e8864d9db6b90d6cc741c7bc_RackMultipart20171104-118761-rts7uz-script_ing_settings_inline.jpg



726c4687e8864d9db6b90d6cc741c7bc_RackMultipart20171104-70276-1le18g7-script_ing_settings_2_inline.jpg


726c4687e8864d9db6b90d6cc741c7bc_RackMultipart20171104-130281-17ebodt-script_ing_settings_3_inline.jpg

6 REPLIES 6

Ali_Aropaltio
New Contributor
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.

270c3948f8ea4fa18ae05ac136d74a58_RackMultipart20180809-2350-1k1omix-ztp_inline.png

Tested today with 8.1.3.65 and the problem still presists.

Stephane_Grosj1
Extreme Employee
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
GTM-P2G8KFN