# Template file for the download / upload configuration methods
# (please if you have good template ideas tell us that)
#
# Format is 
# name= here the name of the template item
# command= the command of the template item
# help= your description or help. Only one line (will be read until the return)
# please no blank line or comment (#) between the name,command and help lines
#
# Here some options which will be exchange during the execution
# %i% for the IP address of the device listed in a configuration
# %n% for the name of the device listed in a configuration
# %d% = day, %y% = year %m% = month. %f% = name of the config without extension. 
# %l% = log file name %s% = full log file name. %p% = path. 
# %u% = user. %w%= password
# %g% = path to configmanager plugins directory

#here pscp is the scp programme of putty
name=ssh-cisco-running-windows
command=%g%/scripts/ssh-cisco.cmd %u% %w% %n% running %p%/%y%%m%%d%/%n%.txt
help=(windows) Copy with plink like with a ssh session from Cisco devices. Only SSH must be activated. For startup config you have to change 'run' to 'startup'.

name=ssh-cisco-startup-windows
command=%g%/scripts/ssh-cisco.cmd %u% %w% %n% startup %p%/%y%%m%%d%/%n%.txt
help=(windows) Copy with plink like with a ssh session from Cisco devices. Only SSH must be activated. For startup config you have to change 'run' to 'startup'.

name=scp-cisco-putty-windows
command=pscp -l %u% -pw %w% -scp %n%:flash:/config.text %p%/%y%%m%%d%/%n%.txt
help=(windows) On the Cisco devices you have to active ssh and to active 'ip scp server enable'. Here you can download the startup (config) file of a Cisco device.

name=scp-cisco-ios-running-putty-windows
command=%g%/scripts/scpIOS12.2-running.cmd %u%   %w%    %n%    %p%/%y%%m%%d%/%n%.txt
help=(for windows)The arguments are user,password,hosts and file to create. On the Cisco device you have to active ssh and to active 'ip scp server enable'. Here you can download the running (config) file of a Cisco device.

name=scp-cisco-ios-startup-putty-windows
command=%g%/scripts/scpIOS12.2-startup.cmd %u%   %w%    %n%    %p%/%y%%m%%d%/%n%.txt
help=(for windows)The arguments are user,password,hosts and file to create. On the Cisco device you have to active ssh and to active 'ip scp server enable'. Here you can download the startup (config) file of a Cisco device.

name=scp-Foundry-running-putty-windows
command=%g%/scripts/scp-Foundry-running.cmd %u%   %w%    %n%    %p%/%y%%m%%d%/%n%.txt
help=(for windows)The arguments are user,password,hosts and file to create. On the Foundry you have to active ssh and to active 'ip ssh scp server enable'. Here you can download the running (config) file of a Foundry.

name=scp-Foundry-startup-putty-windows
command=%g%/scripts/scp-Foundry-startup.cmd %u%   %w%    %n%    %p%/%y%%m%%d%/%n%.txt
help=(for windows)The arguments are user,password,hosts and file to create. On the Foundry you have to active ssh and to active 'ip ssh scp server enable'. Here you can download the startup (config) file of a Foundry.

name=sftp-firewall-putty-windows
command=pscp -l %u% -pw %w% -sftp %n%:TMP/* %p%/%y%%m%%d%/
help=(windows) Here an example for secure FTP SFTP with pscp of putty.

name=telnet_cygwindownload-cisco
command=%g%/configmanager/scripts/telnetdownloadcygwin.bat %n% %u% %w% %p%/%y%%m%%d%/%n%.cfg 10
help=(window cygwin) download with Telnet of the running-config of a Cisco device. The last parameter is for sending a sleep in order to wait to not cut the sessio to early. The parameters are: the IP or Name, user, password and destinationsfile.

name=telnet-cisco-unix
command=%g%/configmanager/scripts/telnetdownloadunix.sh %n% %u% %w% /var/depot/%n%.cfg 4
help=(unix) download with Telnet of the running-config of a Cisco device. The last parameter is for sending a sleep in order to wait for the logging. The parameters are: the IP or Name, user, password and destinationsfile.

name=telnet-and-SVN-cisco-unix
command=%g%/configmanager/scripts/telnetdownloadSVNunix.sh %n% %u% %w% /tmp/depot/%n%.cfg 4 /tmp/depot yourSVNserver
help=(unix) download with Telnet of the running-config of a Cisco router and send it to SVN (subversion). The 5th parameter is for sending a sleep in order to wait for the logging.  The parameters are: the router, user, password and destinationsfile.

name=telnet-cisco-autouser-unix
command=%g%/configmanager/scripts/telnetdownload-auto-unix.sh %n% /var/depot/%n%.cfg 4
help=(unix) download with Telnet of the running-config automatically from a Cisco router. The user and password have to be insert in the script 'telnetdownload-auto-unix.sh' . The last parameter is for sending a sleep in order to wait for the logging. The other parameters are: the router and destinationsfile. On the device create a user with the two commands 'username cacticfgmgr password tobechanged'and 'username cacticfgmgr autocommand show run'

#here scp
name=scp-cisco-linux
command=scp %u%@%n%:flash:/config.text %p%/%n%scp.txt
help=(unix) For the password create a new key. On the Cisco router you have to active ssh and to active 'ip scp server enable'. Here you can download the startup (config) file of a Cisco router. Under Unix your have to generate a certificate.

#here scp BSD
name=scp-cisco-unix-BSD
command=scp -1 -B %u%@%n%:flash:/config.text %p%/%n%scp.txt
help=(unix) For the password create a new key. On the Cisco router you have to active ssh and to active 'ip scp server enable'. Here you can download the startup (config) file of a Cisco router. Under Unix-BSD your have to generate a certificate if you do not active the version -1.

name=test
command=echo user:%u% password:%w% TEST:/test.txt %n% log:%s% short:%l%  path:%p% date:%y%-%m%-%d% >%g%/TEST.txt
help=This is a example to test.
