need help!
i need to back up all configuration on my Linux/Centos 5.7
i already created two(2) config file that can download
=====1===== this is the direct
<Configuration-Management Device="linuxtest" SystemOID="1.3.6.1.4.1.8072.3.2.10">
<Commands>
<Command Name="ALLOCATEPTY" Value="True" />
<Command Name="MENUBASED" Value="False" />
<Command Name="CUSTOMUSERNAMEPROMPT" Value="login as:" />
<Command Name="eth0" Value="/etc/sysconfig/network-scripts/ifcfg-eth0" />
<Command Name="lo" Value="/etc/sysconfig/network-scripts/ifcfg-lo" />
<Command Name="Running" Value="/etc/snmp/testconfig" />
<Command Name="snmpd" Value="/etc/snmp/snmpd.conf" />
<Command Name="sshd" Value="/etc/ssh/sshd_config" />
<Command Name="DOWNLOADCONFIG" Value="cat -vvv ${ConfigType}" />
<Command Name="UPLOADCONFIG" Value="cat bank.txt>${ConfigType}${CRLF}echo '${ConfigText}'>${ConfigType}" />
</Commands>
</Configuration-Management>
=============
The Upload script works like this.
1. it will removed the content of the ${ConfigType}
2. then put the content of the backup file to the ${ConfigType}
but it works for the Running configuration only
when i try to up load the sshd backup it will put on the /etc/snmp/testconfig because this is the value my running configuration
i just notice that when u download you can chose what type of configuration
but for upload it will just target the Running configuration
and i want to have another backup on my tftp server
======2======
<Configuration-Management Device="linuxtest" SystemOID="1.3.6.1.4.1.8072.3.2.10">
<Commands>
<Command Name="ALLOCATEPTY" Value="True" />
<Command Name="MENUBASED" Value="False" />
<Command Name="CUSTOMUSERNAMEPROMPT" Value="login as:" />
<Command Name="eth0" Value="/etc/sysconfig/network-scripts/ifcfg-eth0" />
<Command Name="lo" Value="/etc/sysconfig/network-scripts/ifcfg-lo" />
<Command Name="Running" Value="/etc/snmp/testconfig" />
<Command Name="snmpd" Value="/etc/snmp/snmpd.conf" />
<Command Name="sshd" Value="/etc/ssh/sshd_config" />
<Command Name="DOWNLOADCONFIG" Value="tftp -vvv 192.168.243.148 -c put ${ConfigType} ${ConfigType}; cat -vvv ${ConfigType}" />
<Command Name="UPLOADCONFIG" Value="tftp -vvv 192.168.243.148 -c get ${ConfigType} ${ConfigType}" />
</Commands>
</Configuration-Management>
============
and again still same issue
if there is only like an option what ConfigType after right click + upload the backup file.
that would be nice. and my template will work 100% not 60% only
Running,Start,(user defined) = ${ConfigType}
Content of the Backup Config File = ${ConfigText}
Backup Config File = ?????