hins sharon lackey july 10, 2008. what is autosave? autosave is an epics extension that:...

10
Autosave @ HINS Autosave @ HINS Sharon Lackey Sharon Lackey July 10, 2008 July 10, 2008

Upload: marion-lang

Post on 18-Jan-2018

216 views

Category:

Documents


0 download

DESCRIPTION

Installing Autosave  Any hardware or soft EPICS IOC can use the autosave extension  The IOC must be configured and re- compiled to use autosave  This has already been done for the HINS PLC IOCs and for the SNS LLRF IOC  Instructions are at: autosave Installation Instructions autosave Installation Instructionsautosave Installation Instructionsautosave Installation Instructions

TRANSCRIPT

Page 1: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

Autosave @ HINSAutosave @ HINS

Sharon LackeySharon LackeyJuly 10, 2008July 10, 2008

Page 2: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

What is Autosave?What is Autosave?

Autosave is an EPICS extension that:Autosave is an EPICS extension that: Automatically saves settings in an ioc when Automatically saves settings in an ioc when

they are changed.they are changed. Loads in the saved settings on reboot of an Loads in the saved settings on reboot of an

ioc.ioc. Allows the user to determine what settings Allows the user to determine what settings

have changed since a particular file was have changed since a particular file was saved.saved.

Page 3: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

Installing AutosaveInstalling Autosave

Any hardware or soft EPICS IOC can use Any hardware or soft EPICS IOC can use the autosave extensionthe autosave extension

The IOC must be configured and re-The IOC must be configured and re-compiled to use autosavecompiled to use autosave

This has already been done for the HINS This has already been done for the HINS PLC IOCs and for the SNS LLRF IOCPLC IOCs and for the SNS LLRF IOC

Instructions are at:Instructions are at: autosaveautosave Installation Instructions Installation Instructions

Page 4: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

How it worksHow it works Request files list the device settings that need to Request files list the device settings that need to

be saved and restored on rebootbe saved and restored on reboot Whenever one of those devices is changed, an Whenever one of those devices is changed, an

update is written to the save file automaticallyupdate is written to the save file automatically A dated save file may also be written at boot A dated save file may also be written at boot

timetime On reboot, the contents of the most recent save On reboot, the contents of the most recent save

file is used to restore the settingsfile is used to restore the settings If the user wants to know what settings may If the user wants to know what settings may

have changed since the last reboot, the asVerify have changed since the last reboot, the asVerify utility can be usedutility can be used

Page 5: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

OrganizationOrganization

Request and save files are in the Request and save files are in the /p/iocAutosaveFiles directory under the /p/iocAutosaveFiles directory under the name of the IOCname of the IOC

hins01> ls /p/iocAutosaveFileshins01> ls /p/iocAutosaveFilesA0-plc hins01 hinscave smtfA0-plc hins01 hinscave smtf

hins01> cd hins01hins01> cd hins01 hins01> lshins01> ls

auto_settings.req auto_settings.sav0auto_settings.req auto_settings.sav0 save_restore.edlsave_restore.edlauto_settings.sav auto_settings.sav_080702-135343auto_settings.sav auto_settings.sav_080702-135343

Page 6: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

Request File is just a list of devicesRequest File is just a list of devices

Page 7: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

Save Files look like:Save Files look like:

Page 8: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

Date and time of last reboot save file

Flashes red and green with autosave heartbeat

Edm Utility ScreenEdm Utility Screen

Page 9: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they

asVerifyasVerify Add to your path: /p/epics/support/autosave/R4-Add to your path: /p/epics/support/autosave/R4-

10/bin/linux-x8610/bin/linux-x86 To compare present settings with an existing To compare present settings with an existing

save file:save file:asVerify [-vrd] <autosave_file>asVerify [-vrd] <autosave_file>

where -v is verbose: all saved pv’s will printwhere -v is verbose: all saved pv’s will print -r restores the named file-r restores the named file

-d (debug) increment debug level by -d (debug) increment debug level by oneone

Page 10: HINS Sharon Lackey July 10, 2008. What is Autosave?  Autosave is an EPICS extension that: Automatically saves settings in an ioc when they