Merge branch 'master' into master

This commit is contained in:
vallotton_r committed 2026-11-25 13:33:05 +01:00
commit a378d36234
5 files changed
+268 -11

No files matched your search

@@ -6,15 +6,46 @@ tags:
- PROSCAN
---
# VxWorks End-Of-Life (VME)
# VxWorks and VME Migration
The VxWorks license used to operate most of the VME crates at HIPA, PROSCAN, and SLS will be discontinue at the end of 2030. As the VME hardware is aging, we have chosen to also phase out that hardware platform in favor of modern, supported platforms. The migration away from VME is actively underway, with the last VME crates remaining operational until 2030.
PSI plans to let the current VxWorks licence expire at the end of 2030.
The VxWorks exit is part of the broader migration from legacy VME hardware at HIPA, PROSCAN and SLS, including the SLS beamlines.
The VME migration for SLS beamlines is being coordinated via biweekly Beamline Refurbishment Meetings (BRM) with input from a Controls representative for both SLS beamlines and the SLS storage ring. For further questions:
## Why the migration is needed
Many control systems at these facilities run VxWorks on VME hardware.
Older Motorola VME CPU boards, including the MVME2300 and MVME5100, can no longer receive VxWorks and EPICS updates. Much of the VME hardware has been in service for over 20 years, and many components have reached end of life. Moving to supported platforms makes it easier to maintain these systems and recover from hardware failures.
## Migration projects
The Controls and Electronics sections work with system owners and facility teams to plan and carry out the migrations. Several projects are already underway, including SLS timing and beamline upgrades. Each SLS beamline has its own migration project. The beamline teams coordinate with Controls through the Beamline Refurbishment Meetings (BRM).
Each system is assessed individually. Some VME boards and peripherals have no direct replacement, so migration may require hardware or software changes and testing before the changeover.
## Migration inventory
The [VxWorks Migration Inventory](https://dpsich.sharepoint.com/:x:/r/teams/m365-tgo_Org_8200_AEK/Shared%20Documents/VxWorks%20-%20VME%20exit/VxWorks_Migration_Inventory.xlsx?d=w241394fc86074974a25765b135333fc1&csf=1&web=1&e=2pTZL2) is the shared reference for affected systems, migration projects and budget estimates.
Contact the relevant coordinator below to check a system's migration status, report a missing system or request access to the inventory.
<details>
<summary>Where to find information in the inventory</summary>
<ul>
<li><strong>Dashboard</strong> shows progress, blockers and budget summaries.</li>
<li><strong>Master_Functions</strong> describes the functions affected. <strong>IOC_Inventory</strong> lists individual control systems.</li>
<li><strong>IOC_Function_Map</strong> links IOCs to the functions they support. <strong>Migration_Units</strong> groups systems for migration planning.</li>
<li><strong>Dependencies</strong> and <strong>Blockers</strong> capture constraints and decisions that affect migration.</li>
<li><strong>Budget_Estimates</strong> tracks costs, planned years and funding coverage by project.</li>
<li><strong>Data_Sources</strong> provides the references behind inventory entries.</li>
</ul>
</details>
## Contacts
| VME Migration Role | Primary Contact |
| --------- | ----------------- |
| SLS beamlines | [Alvin Acerbo](https://intranet.psi.ch/de/people/alvin-samuel-acerbo) |
| SLS Timing and RF | [Uros Zezula](https://intranet.psi.ch/de/people/uros-zezula) |
| HIPA | [Uros Zezula](https://intranet.psi.ch/de/people/uros-zezula) |
| PROSCAN | [Uros Zezula](https://intranet.psi.ch/de/people/uros-zezula) |
| SLS accelerator systems | [Uros Zezula](https://intranet.psi.ch/de/people/uros-zezula) |
| HIPA | [Pablo Fernandez Carmona](https://intranet.psi.ch/de/people/pablo-fernandez-carmona) |
| PROSCAN | [Pablo Fernandez Carmona](https://intranet.psi.ch/de/people/pablo-fernandez-carmona) |
For **migration coordination**, contact [Uros Zezula](https://intranet.psi.ch/de/people/uros-zezula) in Controls or [Babak Kalantari](https://intranet.psi.ch/en/people/babak-kalantari) and [Waldemar Koprek](https://intranet.psi.ch/en/people/waldemar-koprek) in Electronics.
+26 -2
View File
@@ -9,6 +9,30 @@ tags:
# EPICS Data Archiving
# BS Data
We operate the EPICS archivers that continuously record Process Variables (PVs) from the PSI facilities, so that historical data is available for analysis, troubleshooting and machine studies.
# Online Data Processing
Each PV is configured individually: you choose which storage terms (short, mid and long term) it is written to and how often it is recorded. Retention times depend on the facility and are listed in the README of each configuration repository.
Beam-synchronous data at SwissFEL is recorded separately by the data and image buffers, see [High-speed DAQ](05_datahs.md).
## Archivers
| Archiver | PV configuration |
| --- | --- |
| SLS | [sls_archiver](https://gitea.psi.ch/archiver_config/sls_archiver) |
| SwissFEL | [sf_archiver](https://gitea.psi.ch/archiver_config/sf_archiver) |
| HIPA | [hipa_archiver](https://gitea.psi.ch/archiver_config/hipa_archiver) |
| PROSCAN | [proscan_archiver](https://gitea.psi.ch/archiver_config/proscan_archiver) |
| TWLHA | [twlha_archiver](https://gitea.psi.ch/archiver_config/twlha_archiver) |
| Office (systems on the PSI office network) | [office_archiver](https://gitea.psi.ch/archiver_config/office_archiver) |
To add or change PVs, see [How-To: Archiver Configurations](../../3._Knowledge_Center/03_how_to/06_archiver_config.md).
## Retrieving data
- [Archiver Viewer](../Tools/07_archiver_viewer.md)
- [Data Hub](../Tools/04_data_hub.md)
## Contact
[archiver@psi.ch](mailto:archiver@psi.ch), or the archiver contacts listed under [Controls Services](../../4._Contacts_Support/Service.md).
@@ -1,10 +1,30 @@
---
title: High-speed DAQ
tags:
- SLS
- PROSCAN
- SwissFEL
- HIPA
---
# High-speed and beam synchronous (BS) data
At SwissFEL, data acquired in sync with the machine pulses is recorded by dedicated buffers, separately from the [EPICS archivers](04_data.md). Sources such as IOCs and cameras stream their data via bsread, and every data point carries its pulse ID, so data from different sources can be correlated pulse by pulse.
How long data is kept is set by data policies matched to channel names. By default data is kept only for a short time; selected channels can be kept longer or at a reduced rate (for example every 100th pulse).
## Buffers
| Buffer | Records | Configuration |
| --- | --- | --- |
| SwissFEL Data Buffer | BS scalar and waveform data | [sf_databuffer](https://gitea.psi.ch/archiver_config/sf_databuffer) |
| SwissFEL Image Buffer | Camera images | [sf_imagebuffer](https://gitea.psi.ch/archiver_config/sf_imagebuffer) |
| SwissFEL RF Data Buffer | RF data around interlocks and breakdowns, kept long term for post-mortem analysis. Retrieved together with the Data Buffer. | [sf_rf_databuffer](https://gitea.psi.ch/archiver_config/sf_rf_databuffer) |
| TWLHA Data Buffer | BS data at TWLHA | [twlha_databuffer](https://gitea.psi.ch/archiver_config/twlha_databuffer) |
To add or change BS sources, see [How-To: Archiver Configurations](../../3._Knowledge_Center/03_how_to/06_archiver_config.md).
## Retrieving data
- [Data Hub](../Tools/04_data_hub.md)
## Contact
[archiver@psi.ch](mailto:archiver@psi.ch), or the archiver contacts listed under [Controls Services](../../4._Contacts_Support/Service.md).
@@ -8,3 +8,38 @@ tags:
---
# How-To: Archiver Configurations
What the archivers and buffers record is defined in configuration repositories in the [archiver_config](https://gitea.psi.ch/archiver_config) organisation on Gitea. To record new EPICS PVs or BS sources, or to change how existing ones are recorded, you edit the configuration in the matching repository.
The file format and the way changes are submitted differ between repositories, so always follow the README of the repository you are working in. You need to be logged in to Gitea to see the repositories, and you need write access to submit changes; each README explains how to request it.
## EPICS PVs (archivers)
There are currently three types of EPICS archiver, each with its own configuration format and workflow.
### SLS and SwissFEL
- SLS: [sls_archiver](https://gitea.psi.ch/archiver_config/sls_archiver)
- SwissFEL: [sf_archiver](https://gitea.psi.ch/archiver_config/sf_archiver)
### HIPA, PROSCAN and TWLHA
- HIPA: [hipa_archiver](https://gitea.psi.ch/archiver_config/hipa_archiver)
- PROSCAN: [proscan_archiver](https://gitea.psi.ch/archiver_config/proscan_archiver)
- TWLHA: [twlha_archiver](https://gitea.psi.ch/archiver_config/twlha_archiver)
### Office archiver
- Systems on the PSI office network: [office_archiver](https://gitea.psi.ch/archiver_config/office_archiver)
## BS sources (buffers)
- SwissFEL Data Buffer: [sf_databuffer](https://gitea.psi.ch/archiver_config/sf_databuffer)
- SwissFEL Image Buffer: [sf_imagebuffer](https://gitea.psi.ch/archiver_config/sf_imagebuffer)
- SwissFEL RF Data Buffer: [sf_rf_databuffer](https://gitea.psi.ch/archiver_config/sf_rf_databuffer)
- TWLHA Data Buffer: [twlha_databuffer](https://gitea.psi.ch/archiver_config/twlha_databuffer)
## See also
- [EPICS Data Archiving](../../2._Services_Portfolio/Services/04_data.md)
- [High-speed DAQ](../../2._Services_Portfolio/Services/05_datahs.md)
@@ -8,3 +8,150 @@ tags:
---
# How-To: PacketFence (and Other AIT Tools)
# Packet Fence @ PSI
On July 2026 we got a very nice presentation by AIT about Packet Fence at PSI
You can find it in our Controls Share Point space: [Org_8210_Control Systems > General > Tools > 2026-07-08_packetfence.pptx](https://dpsich.sharepoint.com/teams/m365-tgo_Org_8210_ControlSystems/_layouts/15/Doc.aspx?sourcedoc=%7B60AD6577-C935-40F6-BA06-110EC7FA13E9%7D&file=2026-07-08_packetfence.pptx)
## Executive Summary
The presentation explains the correct operational use of PacketFence and QIP at PSI, especially for devices connected to the SwissFEL and SLS control-system networks.
Its central message is:
> PacketFence controls network access, but it is not the authoritative source for IP addresses, hostnames, online status, or device inventory. QIP must be used for infrastructure-level address, DNS, DHCP, and reachability information.
## PacketFence’s role at PSI
PacketFence is a Network Access Control, or NAC, system. Its purpose is to control whether a device may access the network and under which network role it should operate.
It should not be treated as the authoritative source for:
- IP addresses
- Hostnames
- DHCP and DNS information
- Current device reachability
- General device inventory
### Practical interpretation
Use PacketFence when the question is:
- Is this device registered for network access?
- Which role has been assigned to it?
- Should its registration be removed?
Use QIP when the question is:
- Which IP address or hostname belongs to the device?
- Which subnet contains it?
- Is the address present in DNS?
- Does the device respond to a ping?
- Is a subnet full?
- Which address-management information is currently authoritative?
## Registering and deleting devices
For a new device, the initial registration workflow is performed in PacketFence:
- Find or add the device.
- Set its status to Registered.
- Assign the appropriate role.
To remove a device, its status should be changed to Unregistered. PacketFence then deletes the device after seven days. This creates a grace period rather than removing the record immediately.
### Operational implication
“Unregistered” should be understood as the start of a delayed deletion process. If a device is mistakenly unregistered, there is potentially time to correct the status before automatic deletion, although the presentation does not document the recovery procedure.
## Roles, VLANs, and subnets
A role is mapped to a VLAN, but a role is not itself a VLAN.
A role is the logical classification selected in PacketFence. Behind that role, the network configuration maps the device to the appropriate VLAN and subnet. Users should therefore choose the intended role rather than manually reasoning only in terms of VLAN identifiers.
### Why the distinction matters
A user should not assume that a role name directly represents a physical switch segment or that it is interchangeable with a VLAN. The role is an access-policy abstraction; the underlying network mapping determines where the device is placed.
This separation allows the network configuration to evolve without requiring users to work directly with every low-level VLAN parameter.
## What to do when a subnet is full
Before assigning or changing a role, users should check the corresponding subnet’s capacity in QIP.
If a subnet is full:
- Do not continue assigning devices to it.
- Check available address capacity in QIP.
- Select another suitable role or subnet.
### Operational caution
The instruction “use another one” should not be interpreted as choosing an arbitrary subnet. The replacement still needs to match the device’s intended function and access policy. QIP confirms availability, while the PacketFence role determines the required network placement.
## QIP as the authoritative address-management tool
QIP is described as the software used to manage network addresses and services. It:
- Tracks IP addresses
- Manages DNS
- Manages DHCP
- Organizes addresses into subnets
- Supports address and device lookup
- Provides operational checks such as pinging an address
The presentation points users to QIP at PSI. It also contains an unresolved note about whether the password should be distributed through the section chat. The deck therefore identifies the access question but does not define a final credential-distribution policy
### Recommended interpretation
QIP should be the first reference when verifying network identity and infrastructure state. PacketFence may display associated network details, but those values should not override the information maintained in QIP.
## Searching for devices in QIP
QIP supports searches using the same primary device identifiers commonly seen in PacketFence:
- Hostname
- IP address
- MAC address
The search interface provides specific search modes, including DNS hostname, IPv4 address, and MAC address. Regular expressions can be used when the exact value is unknown or when multiple related entries need to be found.
### Suggested search order
A practical lookup sequence is:
1. MAC address, when copied from PacketFence or a device label. This is usually the strongest hardware identifier.
2. Exact hostname, if the configured DNS name is known.
3. Exact IP address, if the address is known and believed to be current.
4. Pattern or regular-expression search, when only part of the hostname is known.
The first three identifiers are explicitly supported by the deck. The ordering above is a practical workflow derived from the presentation’s distinction between PacketFence and QIP.
## Search syntax differs between PacketFence and QIP
The two systems do not interpret search patterns in the same way:
- PacketFence uses a contains search field.
- QIP supports regular-expression searches.
The deck gives a hostname-pattern example resembling X11MA*. The essential lesson is not to copy a search expression blindly between the systems, because “contains” matching and regex matching have different semantics.
### Practical consequence
If a search in PacketFence returns results but the same text in QIP does not, the device may still exist. The query may simply need to be translated into valid QIP regex syntax.
For example, depending on QIP’s regex implementation, a prefix search may require a pattern such as ^X11MA.* rather than a shell-style wildcard. The presentation itself does not formally specify QIP’s complete regex syntax, so users should check an existing working query before using complex expressions.
## Checking whether a device is reachable
To check a device from QIP, the deck gives this procedure:
1. Open Address Management.
2. Open Subnets.
3. Select the relevant subnet.
4. Right-click the device or address.
5. Select Ping.
## End-to-end workflow implied by the presentation
### For a new device
1. Obtain the device’s MAC address and intended network function.
2. Locate or register the device in PacketFence.
3. Set its status to Registered.
4. Assign the appropriate role.
5. Understand that the role maps to a VLAN and subnet but is not itself the VLAN.
6. Check subnet capacity in QIP.
7. Search QIP by MAC address, hostname, or IP address.
8. Verify the resulting DNS and DHCP information.
9. Use QIP’s ping function when a reachability check is needed.
### For an existing device with inconsistent information
1. Do not assume PacketFence’s IP, hostname, timeline, or online status is current.
2. Copy the most reliable identifier available, preferably the MAC address.
3. Search for the device in QIP.
4. Confirm the authoritative hostname and IP information.
5. Open the corresponding subnet.
6. Ping the address if current device reachability needs to be tested.
7. If the assigned subnet is full or inappropriate, select another approved role/subnet combination.
### For retiring a device
1. Locate it in PacketFence.
2. Set its status to Unregistered.
3. Expect automatic deletion after seven days.
4. If DNS, DHCP, or IP cleanup is also required, verify that separately in QIP because PacketFence is not the authoritative address-management system.
## Main takeaways
1. PacketFence is for network access control.
2. QIP is for IP address, DNS, DHCP, subnet, and reachability information.
3. Do not trust PacketFence as the source of truth for hostname, IP address, online status, or inventory.
4. Register devices by setting them to Registered.
5. Remove devices by setting them to Unregistered; deletion follows after seven days.
6. Choose roles carefully because they map devices to VLANs and subnets.
7. Check QIP before using a subnet, particularly when capacity may be exhausted.
8. Translate searches correctly: PacketFence uses contains matching, while QIP uses regex.
9. Use QIP’s Ping action to test reachability, but interpret failed pings cautiously.