| Author |
Message |
panorama
Guest
|
Posted:
Fri Nov 05, 2004 7:33 am Post subject:
HIS: COM.CFG File Backup by Batch File |
|
|
I'm looking for a way to automate backup of the com.cfg file using a batch
file and Task Scheduler. Couldn't find a way to do this with the snacfg
command, however. Any hints? |
|
| Back to top |
|
 |
Eggert Johnson
Guest
|
Posted:
Sat Nov 06, 2004 12:32 am Post subject:
RE: HIS: COM.CFG File Backup by Batch File |
|
|
Hello, this may get you going. It depends on what your goal is.
This is for an SNA print server, so I am also using "printmig.exe" for the
printer part.
My scenario is that the SNA configuration from server "A" gets backed up and
loaded onto server "B".
This part of a BAT file creates a text file "newsna.txt" with the config in
it.
d:\his\system\snacfg.exe #d:\his\system\config\com.cfg /print >
d:\his\system\config\newsna.txt
On server "B" I run a perl script to change the server name references in
"newsna.txt" from server "A" to server "B" and write that to "newsna.out".
Then I copy the blank com.cfg from the product CD to com.cfg on server "B".
Then the 'new' configuration gets loaded onto server "B" with
CD HIS\SYSTEM\CONFIG
SNACFG @NEWSNA.OUT
The following BAT file will schedule "HISRest.Bat" to run every day at 10PM
at 22:00 /every:m,t,w,th,f,s,su D:\HISRest\HISRest.Bat
I hope that this gets you going.
Please let me know, if I can be of further assistance.
Take care, Eggert Johnson
"panorama" wrote:
| Quote: | I'm looking for a way to automate backup of the com.cfg file using a batch
file and Task Scheduler. Couldn't find a way to do this with the snacfg
command, however. Any hints? |
|
|
| Back to top |
|
 |
Eggert Johnson
Guest
|
Posted:
Sat Nov 06, 2004 2:54 am Post subject:
RE: HIS: COM.CFG File Backup by Batch File |
|
|
I should have added that my product install folder is D:\HIS\
The default would be C:\Program Files\Host Integration Server\
"Eggert Johnson" wrote:
| Quote: | Hello, this may get you going. It depends on what your goal is.
This is for an SNA print server, so I am also using "printmig.exe" for the
printer part.
My scenario is that the SNA configuration from server "A" gets backed up and
loaded onto server "B".
This part of a BAT file creates a text file "newsna.txt" with the config in
it.
d:\his\system\snacfg.exe #d:\his\system\config\com.cfg /print
d:\his\system\config\newsna.txt
On server "B" I run a perl script to change the server name references in
"newsna.txt" from server "A" to server "B" and write that to "newsna.out".
Then I copy the blank com.cfg from the product CD to com.cfg on server "B".
Then the 'new' configuration gets loaded onto server "B" with
CD HIS\SYSTEM\CONFIG
SNACFG @NEWSNA.OUT
The following BAT file will schedule "HISRest.Bat" to run every day at 10PM
at 22:00 /every:m,t,w,th,f,s,su D:\HISRest\HISRest.Bat
I hope that this gets you going.
Please let me know, if I can be of further assistance.
Take care, Eggert Johnson
"panorama" wrote:
I'm looking for a way to automate backup of the com.cfg file using a batch
file and Task Scheduler. Couldn't find a way to do this with the snacfg
command, however. Any hints? |
|
|
| Back to top |
|
 |
lsring@hotmail.com
Guest
|
Posted:
Thu Nov 11, 2004 12:53 pm Post subject:
RE: HIS: COM.CFG File Backup by Batch File |
|
|
"panorama" wrote:
| Quote: | I'm looking for a way to automate backup of the com.cfg file using a batch
file and Task Scheduler. Couldn't find a way to do this with the snacfg
command, however. Any hints?
|
I have used a product "ROBOCOPY" in conjuction with task scheduler to do
this and it works very well. |
|
| Back to top |
|
 |
|
|
|
|