SlideShare a Scribd company logo
1 of 2
A power-handling CL program for multiple IBM i servers
Rather than connecting your AS/400's to their own separate UPSs, find out how
one UPS, one cable and a CL program can manage all your power-handling needs.
Steve Pitcher, Contributor
Here is a conundrum for you: three AS/400's, one UPS and one UPS cable. All
systems were already protected by the UPS, but there is only the one cable. This
means that in the event of a power outage, only one AS/400 will shut itself down
before the UPS runs out of battery power. The other two machines, meanwhile,
will run out of power and go down hard. All of the AS/400's need to be notified
in the event of a power loss in order to have each machine shut down.
There was talk at first of splitting the UPS cable three ways and attaching a
split to each AS/400. That idea would most likely work fine, but IBM doesn't
support such a configuration. Another option would be to purchase an additional
two UPS's and independent cables so that each AS/400 would have one . That is
fully supported, but it's a little costly and produces a lot of extra hardware.
The solution I finally came up with was so simple: Connect one UPS data cable to
our primary AS/400 and use remote commands to power down the other machines.
Creating a power-handling program
After a predetermined amount of time on UPS power, we want to notify users on
all systems of an imminent shutdown and bring down all AS/400's in a manner more
graceful than a hard power loss.
The IBM i Information Center provides an example control language (CL) program
for monitoring a message queue allocated exclusively for UPS messages and
powering down the system in a controlled fashion. We can take this code and
customize it to fit our needs.
In addition to creating the program, we will need to change a few system values
and create the message queue to handle UPS-related messages. These steps on
power-handling programs are well-documented.
Within the power-handling program, we need to add a submit remote command
(SBMRMTCMD) to power down each additional IBM i server. In order to send a
remote command to another IBM i, we need to use the CRTDDMF command to set up a
distributed data management (DDM) file on the source server for each target
server. There will also need to be a file on the target servers that each DDM
file will point to and connect.
I'd suggest putting the all of these objects in custom libraries dedicated to
UPS-related activities. On my servers and in the IBM Information Center article,
the library is defined as UPSLIB.
Create your DDM file with this command:
CRTDDMF FILE(UPSLIB/DDM170) RMTFILE(UPSLIB/GETUPSMSG) RMTLOCNAME(sys2 *IP)
In this command, the DDM file (DDM170) is created on the source server in
library UPSLIB. On the target server, I have an existing physical file called
GETUPSMSG in library UPSLIB, which the source DDM file uses to identify what
file to connect to. The rest of the command specifies the remote location name
(sys2) and the method of communication (TCP/IP).
In the execution of my power-handling CL program, I want to send a quick note to
all users on remote systems (a model 170 and a model 270 server) informing them
that they have limited time to log off. I then want to wait several minutes and
power down those systems, as well as the source server.
This code explains how to do this:
/* Notify users on 170 server */
SBMRMTCMD CMD('sndbrkmsg msg(Server will be shutting down in 5 minutes due to
power failure.
Log off immediately.) tomsgq(*allws)') DDMFILE(upslib/ddm170)
/* Notify users on 270 server */
SBMRMTCMD CMD('sndbrkmsg msg(Server will be shutting down in 5 minutes due to
power failure.
Log off immediately.) tomsgq(*allws)') DDMFILE(upslib/ddm270)
/* Notify users on this 515 server */
SNDBRKMSG MSG(Server will be shutting down in 5 minutes due to power failure.
Log off immediately.) TOMSGQ(*allws)
DLYJOB DLY(300)
/* Power down 170 server */
SBMRMTCMD CMD('pwrdwnsys option(*immed)') DDMFILE(upslib/ddm170)
/* Power down 270 server */
SBMRMTCMD CMD('pwrdwnsys option(*immed)') DDMFILE(upslib/ddm270)
/* Power down this 515 server */
PWRDWNSYS OPTION(*IMMED)
It's simple code with a powerful result. Using remote commands can be very
useful in other ways as well, including running queries on a target IBM i and
pulling the returned data back to the source IBM i.
ABOUT THE AUTHOR: Steve Pitcher is the Enterprise Servers and Application
Analyst for Minas Basin Pulp & Power in NS, Canada. He's been specializing in
System i and Lotus Domino solutions for the last decade. His blog, ENDJOBABN
covers his adventures in, and amusement with, his work on the IBM i and Lotus
Domino.

More Related Content

Similar to Apagar varios sistemas

Ch2 v70 config_overview_en
Ch2 v70 config_overview_enCh2 v70 config_overview_en
Ch2 v70 config_overview_enconfidencial
 
An Entire Concept of Embedded systems
An Entire Concept of Embedded systems An Entire Concept of Embedded systems
An Entire Concept of Embedded systems Prabhakar Captain
 
An entire concept of embedded systems entire ppt
An entire concept of embedded systems entire pptAn entire concept of embedded systems entire ppt
An entire concept of embedded systems entire pptPrabhakar Captain
 
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vn
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vnLs catalog thiet bi tu dong master p 5000-e_dienhathe.vn
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vnDien Ha The
 
Ls catalog thiet bi tu dong master p 5000-e
Ls catalog thiet bi tu dong master p 5000-eLs catalog thiet bi tu dong master p 5000-e
Ls catalog thiet bi tu dong master p 5000-eDien Ha The
 
Programable logic controller.pdf
Programable logic controller.pdfProgramable logic controller.pdf
Programable logic controller.pdfsravan66
 
vdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.pptvdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.pptAhmedAhmed974840
 
Datacenter App July09 Bashar
Datacenter App   July09   BasharDatacenter App   July09   Bashar
Datacenter App July09 BasharSantosh Pania
 
SCADA Strangelove: взлом во имя
SCADA Strangelove: взлом во имяSCADA Strangelove: взлом во имя
SCADA Strangelove: взлом во имяEkaterina Melnik
 
SCADA Strangelove: Hacking in the Name
SCADA Strangelove: Hacking in the NameSCADA Strangelove: Hacking in the Name
SCADA Strangelove: Hacking in the NamePositive Hack Days
 
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10Christoph Adler
 
SIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنزSIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنزEssosElectronic
 
IT Basics & Best Practices for Small Law Firms
IT Basics & Best Practices for Small Law FirmsIT Basics & Best Practices for Small Law Firms
IT Basics & Best Practices for Small Law FirmsNetwork 1 Consulting
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Banking at Ho Chi Minh city
 
Important cisco-chow-commands
Important cisco-chow-commandsImportant cisco-chow-commands
Important cisco-chow-commandsssusere31b5c
 
Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk
 

Similar to Apagar varios sistemas (20)

Ch2 v70 config_overview_en
Ch2 v70 config_overview_enCh2 v70 config_overview_en
Ch2 v70 config_overview_en
 
An Entire Concept of Embedded systems
An Entire Concept of Embedded systems An Entire Concept of Embedded systems
An Entire Concept of Embedded systems
 
An entire concept of embedded systems entire ppt
An entire concept of embedded systems entire pptAn entire concept of embedded systems entire ppt
An entire concept of embedded systems entire ppt
 
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vn
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vnLs catalog thiet bi tu dong master p 5000-e_dienhathe.vn
Ls catalog thiet bi tu dong master p 5000-e_dienhathe.vn
 
Ls catalog thiet bi tu dong master p 5000-e
Ls catalog thiet bi tu dong master p 5000-eLs catalog thiet bi tu dong master p 5000-e
Ls catalog thiet bi tu dong master p 5000-e
 
Programable logic controller.pdf
Programable logic controller.pdfProgramable logic controller.pdf
Programable logic controller.pdf
 
vdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.pptvdocuments.net_modbus-slave-modbus-master-in-s7.ppt
vdocuments.net_modbus-slave-modbus-master-in-s7.ppt
 
Datacenter App July09 Bashar
Datacenter App   July09   BasharDatacenter App   July09   Bashar
Datacenter App July09 Bashar
 
SCADA Strangelove: взлом во имя
SCADA Strangelove: взлом во имяSCADA Strangelove: взлом во имя
SCADA Strangelove: взлом во имя
 
SCADA Strangelove: Hacking in the Name
SCADA Strangelove: Hacking in the NameSCADA Strangelove: Hacking in the Name
SCADA Strangelove: Hacking in the Name
 
Mainframe
MainframeMainframe
Mainframe
 
CC61619 (1)
CC61619 (1)CC61619 (1)
CC61619 (1)
 
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10
CollabSphere2018 - Virtual, Faster, Better! How to virtualize IBM Notes V10
 
SIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنزSIMATIC manager سيماتك منجر سيمنز
SIMATIC manager سيماتك منجر سيمنز
 
IT Basics & Best Practices for Small Law Firms
IT Basics & Best Practices for Small Law FirmsIT Basics & Best Practices for Small Law Firms
IT Basics & Best Practices for Small Law Firms
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...
 
TSRT Crashes
TSRT CrashesTSRT Crashes
TSRT Crashes
 
Important cisco-chow-commands
Important cisco-chow-commandsImportant cisco-chow-commands
Important cisco-chow-commands
 
STE_DailyHC_TSMV6.pptx
STE_DailyHC_TSMV6.pptxSTE_DailyHC_TSMV6.pptx
STE_DailyHC_TSMV6.pptx
 
Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1Barry Hesk: Cisco Unified Communications Manager training deck 1
Barry Hesk: Cisco Unified Communications Manager training deck 1
 

Recently uploaded

chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 

Recently uploaded (20)

chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 

Apagar varios sistemas

  • 1. A power-handling CL program for multiple IBM i servers Rather than connecting your AS/400's to their own separate UPSs, find out how one UPS, one cable and a CL program can manage all your power-handling needs. Steve Pitcher, Contributor Here is a conundrum for you: three AS/400's, one UPS and one UPS cable. All systems were already protected by the UPS, but there is only the one cable. This means that in the event of a power outage, only one AS/400 will shut itself down before the UPS runs out of battery power. The other two machines, meanwhile, will run out of power and go down hard. All of the AS/400's need to be notified in the event of a power loss in order to have each machine shut down. There was talk at first of splitting the UPS cable three ways and attaching a split to each AS/400. That idea would most likely work fine, but IBM doesn't support such a configuration. Another option would be to purchase an additional two UPS's and independent cables so that each AS/400 would have one . That is fully supported, but it's a little costly and produces a lot of extra hardware. The solution I finally came up with was so simple: Connect one UPS data cable to our primary AS/400 and use remote commands to power down the other machines. Creating a power-handling program After a predetermined amount of time on UPS power, we want to notify users on all systems of an imminent shutdown and bring down all AS/400's in a manner more graceful than a hard power loss. The IBM i Information Center provides an example control language (CL) program for monitoring a message queue allocated exclusively for UPS messages and powering down the system in a controlled fashion. We can take this code and customize it to fit our needs. In addition to creating the program, we will need to change a few system values and create the message queue to handle UPS-related messages. These steps on power-handling programs are well-documented. Within the power-handling program, we need to add a submit remote command (SBMRMTCMD) to power down each additional IBM i server. In order to send a remote command to another IBM i, we need to use the CRTDDMF command to set up a distributed data management (DDM) file on the source server for each target server. There will also need to be a file on the target servers that each DDM file will point to and connect. I'd suggest putting the all of these objects in custom libraries dedicated to UPS-related activities. On my servers and in the IBM Information Center article, the library is defined as UPSLIB. Create your DDM file with this command: CRTDDMF FILE(UPSLIB/DDM170) RMTFILE(UPSLIB/GETUPSMSG) RMTLOCNAME(sys2 *IP) In this command, the DDM file (DDM170) is created on the source server in library UPSLIB. On the target server, I have an existing physical file called GETUPSMSG in library UPSLIB, which the source DDM file uses to identify what file to connect to. The rest of the command specifies the remote location name (sys2) and the method of communication (TCP/IP). In the execution of my power-handling CL program, I want to send a quick note to all users on remote systems (a model 170 and a model 270 server) informing them that they have limited time to log off. I then want to wait several minutes and power down those systems, as well as the source server. This code explains how to do this: /* Notify users on 170 server */
  • 2. SBMRMTCMD CMD('sndbrkmsg msg(Server will be shutting down in 5 minutes due to power failure. Log off immediately.) tomsgq(*allws)') DDMFILE(upslib/ddm170) /* Notify users on 270 server */ SBMRMTCMD CMD('sndbrkmsg msg(Server will be shutting down in 5 minutes due to power failure. Log off immediately.) tomsgq(*allws)') DDMFILE(upslib/ddm270) /* Notify users on this 515 server */ SNDBRKMSG MSG(Server will be shutting down in 5 minutes due to power failure. Log off immediately.) TOMSGQ(*allws) DLYJOB DLY(300) /* Power down 170 server */ SBMRMTCMD CMD('pwrdwnsys option(*immed)') DDMFILE(upslib/ddm170) /* Power down 270 server */ SBMRMTCMD CMD('pwrdwnsys option(*immed)') DDMFILE(upslib/ddm270) /* Power down this 515 server */ PWRDWNSYS OPTION(*IMMED) It's simple code with a powerful result. Using remote commands can be very useful in other ways as well, including running queries on a target IBM i and pulling the returned data back to the source IBM i. ABOUT THE AUTHOR: Steve Pitcher is the Enterprise Servers and Application Analyst for Minas Basin Pulp & Power in NS, Canada. He's been specializing in System i and Lotus Domino solutions for the last decade. His blog, ENDJOBABN covers his adventures in, and amusement with, his work on the IBM i and Lotus Domino.