i have SRX gateways & switches.
i have a management & monitoring system that execute scripts to devices, i want to ccreate a script that do the following:
save xxxexitstart shelltftp 10.240.60.100put xxx
i have to assign the file name instead of xxx, my question which keyword or serverd syntax to the device can use its hostname and the current date time for the filename?
If you managment system has an ftp or scp server setup Junos has a feature that can automatically copy a backup to that server. This can be done on a time interval or on commit of changes.
thank you for your reply.
i have solarwinds NCM module, so my question can i do the save to be automatically saved with the devices hostanme? and how?
I've never used solarwinds so I don't know what options are in there.
This function works by transfering a copy of the configuration via ftp or scp to a destination server. So the Solar winds server would enable one of those. I see that solarwinds offers scp software on their site as a tool.
To link them up in the solarwinds mgmt console you would need some function there to point to the repository of backups.
Forget the management application issue, my question is regarding the "save" command.
when we issue a save command we have to type the filename, so my question if i want to replace the filename command with a reserved or special expression so the device can save the file with the hostname to be the filename instaed typing the filename?
Sorry for the confustion, I don't know the answer to your save question.
I am suggesting that instead of having your management system run a script logging into the device you add these configuration lines to the device and it will automatically transfer a copy of the configuration every day to the server you configure.
set system archival configuration transfer-interval 1440
set system archival configuration archive-sites scp://user@host:/path password userpassword
scp / ftp both are supported
file is automatically named with host date and time