Note of Caution: This tool is designed for experienced administrators. Misuse can lead to unintended consequences across all servers. If you’re not confident in your Linux skills, we recommend steering clear of this tool—it’s powerful but unforgiving.
cPFence recently launched a game-changing arsenal of bulk tools for Enhance Servers, designed to save administrators an immense amount of time. From clearing cache, installing LiteSpeed plugin with Advanced Presets and Redis ON, and running due cron jobs, to creating new users, resetting LiteSpeed plugins, Installing / Uninstalling Plugins , and much more, cPFence has turned tedious tasks into one-click operations.
But many Enhance users had one question in mind: What if we could run these tools across all servers in our cluster? With clusters of 30 or more servers, running commands individually isn’t practical. And let’s face it—Enhance is all about efficient cluster management through a single control panel.
While some users rely on tools like ClusterSSH, we have found that it is not as efficient, and managing clusters with Tmux manually can be tedious. This is where the cPFence MultiRun Tool comes in. Imagine managing all servers in your cluster with just one command—automatically fetched server IPs, one seamless Tmux session, and a powerful tool to run commands across your entire fleet.
Bulk Operations Made Effortless
Picture this:
- Installing LiteSpeed Plugin: Deploy and configure it with advanced presets and enable Redis caching on all WordPress sites across 30 servers in seconds.
- Uninstalling Plugins Server-Wide: Remove unwanted plugins across all servers with one command.
- Running Due Cron Jobs: Execute all pending WordPress cron jobs across your entire cluster instantly.
- Updating Security Features: Bulk-enable features like XSS protection or automatic idle user logout for WordPress sites on all servers.
- Creating New WordPress Users: Add a new admin user across all sites on every server with ease.
With the cPFence MultiRun Tool, your imagination is the only limit. Combined with cPFence’s robust features, it’s a must-have for any administrator managing Enhance clusters.
Getting Started in Minutes
Setting up the cPFence MultiRun Tool is quick and straightforward. The only prerequisite is enabling passwordless SSH login for all servers, a task that takes just 15 minutes for 30 servers—and only needs to be done once.
Here’s how:
- Generate an SSH Key Pair:
Runssh-keygen
on your main server to create a key pair (default: Ed25519). - Copy the Key to Target Servers:
- If password login is enabled: Use
ssh-copy-id root@<server-ip>
to copy the public key. - If password login is disabled: Manually copy the public key (e.g.,
~/.ssh/id_ed25519.pub
) to~/.ssh/authorized_keys
on the target server.
- If password login is enabled: Use
- Test the Connection:
Verify passwordless login by runningssh root@<server-ip>
. Repeat for all servers.
Once you can log in to all servers without entering a password, you’re ready to roll.
Activating the MultiRun Tool
To start the tool, simply run:
cpfence --multirun
The tool will prepare your session in seconds. Then, attach to the Tmux session by running:
tmux attach
You’ll have all your servers open in a synchronized Tmux session, ready for bulk commands.
Collaborative and Real-Time Monitoring
The MultiRun Tool isn’t just about efficiency; it’s also about teamwork.
- Share Sessions: Allow multiple team members to attach to the same session with
tmux attach
and collaborate in real-time. Watch as commands are typed and executed across all servers. - Monitor Operations: Use a shared screen in your office to monitor sensitive bulk operations being performed by your administrators across all servers.
Flexibility and Power
The MultiRun Tool supports any Linux commands, making it a versatile addition to your toolkit. Whether it’s managing Enhance clusters, configuring WordPress sites, or running system-level commands, the possibilities are endless.
Note of Caution: This tool is designed for experienced administrators. Misuse can lead to unintended consequences across all servers. If you’re not confident in your Linux skills, we recommend steering clear of this tool—it’s powerful but unforgiving.
The Future of Cluster Management
With the cPFence MultiRun Tool + New Bulk Tools , managing Enhance clusters has never been easier or more efficient. From routine maintenance to complex operations, this tool ensures you can get the job done faster and smarter.
We hope this update becomes a valuable part of your daily server management routine. Happy bulk commanding!
No comment