You could try creating the config on a separate/lab switch. and then backup the config and restore it on the remote switch:
1. Make sure "ip ssh filetransfer" is enabled on the switch
2. On the server copying the backup, run the following to use scp (using SSH port 22) to copy the configuration.
pscp -scp -l <USERNAME> -pw <PASSWORD> -2 <IP OF SWITCH>:cfg/startup-config c:\switchconfig
### "c:\switchconfig" can be changed to a directory of your choosing
3. Restore via SFTP to the switch from that file.
------------------------------
Dustin Burns
Lead Mobility Engineer @Worldcom Exchange, Inc.
ACCX 1271| ACMX 509| ACSP | ACDA | MVP Guru 2022
If my post was useful accept solution and/or give kudos
------------------------------
Original Message:
Sent: Jan 21, 2022 01:43 AM
From: Nacho Marin
Subject: Remote configuration of a switch through the network
Hello,I have a factory configured HP 2626 switch with an initial IP assigned by DHCP. I am connected to it by Telnet and I wanted to dump the configuration, but as soon as I enter some network parameter, I logically lose the connection. I also have it added in IMC but I don't know how to get a complete configuration before losing the connection, any ideas?
Thanks a lot.
------------------------------
Nacho Marin
------------------------------