Page 1 of 1

OmniSwitch backup...

Posted: 30 Oct 2008 11:39
by Spack
Hi all,

I would like to backup my switch's configuration everyday I just need the file produced by the configuration snapshot all but I can't find anyway to do that :?

I first think about to log into the switch using SSH DSA public key enter the command and retreive the file by SCP.

So I put my public key in the /flash/network/pub directory and everything is allright. But when I try to pass a command directly like ssh user@host "configuration snapshot all" I get an error like :
ssh + command is not allowed
:(

Does anyone know how to backup my switch?

Re: OmniSwitch backup...

Posted: 30 Oct 2008 13:58
by krzysioD
To script/automatize the process of backup you need something more that just exec ssh/telnet.
Maybe could read about expect this is very good utility to script anything under linux/unix (but you need to run backup machine with some linux or have a vmware on your pc-workstation).
I use expect to dial in, make a backup, download backup file by modem/kermit protocol and disconnect.

Maybe you should look how OV performs backups of switches (don't know OV for ALU Data equipment but it must be an option to to that).

Re: OmniSwitch backup...

Posted: 30 Oct 2008 15:43
by Rens_DUP
Do you need the running configuration, the one in working or in certified? The configuration written on flash is stored in the files working/boot.cfg and certified/boot.cfg.

You can just connect with ftp to the swith and get them.

Regards,

Rens

Re: OmniSwitch backup...

Posted: 31 Oct 2008 04:27
by Spack
Rens wrote:Do you need the running configuration, the one in working or in certified? The configuration written on flash is stored in the files working/boot.cfg and certified/boot.cfg.
No I need the running configuration...
krzysioD wrote:Maybe could read about expect this is very good utility to script anything under linux/unix (but you need to run backup machine with some linux or have a vmware on your pc-workstation).
Yes, I have heard about expect... I will see how can I use it...
krzysioD wrote:Maybe you should look how OV performs backups of switches (don't know OV for ALU Data equipment but it must be an option to to that).
OV? You mean OmniVista? I don't think I have it :?

Re: OmniSwitch backup...

Posted: 31 Oct 2008 05:31
by Rens_DUP
Omnivista isn't free and it also only makes a backup of your working and / or certified directory files.

Regards,

Rens

Re: OmniSwitch backup...

Posted: 31 Oct 2008 12:28
by Spack
OK thanks ! I'm now trying to use expect to interact with my switch...