Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic daily backup of cfg files on manager 1

Status
Not open for further replies.

ZebrAYA

IS-IT--Management
Mar 16, 2007
198
CO
Hello

I’ve seen that IPO Manager software makes backup copies of the config every time a write operation is done.
But If no changes are done (by the admin) but by the users (via PML, eBLF, etc) how could I rescue that config?
Is there some way to program manager to make at least a copy on a daily basis?
Thanks!


[Always Close your threads for avoiding other people to entangle]
 
You can create a batch file and schedule the batch file.

The batch file contains one line:
tftp -i 192.168.42.1 get "config/t%$'~ q" myConfig.cfg
t%$'~ q = encrypted password.
If you did not change the applications password in the security settings then this should work for you.
 
Delta server has a copy of the config. You could copy that file.
 
If you restart the DeltaServer service it will pull a new config from ipo
 
that's clear, but where is it stored, and which file name?
 
Think you setup Delta server to e-mail that config if it loose contact with IP Office
 
DId you have a look in Delta server ?
Yes you can set up emailing the config and even the vmpro mdb file but i am not sure if it is on loosing contact, it does on any fault


ACA - Implement IP Office
ACS - Implement IP Office
ACA - Implement IP Telephony
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
 
I do this to grab my config, voicemails, and database. This bailed me out BIG time the last time my IPOffice went bellyup:


@echo off
REM Daily Backup of PBX COnfig File, WAVs and dB
c:
cd\
net use k: \\server\share\upgrades\avaya\bkup
copy /Y "c:\program files\avaya\ip office\manager\my_cfg.cfg" k:\*.*
copy /Y "C:\Program Files\Avaya\IP Office\Voicemail Pro\VMData.mdb" k:\db\*.*
xcopy /S /Y "C:\Program Files\Avaya\IP Office\Voicemail Pro\VM\WAVS" k:\wav
net use k: /Delete



I then use Windows scheduler to run it.

"This must be Thursday. I never could get the hang of Thursdays"
//scook
 
sdavidcook,

iwas just playing around with doing this and i can manually run these commands but how do i save it? i see where you can add a scheduled task in windows but how do i get the commands in there? also, sinceim doing this on a loal drive i dont need the net use lines, correct? what are the first two lilnes all about? i started at changing the directory to do it manually.
 
You are just copying the cfg file from the pc running manager not from the ipoffice
It is good to keep a recent config for backup but this will not pull a config from the ipoffice !!!

ACA - Implement IP Office
ACS - Implement IP Office
ACA - Implement IP Telephony
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
 
TDMorIP

create a new text document, paste in the info.

save as backup.bat or similar, the .bat is the important bit.

then schedule the batch file to run
 
but as usual tlpeter is correct, it only makes a backup of the manager backup, with is only as up to date as the last config merge
 
Just install deltaserver and connect it to the ipoffice

Make two batch files
First one with this:

net stop "CCC Delta Server"

The second one with:

net start "CCC Delta Server"


Make a schedule task for 01:00 for the first batchfile and the second one at 01:01 for the second batchfile

This way is will pull a config every night at 01:01 and puts it in the folder c:\Program Files\Avaya\IP Office\CCC\Deltaserver



ACA - Implement IP Office
ACS - Implement IP Office
ACA - Implement IP Telephony
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
 
this is really great info, thanks everyone. it baffles me that avaya wouldnt build logic like this in to its software.
 
do a googlee search on DOS batch files.
it is a ancient way to do command line scripting
 
@intrigant

You don't need a password for the tftp batch.

Tftp -i 192.168.42.1 get config config_name.cfg


These tftp actions also work.

for the internal list type;

Tftp -i XXX.XXX.XXX.XXX get nasystem/user_list7 userlist.txt

for the external list type;

Tftp -i XXX.XXX.XXX.XXX get nasystem/dir_list directory.txt
Tftp -i XXX.XXX.XXX.XXX get nasystem/user_list2 user.txt

the XXX.XXX.XXX.XXX = IP adress of IP Office

Or

for the external list type;

Tftp -i XXX.XXX.XXX.XXX get nasystem/user_list2 user.txt

Greetzzz..Bas

y1pzZTEUdok1vrI5cLb3FdPX4PgTPlSONkb5WPjz0x50etSujaMSmhdRCbOx9vASnrRNzzXv0IxNQA

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
@Bas :
if a system is correctly programmed then the default passwords are changed and then you cannot retrieve the config through tftp without a password.
But even if the password has changed there are ways to find out the password in the registry after connecting DeltaServer to a IP Office (no password required!):
HKEY_LOCAL_MACHINE\SOFTWARE\Avaya\CCCServer\SETUP\ConnectPassword
this holds the encrypted password : $t%$'~ q = password
With the encrypted password you can use tftp to download or upload the config.

This is a vulnerability wich exists from the start with the introduction of the Argent Office and Avaya should really do something about it.

Avaya is monitoring this and i hope i will not get my account blocked as happended to the user Provider once just for publication of the following:

Here is a code snippet i once build just for the fun of it in C# wich does the job, the string Encrypted_passw holds the encrypted password and Password gives back the uncrypted password:

string test = Encrypted_passw;
int EP_length = test.Length;
PassWord = "";
for (int i = 0; i < EP_lengte; i++)
{
char TEST_Char = test;
int TestNmbr = System.Convert.ToSByte(TEST_Char);
int TEST_Charnmbr = System.Convert.ToInt32(TEST_Char);
TEST_Charnmbr = ((TEST_Charnmbr + 13 + EP_length) - i) + 1;
if (TEST_Charnmbr > 127)
{
TEST_Charnmbr = TEST_Charnmbr - 96;
}
char Char1 = System.Convert.ToChar(TEST_Charnmbr);
PassWord = PassWord + Char1;
}

I do not own credits for this, my idea comes from another published document on the internet:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top