Guided Edit changes a scenario with a form instead of text: its name, its proxy rules, groups of destination servers, and its email. It writes the scenario file for you, has the proxy service check it, and keeps the previous version. Nothing is saved until you click Save.

Select an inactive scenario in the main window and click GUIDED EDIT. The pages are on the left, the help for the open page on the right. To change the active scenario, edit a copy (see Changing the active scenario).

Recording: Backup/Contingency is opened with Guided Edit; on the Proxy Rules page the Cardiology DICOM Store rule is edited, its destination port is changed from 12002 to 12102, and the scenario is saved.

1. General

Guided Edit, page 1 General: scenario name, description, and the tick box for email notifications.
FieldWhat it is for
Scenario nameShown in the scenario list, the title bar, the status page and emails ({{NAME}}). It must be unique.
DescriptionA short note for other administrators, also on the status page and in emails ({{DESCRIPTION}}).
Send email notifications when this scenario starts or stopsEmails the recipients on page 4 when the scenario is activated, when the service starts or stops, and after a server restart.

2. Proxy Rules

Guided Edit, page 2 Proxy Rules: the four sample rules with their listen ports and destinations, and the buttons Add, Edit, Copy, Delete, Move Up and Move Down.

Each row is one rule: the port PacsSwitch listens on and where its traffic goes. Use Add, Edit, Copy and Delete; Move Up and Move Down set the order in the file.

The Edit Proxy Rule window

The Edit Proxy Rule window: rule name, listen IP and port, keepalive, destination type, destination IP and port, Test destination, the advanced settings, client redirects and called AE title rewrite.
FieldWhat it does
Rule nameA name for the rule, for example "Radiology Dicom Store". It appears on the status page and in the monitoring windows.
Listen on IPAll interfaces opens the port on every address of this server. Choose one of the server's addresses to accept the traffic only there, for example to keep DICOM on one network or when another program uses the same port on a different address. Other IP address... uses the address typed in Other IP.
Listen portThe port the modalities send to, for example 104 or 12001.
Enable TCP keepaliveLets Windows notice and close connections whose other end has gone away (an unplugged cable, a crashed device). Recommended.
Destination typeIP address or Hostname, each with a port, or an Upstream group from page 3 for failover or load balancing. DICOM and HL7 are plain TCP: never type http://.
Test destinationTries to connect to the destination now and says whether it answers.

Advanced settings

SettingWhat it does
proxy_timeoutCloses a connection on both sides after this much time without any traffic, for example 30s. Empty uses the server-wide setting in Settings > nginx.
proxy_connect_timeoutGives up when the destination does not accept the connection within this time, for example 5s.
Allowed / blocked IPsOne address or range per line (10.1.2.3 or 10.1.0.0/16). Plain entries are the only clients allowed; everyone else is refused. A minus sign in front (-10.20.30.40) blocks that client while everyone else stays allowed, which is handy for a misbehaving device. If a client matches both a plain entry and a minus entry, it is blocked. Refused connections show as 403 in Connection History. Empty allows everyone; remember to allow monitoring tools that connect to the port.
Max connections per clientThe most connections one client address may have open on this rule at once (1 to 1000); more are refused and show as 503. Modalities often open several at once, so be generous. Empty means no limit.
Client redirectsSends particular clients somewhere else: one line per client, its IPv4 address and the destination, for example 10.20.30.41 -> 10.9.9.9:11112, a hostname with a port, or an upstream group. Every other client keeps the rule's destination. A redirect has no fallback if its destination is down.
Called AE title rewriteWith the AE title rewrite add-on: changes the called AE title in the association request, one line per title (OLDPACS -> NEWPACS), or ANY -> NEWPACS for all others. The modality gets its own title back in the answer, and the calling AE title is never changed. Rewrites pass through the PacsSwitch relay; if the relay is not running, they are not applied and Server Health reports it.

Rules with advanced settings take several lines in the file. Guided Edit reads them back, and keeps rules that use other proxy settings exactly as written.

3. Upstream Groups

An upstream group is a named list of destination servers that a rule can use as its destination. Groups are an optional feature that most configurations do not need. In the group window, pick a template under Start from template and click Apply template, then change the addresses. One server line per destination:

TemplateHow the traffic is sharedExample
Single server (central alias)One server. Several rules can use the group, so an address change is made in one place.server 10.10.20.105:12200;
Primary with automatic failover (backup)The first server gets all the traffic; servers marked backup are used only when it does not answer.server 10.10.20.105:104;
server 10.10.20.106:104 backup;
Load balancing cluster (round-robin)New connections are shared evenly.three server lines
Weighted load balancingLike round-robin, with weight=3 sending more to a larger server.server 10.10.20.101:104 weight=3;
HybridBalanced servers, plus a backup used only when all of them fail.two lines, then one with backup
Load balancing sends different connections to different servers, so the images of one study can arrive on more than one server. Use it only for servers that synchronize their storage, or that share the same storage, such as the nodes of one PACS cluster. To switch between your Primary and Backup PACS, use two scenarios; within one scenario, failover is the usual choice for a PACS with a standby server.
Guided Edit, page 3 Upstream Groups: the group PACS_Group_1 with 3 servers, 2 of them backup, not yet used by a rule; the buttons Add, Edit and Delete.

The Usage column says how many rules use a group ("used by 2 rule(s)"), or "not used" when no rule has it as its destination yet. A group that a rule uses cannot be deleted until those rules are changed.

4. Email Notifications

The email PacsSwitch sends when this scenario is activated, started or stopped. The SMTP server is set once in Settings > Email.

FieldWhat it is for
Sender addressThe From address.
Recipient address(es)One or more addresses, separated by commas. These people also receive the health and network alerts while this scenario is active.
Subject, Message bodyThe text, with variables that PacsSwitch fills in. Pick one under Insert variable and click Insert. Use default subject & body starts again from the standard text.
VariableFilled in with
{{NAME}}, {{DESCRIPTION}}The scenario's name and description
{{EVENT}}What happened, for example Scenario Started or Scenario Stopped
{{DATE}}, {{TIME}}When it happened
{{HOSTNAME}}, {{IP}}, {{UPTIME}}The server's name, address and uptime
{{USER}}, {{USERNAME}}The account running PacsSwitch, and the person who caused the event (or Monitor for automatic actions)
{{ACTIVE_SCENARIO}}, {{RULE_COUNT}}, {{SERVICE_STATUS}}The active scenario's file, its number of rules, and whether the service is running
{{SERVER_DESC}}, {{GROUP}}This server's description and the region's group name (Settings > Region)
{{STATUS_LINK}}, {{STATUS_LINKS}}, {{STATUS_LINKS_ATTENTION}}A link to this server's status page; links to every server of the region; only the region's servers that need attention
{{STATS}}, {{STATS-FORCE-NEW}}The last saved port statistics; fresh statistics gathered when the email is sent
{{BR}}A line break
Guided Edit, page 4 Email Notifications: sender, recipients, subject and message body, with the Insert variable list open.

5. Review & Save

Shows exactly the file that will be written. Validate (nginx -t) asks the proxy service to check it, and Save does the same and warns you before writing a file the proxy service rejects. Before the file is overwritten, the previous version is copied to <data folder>\backups\scenario_edits.

Related pages

This page was revised 2026-10-30.


← Scenarios: create, test and activateScheduled scenario changes →