Header Only - DO NOT REMOVE - Extreme Networks

Where is the location of Configuration upload/download scripts?


Userlevel 1
Hi,

I need to create a custom script for HP 1900 series switches for configuration backups as the builtin HP one does not support these models. But I could not find where are these scripts. They are not in "Administration -> Scripts" page on OneView.

Regards,

Rahman

9 replies

Userlevel 4
Hi Rahman,

can you check in below location.

root@eni-ns:/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles$

Thanks,
Suresh.B
Userlevel 1
Bharathiraja, Suresh wrote:

Hi Rahman,

can you check in below location.

root@eni-ns:/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles$

Thanks,
Suresh.B

Hi Suresh,

There is only DeviceFamilyDefTemplate.txt file in that directory. Do I need to deploy my custom script there? Will this location be safe when doing NMS upgrades?

Also where are the builtin scripts that I can copy and modify existing HP one instead of creating from scratch?

Regards,
Rahman
Userlevel 5
Bharathiraja, Suresh wrote:

Hi Rahman,

can you check in below location.

root@eni-ns:/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles$

Thanks,
Suresh.B

Do I need to deploy my custom script there?

Correct, /usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles is the place to put your custom scripts.

Will this location be safe when doing NMS upgrades?

Yes, these files will survive upgrades. They are also backed up automatically (and can be restored) with your Netsight backup (Administration > Backup/Restore).

It sounds like you just need some guidance on how to get going? I had a lot of questions with this myself. But with a lot of trial and error, I have built scripts to back up all sorts of non-extreme devices. It looks like HP switches allow you to copy the config to a TFTP server? That makes your job a little easier.

Here is a script I wrote to back up my old and obsolete Cisco wireless controllers ...

root@netsight-01.kch.local:~/devicefiles$ cat CiscoWLAN4402.txt[/code]-- Use these scripts to manage Cisco Wireless Controllers[/code]name="Cisco WLAN 4402 Controller - TFTP"[/code]desc="Cisco WLAN 4402 SSH/TFTP Scripts"[/code]--[/code]-----BEGIN SCRIPT "Configuration Upload"-----[/code]@sleep 6[/code]transfer upload mode tftp[/code]transfer upload datatype config[/code]transfer upload serverip %TFTP_IP%[/code]transfer upload path %RELATIVE_SERVER_DIR_PATH%[/code]transfer upload filename %TARGET_FILE_NAME%[/code]transfer upload start[/code]@sleep 3[/code]Y[/code]@receive 60[/code]logout[/code]N[/code]-----END SCRIPT-----[/code]-----BEGIN SUCCESS "Configuration Upload"-----[/code]File transfer operation completed successfully[/code]-----END SUCCESS-----[/code]
And here is one I made to back up my Cisco ASA Firewalls ...
[/code]root@netsight-01.kch.local:~/devicefiles$ cat CiscoASA5520.txt[/code]-- Use these scripts to manage Cisco devices[/code]name="Cisco Systems ASA 5520 - TFTP"[/code]desc="Cisco Systems ASA SSH/TFTP Scripts"[/code]--[/code]-----BEGIN SCRIPT "Configuration Upload"-----[/code]enable[/code]%ENABLEPSWD%[/code]copy running-config tftp:[/code]running-config[/code]%TFTP_IP%[/code]%RELATIVE_TARGET_FILE_PATH%[/code]@receive 30[/code]exit[/code]-----END SCRIPT-----[/code]-----BEGIN SUCCESS "Configuration Upload"-----[/code]bytes copied[/code]-----END SUCCESS-----[/code]-----BEGIN SCRIPT "Configuration Download"-----[/code]enable[/code]%ENABLEPSWD%[/code]copy tftp: running-config[/code]%TFTP_IP%[/code]%RELATIVE_TARGET_FILE_PATH%[/code]running-config[/code]@receive 60[/code]exit[/code]-----END SCRIPT-----[/code]-----BEGIN SUCCESS "Configuration Download"-----[/code]bytes copied[/code]-----END SUCCESS-----[/code]
It's a game trying to get these to work. My best advice is to write it, and then attempt to "stamp a new archive" in the Netsight console while also watching the server log file for clues on errors/failures. In a console session to the server, you can run 'tail -f /usr/local/Extreme_Networks/NetSight/appdata/logs/server.log'.

Hope that helps! And if you get a script that works, be sure to share it with the community. 😉
Userlevel 4
Hi Rahman,

Yes , this files will be available once after upgrade,

What do you mean built in script ?

Thanks,
Suresh.B
Userlevel 1
Bharathiraja, Suresh wrote:

Hi Rahman,

Yes , this files will be available once after upgrade,

What do you mean built in script ?

Thanks,
Suresh.B

Hi,

There is a backup script for HP devices on OneView. It works for HP 2530 models but not for HP 1910 models. I want to copy and modify the existing HP script if I find its location.

Regards,
Rahman
Userlevel 6
Hi Rahman,

The issue mentioned in the below article is created for a different issue but it outlines the procedures on how you can copy existing and create a custom script, to backup devices from inventory manager. I hope this is what you are looking for!

https://gtacknowledge.extremenetworks.com/articles/Solution/Inventory-Manager-unable-to-backup-XOS-s...
Userlevel 1
Karthik Mohandoss wrote:

Hi Rahman,

The issue mentioned in the below article is created for a different issue but it outlines the procedures on how you can copy existing and create a custom script, to backup devices from inventory manager. I hope this is what you are looking for!

https://gtacknowledge.extremenetworks.com/articles/Solution/Inventory-Manager-unable-to-backup-XOS-s...

This is what I was looking for, thank you.

Rahman
Userlevel 5
Karthik Mohandoss wrote:

Hi Rahman,

The issue mentioned in the below article is created for a different issue but it outlines the procedures on how you can copy existing and create a custom script, to backup devices from inventory manager. I hope this is what you are looking for!

https://gtacknowledge.extremenetworks.com/articles/Solution/Inventory-Manager-unable-to-backup-XOS-s...

Hello Karthik, do you know where I would find Inventory Manager in Netsight 8.0.3.53? I thought it used to be under Network > Legacy, but I don't see it anywhere now.
Userlevel 6
Hi Steve,

You should find it in (EMC > Network > Archives)
The Inventory manager Java Client is not available in 8.x version.
https://gtacknowledge.extremenetworks.com/articles/Q_A/Where-is-Inventory-Manager-in-Extreme-Managem...

Reply