jugodemanzana
2011-05-02, 11:48 AM
Dear mates,
If you want save all iub parameters, you could do:
In moshel:
>u+s
>lrdel iub_name
>u-
>u! iub_file
And then, you have a back of the iub form EMA ando moshell,
If you want to backup all iub's of the rnc, you can use this script.
-Input: RNC name
-Script: _respaldo_rnc.pl
-Run:
>perl _respaldo_rnc.pl RNC1
-pre configuration:
You must create this folders in OSS:
>mkdir respaldo_rnc
>cd respaldo_rnc
>mkdir script_ema
>mkdir script_mo
And put the _respaldo_rnc.pl in respaldo_rnc folder.
how work:
-the script execute a str command in the rnc, with moshell
-whith the iub's name, the script excute:
>moshell "lt all;u+s;lrdel iub_1;lrdel iub_2;....;lrdel iub_n;u-;q"
then reconect to moshell.
>moshell "lt all;u! undo_iub_delete_file;q"
-copy the files to script_mo (moshell file) and script_ema (ema files).
Finnaly, if you want do this with a cron:
Usin crontab demon in the oss,
you can use this line.
#monday
30 11 * * 1 /usr/bin/perl /home/jugodemanzana/respaldo_rnc/_respaldo_rnc.pl RNC1
thats all folks,
could be useful,
BR,
jugodemanzana
If you want save all iub parameters, you could do:
In moshel:
>u+s
>lrdel iub_name
>u-
>u! iub_file
And then, you have a back of the iub form EMA ando moshell,
If you want to backup all iub's of the rnc, you can use this script.
-Input: RNC name
-Script: _respaldo_rnc.pl
-Run:
>perl _respaldo_rnc.pl RNC1
-pre configuration:
You must create this folders in OSS:
>mkdir respaldo_rnc
>cd respaldo_rnc
>mkdir script_ema
>mkdir script_mo
And put the _respaldo_rnc.pl in respaldo_rnc folder.
how work:
-the script execute a str command in the rnc, with moshell
-whith the iub's name, the script excute:
>moshell "lt all;u+s;lrdel iub_1;lrdel iub_2;....;lrdel iub_n;u-;q"
then reconect to moshell.
>moshell "lt all;u! undo_iub_delete_file;q"
-copy the files to script_mo (moshell file) and script_ema (ema files).
Finnaly, if you want do this with a cron:
Usin crontab demon in the oss,
you can use this line.
#monday
30 11 * * 1 /usr/bin/perl /home/jugodemanzana/respaldo_rnc/_respaldo_rnc.pl RNC1
thats all folks,
could be useful,
BR,
jugodemanzana