We need a script to backup configuration of switch B5G124 FROM Inventory Manager using SCP protocol
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-23-2016 03:30 PM
We need a script to backup configuration of switch B5G124 FROM Inventory Manager using SCP protocol.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎04-25-2017 06:45 AM
Hello,
i had the same problem some times ago.
Working solution you can find below.
I've changed scp user and pass to scp. You should create scp user on netsight server.
/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles
-- Use these scripts to manage Enterasys devices
name="B5 SCP Enterasys Networks"
desc="B5 SCP Enterasys Networks SSH/TFTP Scripts"
protocol=scp
--
-----BEGIN PRE-SCRIPT "Configuration Upload"-----
-- create /home/scp/b5-config.cfg
-- create absoluteFilePath2
-----END PRE-SCRIPT-----
-----BEGIN SCRIPT "Configuration Upload"-----
delete configs/config-b5.cfg
@RECEIVE 5
show config outfile configs/config-b5.cfg
@RECEIVE 25
copy configs/config-b5.cfg scp://%SCP_USER%:%SCP_PSWD%@%SCP_IP%/%RELATIVE_TARGET_FILE_PATH%
@RECEIVE 25
exit
-----END SCRIPT-----
i had the same problem some times ago.
Working solution you can find below.
I've changed scp user and pass to scp. You should create scp user on netsight server.
/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles
-- Use these scripts to manage Enterasys devices
name="B5 SCP Enterasys Networks"
desc="B5 SCP Enterasys Networks SSH/TFTP Scripts"
protocol=scp
--
-----BEGIN PRE-SCRIPT "Configuration Upload"-----
-- create /home/scp/b5-config.cfg
-- create absoluteFilePath2
-----END PRE-SCRIPT-----
-----BEGIN SCRIPT "Configuration Upload"-----
delete configs/config-b5.cfg
@RECEIVE 5
show config outfile configs/config-b5.cfg
@RECEIVE 25
copy configs/config-b5.cfg scp://%SCP_USER%:%SCP_PSWD%@%SCP_IP%/%RELATIVE_TARGET_FILE_PATH%
@RECEIVE 25
exit
-----END SCRIPT-----
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-23-2016 09:05 PM
In Netsight open the web help and search for "How to Set Up Third-Party Device Support".
There you'd find a description how to add a custom device definition file = script.
I've tried it myself but the new file wasn't visible in the pull down menu to select - not sure what I'm doing wrong - I've restarted Netsight & the client.
The part in the file for the config backup looks like below but as I've mentioned I wasn't able to test it so I'm not sure whether it's correct..
-----BEGIN SCRIPT "Configuration Upload"-----
delete configs/jcn3p.cfg
show config outfile configs/jcn3p.cfg
@receive 20
copy configs/jcn3p.cfg scp://%SCP_USER%:%SCP_PSWD%@%SCP_IP%/%TARGET_FILE_NAME%
exit
There you'd find a description how to add a custom device definition file = script.
I've tried it myself but the new file wasn't visible in the pull down menu to select - not sure what I'm doing wrong - I've restarted Netsight & the client.
The part in the file for the config backup looks like below but as I've mentioned I wasn't able to test it so I'm not sure whether it's correct..
-----BEGIN SCRIPT "Configuration Upload"-----
delete configs/jcn3p.cfg
show config outfile configs/jcn3p.cfg
@receive 20
copy configs/jcn3p.cfg scp://%SCP_USER%:%SCP_PSWD%@%SCP_IP%/%TARGET_FILE_NAME%
exit
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-23-2016 05:44 PM
scp...on this position is wrong...because it describes the method of moving config from switch to netsight-server / inventory-manager.
When your Netsight-Sever is running on linux you need to create a cron-job using root-rights.
When your Netsight-Sever is running on linux you need to create a cron-job using root-rights.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎06-23-2016 05:07 PM
