Re: [foxboro] CP UPLOADS

Hi all,

May I suggest to have a look at the save_all script?

It will allow save_Alls (duh) but has a nice feature that will allow you to do 
uploads prior to a save_all.
Please note this is currently ICC only but still does the job regardsless of 
the platform you use. The only doubt I have is FDSI for the moment as we have 
not tested those.
The save_all script will take care to check for available space and do all the 
admin work for you (like discover newly installed CP', GW's etc and create 
all directories in the backup area.

The manual and the script can be found here : 
http://home.hccnet.nl/r.deen/invensys/invensys_main.html but it is also 
hosted on Cassandra.

Regards

Ron Deen
IPS


>>>
The save_all.sh script takes at least one command line switch. What they mean 
and what they do is explained here:
all
Creates a save_all for all stations and volumes on the system. By default the 
script will maintain 10 backups of all stations and volumes. 
Example:        save_all.sh all<cr>.
local
Creates a save_all for all stations and volumes for this host only. By default 
the script will maintain 10 backups. On I/A 70 Series this switch gets you 
the same results as the all switch above.
Example:        save_all.sh local<cr>.
-u
Perform an upload of the Control Database. This is the same function as found 
in the Control Configurator when doing an upload from the Maint menu pick. 
This parameter requires at least one other parameter selecting Control 
Stations or Hosts.
Example:        save_all.sh –u all<cr>.
-s string [string]
Make a save_all for all stations and volumes matching string. This can be a 
letterbug but also just a part of a letterbug which the desired stations have 
in common. You can put more than one string on the command line.
Example:        save_all.sh -s ACU CTL CP60<cr> 
will select all stations that contain ACU, CTL or CP60 in their letterbug/name 
for all hosts.
A little trick can be to do “–s ‘cat /opt/mystations’“ to use a list of 
stations to process.
-h string [string]
The same function as the –s option but this time it is for hosts selection. 
Example:        save_all.sh –h AW5101 AP00<cr> 
will make a save_all for all stations and volumes hosted by AW5101 and all 
other hosts matching AP00.
-b number
This switch will make the script to maintain “number” backups. This parameter 
requires at least one other parameter selecting Control Stations or Hosts.
Example:        save_all.sh all –b 45<cr> 
will make the script maintain 45 backups for every station and volume on the 
system.
Combinations of these parameters are supported for example:

1AWB11# save_all.sh –s 30 vol –h AW5011 –u –b 50<cr>

To make a save_all for all stations containing “30” and/or “vol” in their name 
on the host “AW5011”, perform an “upload” and “maintain 50 backups”.

Note for I/A 70 Series based hosts:
The Foxboro I/A 70 Series platform will not allow remote save_alls and as a 
result you must (when having more that one I/A 70 Series station hosting 
Control stations) install and run the save_all.sh script on every I/A 70 
Series host.

On Wednesday 29 October 2008 17:36:56 Boulay, Russ wrote:
> As always..be sure your script also checks for disk space...as a shrink
> with no space on hardrive will leave your ICC workfile empty...
>
>
> -----Original Message-----
> From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
> On Behalf Of Bud.Kahovec@xxxxxxxxx
> Sent: Wednesday, October 29, 2008 12:29 PM
> To: foxboro@xxxxxxxxxxxxx
> Subject: Re: [foxboro] CP UPLOADS
>
> "Anyone know if there is a way to automate CP Uploads."
>
> Build the script below, run via crontab:
>
> #! /bin/sh
> cd /opt/fox/ciocfg/api
> apidir=/opt/fox/ciocfg/api
> savedir=/opt/customer/scripts/uploads
> $apidir/iccdrvr.tsk -i $savedir/Xstation.upload -o $savedir/Xstation.log
> -n echo
>
> The above calls Xstation.upload listed below:
>
> OPEN X2CP01 MODIFY byME
> UPLOAD
> SHRINK
> CLOSE
> OPEN X2CP02 MODIFY byME
> UPLOAD
> SHRINK
> CLOSE
> OPEN X2CP03 MODIFY byME
> UPLOAD
> SHRINK
> CLOSE
> EXIT
>
> Creates the Xstation.log listed below:
>
> DONE     1 OPEN X2CP01!: Sun Jul  6 23:00:02 2008
> DONE     2 UPLOAD X2CP01!: Sun Jul  6 23:54:19 2008
> DONE     3 SHRINK X2CP01!: Sun Jul  6 23:54:25 2008
> DONE     4 CLOSE X2CP01!: Sun Jul  6 23:54:25 2008
> DONE     5 OPEN X2CP02!: Sun Jul  6 23:54:25 2008
> DONE     6 UPLOAD X2CP02!: Mon Jul  7 00:33:35 2008
> DONE     7 SHRINK X2CP02!: Mon Jul  7 00:33:40 2008
> DONE     8 CLOSE X2CP02!: Mon Jul  7 00:33:40 2008
> DONE     9 OPEN X2CP03!: Mon Jul  7 00:33:40 2008
> DONE    10 UPLOAD X2CP03!: Mon Jul  7 01:02:30 2008
> DONE    11 SHRINK X2CP03!: Mon Jul  7 01:02:32 2008
> DONE    12 CLOSE X2CP03!: Mon Jul  7 01:02:32 2008
> DONE    13 EXIT X2CP03!: Mon Jul  7 04:10:05 2008
>
>
> Works for us on AW51E's.
>
> bud/
>
>
>
>
>
>
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys Process
> Systems (formerly The Foxboro Company). Use the info you obtain here at
> your own risks. Read http://www.thecassandraproject.org/disclaimer.html
>
> foxboro mailing list:             http://www.freelists.org/list/foxboro
> to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
>
>
>
> * Confidentiality Notice:
> This e-mail and any associated files are intended solely for the individual
> or entity to whom they are addressed. Please do not copy it or use it for
> any purposes, or disclose its contents to any other person. Further, this
> e-mail and any associated files may be confidential and further may be
> legally privileged. This email is from the Invensys Process Systems
> business unit of Invensys plc which is a company registered in England and
> Wales with its registered office at Portland House, Bressenden Place,
> London, SW1E 5BF (Registered number 166023).  For a list of European legal
> entities within the Invensys Process Systems business group, please click
> here
> http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=7
>7.
>
> If you have received this e-mail in error, you are on notice of its status.
> Please notify us immediately by reply e-mail and then delete this message
> from your system. Thank you for your co-operation. You may contact our
> Helpdesk on +44 (0)20 7821 3859 / 2105 or email
> inet.hqhelpdesk@xxxxxxxxxxxxx This e-mail and any attachments thereto may
> be subject to the terms of any agreements between Invensys (and/or its
> subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
> affiliates).
>
>
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys Process
> Systems (formerly The Foxboro Company). Use the info you obtain here at
> your own risks. Read http://www.thecassandraproject.org/disclaimer.html
>
> foxboro mailing list:             http://www.freelists.org/list/foxboro
> to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave


 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: