hins sharon lackey july 10, 2008. what is autosave? autosave is an epics extension that:...
Post on 18-Jan-2018
216 Views
Preview:
DESCRIPTION
TRANSCRIPT
Autosave @ HINSAutosave @ HINS
Sharon LackeySharon LackeyJuly 10, 2008July 10, 2008
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.
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
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
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
Request File is just a list of devicesRequest File is just a list of devices
Save Files look like:Save Files look like:
Date and time of last reboot save file
Flashes red and green with autosave heartbeat
Edm Utility ScreenEdm Utility Screen
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
top related