Hi, I run into following problem. I got a config file i.e.
....
#FileName=fsmon.txt
#config file
managed_target=AIX
"*" P M 95 F 98
"/" P M 80 F 85 0
"/tmp" P M 90 F 95 0
"/var" P M 90 F 95 0
"/home" P M 90 F 95 0
"/usr" P M 95 F 98 0
managed_target=ORA
"/orabase*" P M 97 F 99 0
"/*/orabase" P M 90 F 95 0
"/*/orabase/data/????/dat*" P M 100 F 100 0
managed_target=SAP
"/oracle/stage*" P M 100 F 100 0
"/oracle/???/orig*" P M 100 F 100 0
"/oracle/???/mirr*" P M 100 F 100 0
.....
on 100 aix boxes. I need to remove all lines belonging to managed_target=ORA and insert new ones i.e.
"/orabase*" P M 90 F 95 0
"/orabase*/data/*/log*" P M 99 F 99 0
"/orabase*/data/*/data*" P M 90 F 99 0
"/orabase*/data/*/archiv" P M 75 F 90 0
to have this block of information identical on all systems and not touch the other lines. On every box the lines could be different.
Any suggestions
- Dietmar
....
#FileName=fsmon.txt
#config file
managed_target=AIX
"*" P M 95 F 98
"/" P M 80 F 85 0
"/tmp" P M 90 F 95 0
"/var" P M 90 F 95 0
"/home" P M 90 F 95 0
"/usr" P M 95 F 98 0
managed_target=ORA
"/orabase*" P M 97 F 99 0
"/*/orabase" P M 90 F 95 0
"/*/orabase/data/????/dat*" P M 100 F 100 0
managed_target=SAP
"/oracle/stage*" P M 100 F 100 0
"/oracle/???/orig*" P M 100 F 100 0
"/oracle/???/mirr*" P M 100 F 100 0
.....
on 100 aix boxes. I need to remove all lines belonging to managed_target=ORA and insert new ones i.e.
"/orabase*" P M 90 F 95 0
"/orabase*/data/*/log*" P M 99 F 99 0
"/orabase*/data/*/data*" P M 90 F 99 0
"/orabase*/data/*/archiv" P M 75 F 90 0
to have this block of information identical on all systems and not touch the other lines. On every box the lines could be different.
Any suggestions
- Dietmar