ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaji_5.4.0.1/batch_activation.htm

234 lines
13 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Batch activation" />
<meta name="abstract" content="Electronic Service Agent can be activated in a batch environment. This approach is helpful for customers with many remote systems who would like to send programs from a central site for remote activation." />
<meta name="description" content="Electronic Service Agent can be activated in a batch environment. This approach is helpful for customers with many remote systems who would like to send programs from a central site for remote activation." />
<meta name="DC.Relation" scheme="URI" content="troubleshooting_esa.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="batch_activation" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Batch activation</title>
</head>
<body id="batch_activation"><a name="batch_activation"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Batch activation</h1>
<div><p>Electronic
Service Agent™ can be activated in a batch environment. This approach
is helpful for customers with many remote systems who would like to send programs
from a central site for remote activation. </p>
<div class="section"><p>To use the batch environment method, the Electronic Service Agent™ product
must be installed and the Electronic Service Agent Simplified
Activation PTFs need to be available on each system and be installed or be
available for installation.</p>
</div>
<div class="section"><div class="p">For releases before V5R4: <ul><li><img src="./delta.gif" alt="Start of change" />Before using a program, the International License Agreement
for Services Programs must be accepted. To accept the license agreement, perform
one of the following steps: <ul><li>On a command line, enter <tt>GO SERVICE</tt>. Select <strong>Display Service
Agent license agreement</strong>. Read the agreement and press F6 (Accept the terms
of this agreement) to accept. </li>
<li>On a command line, enter <tt>QSVCDRCTR/ACPTSALIC</tt>. Read the agreement
and press F6 to accept.</li>
</ul>
<img src="./deltaend.gif" alt="End of change" /></li>
<li>Electronic
Service Agent commands are not the same as those for V5R4. See the <a href="http://publib.boulder.ibm.com/isrvagt/sdsadoc.html" target="_blank">Electronic
Service Agent User Guide for V5R3</a> Web site for information about
batch activation.</li>
</ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><caption>Table 1. Commands and descriptions</caption><thead align="left"><tr><th valign="top" width="33.165829145728644%" id="d0e60">Command</th>
<th valign="top" width="66.83417085427136%" id="d0e62">Command description</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">CHGCNTINF</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Changes the service contact information. This information
is used by the WRKCNTINF command as the local service information.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">CRTSRVCFG</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Creates the service configurations used to electronically
report problems and service information to IBM<sup>®</sup>.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">CHGSRVCFG</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Changes the service configurations used to electronically
report problems and service information to IBM.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">DLTSRVCFG</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Deletes the service configurations used to electronically
report problems and service information to IBM.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">VFYSRVCFG</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Verifies the service configurations used to electronically
report problems and service information to IBM.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">CHGSRVAGT</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Changes the operation of Electronic Service Agent.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">CHGSRVAGTA</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Changes the settings for Electronic Service Agent.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">DSPSRVAGT</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Displays several aspects of Electronic Service Agent.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">ENDSRVAGT</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Ends the Electronic Service Agent subsystem
jobs.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">RTVSRVAGT</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Retrieves the valid days of the week used by the CHGSRVATGTA
command, the AUTOPTF and AUTOTEST parameters.</td>
</tr>
<tr><td valign="top" width="33.165829145728644%" headers="d0e60 ">STRSRVAGT</td>
<td valign="top" width="66.83417085427136%" headers="d0e62 ">Starts Electronic Service Agent. If the
CHGSRVAGTA command is used before this command is used, Electronic
Service Agent is activated using those settings. If the command was not
used, Electronic
Service Agent is activated using the defaults.</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section"><p>A sample CL program is provided.</p>
<p><span class="uicontrol">Sample CL Program
for batch activation</span></p>
</div>
<div class="section"><p>This sample program refers to the fictitious ABC
Company. Any associated references to this fictitious company are for illustration
purposes only.</p>
<div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree to the terms
of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
</div>
<div class="section"><div class="p"> <img src="./delta.gif" alt="Start of change" /><pre>/********************************************************************/
/* ELECTRONIC SERVICE AGENT SAMPLE BATCH ACTIVATION PROGRAM */
/********************************************************************/
/* */
/* THIS CODE IS PROVIDED AS A SAMPLE AND IS NOT INTENDED */
/* TO BE SUPPORTED BY IBM. THIS IS SUPPLIED ON AN AS-IS */
/* BASIS AND IT IS THE RESPONSIBILITY OF THE END USER TO ENSURE */
/* THE ACCURACY OF THE PROGRAM IN THEIR ENVIRONMENT. */
/* */
/********************************************************************/
/* */
/* See the Electronic Service Agent Information Center articles */
/* for additional requirements, such as authorities and system */
/* values. */
/* */
/********************************************************************/
PGM
/********************************************************************/
/* */
/* The following variables are used to retrieve the possible */
/* days to be used as input to the CHGSRVAGTA AUTOPTF and AUTOTEST */
/* parameters. */
/* */
/********************************************************************/
DCL VAR(&amp;DAY1) TYPE(*CHAR) LEN(4)
DCL VAR(&amp;DAY2) TYPE(*CHAR) LEN(4)
DCL VAR(&amp;DAY3) TYPE(*CHAR) LEN(4)
DCL VAR(&amp;DAY) TYPE(*CHAR) LEN(4)
DCL VAR(&amp;DAYS) TYPE(*CHAR) LEN(28) +
VALUE('*WED*THU*FRI*SAT*SUN*MON*TUE')
DCL VAR(&amp;DAYPTR) TYPE(*DEC) LEN(1 0) VALUE(1)
/********************************************************************/
/* */
/* Change the contact information. */
/* */
/********************************************************************/
QSYS/CHGCNTINF CMPNY('ABC Company') CONTACT('System +
Administrator') TELNBR('123-456-7890') +
MAILADDR('123 ABC Street' *SAME *SAME +
ANYTOWN MN US 12345) LNGVER(2924) +
EMAILADDR(SYSADMIN@ABCCOMPANY.COM) +
MEDPTF(*AUTOMATIC)
/********************************************************************/
/* */
/* Configure the ECS and Service Agent connections. */
/* NOTE: THIS SAMPLE ASSUMES A DIRECT CONNECTION FOR THE PRIMARY */
/* AND A MULTIHOP CONNECTION FOR THE BACKUP. */
/* */
/********************************************************************/
QSYS/CRTSRVCFG ROLE(*PRIMARY) CNNTYPE(*DIRECT) +
CNTRYID(US) STATE(MN)
/* */
QSYS/CRTSRVCFG ROLE(*BACKUP) CNNTYPE(*MULTIHOP) +
RMTSYS('10.11.12.13')
/********************************************************************/
/* */
/* Retrieve the days of the week that can be used for CHGSRVAGTA. */
/* */
/* Choose the day that best fits the activity for this system. */
/* Use the &amp;DAYS variable. The first one is the first choice, */
/* second one is the second choice, and so on. */
/********************************************************************/
QSYS/RTVSRVAGT DAY1(&amp;DAY1) DAY2(&amp;DAY2) DAY3(&amp;DAY3)
DAYLOOP:
IF (&amp;DAY1 *EQ (%SUBSTRING(&amp;DAYS &amp;DAYPTR 4))) THEN(DO)
CHGVAR VAR(&amp;DAY) VALUE(&amp;DAY1)
GOTO DAYLOOP
ENDDO
IF (&amp;DAY2 *EQ (%SUBSTRING(&amp;DAYS &amp;DAYPTR 4))) THEN(DO)
CHGVAR VAR(&amp;DAY) VALUE(&amp;DAY2)
GOTO DAYLOOP
ENDDO
IF (&amp;DAY3 *EQ (%SUBSTRING(&amp;DAYS &amp;DAYPTR 4))) THEN(DO)
CHGVAR VAR(&amp;DAY) VALUE(&amp;DAY)
GOTO DAYLOOP
ENDDO
CHGVAR VAR(&amp;DAYPTR) VALUE(&amp;DAYPTR +4)
GOTO DAYLOOP
ENDDAYLOOP:
/********************************************************************/
/* */
/* Configure Service Agent hardware problem reporting using the */
/* day of the week that was determined above and the desired time. */
/* */
/* -- NOTE: Use this command only if you want to override the */
/* CHGSRVAGTA defaults. */
/* */
/********************************************************************/
QSYS/CHGSRVAGTA ENABLE(*YES) AUTORPT(*YES) AUTOPTF(*YES +
&amp;DAY *YES) AUTOTEST(&amp;DAY) SRVINF((*ALL))
/********************************************************************/
/* */
/* Activate Service Agent. If commands CHGSRVAGTA was used ahead of */
/* this, Service Agent will activate using those settings. */
/* If the command was not used, Service Agent will be activated */
/* using the defaults. */
/* */
/********************************************************************/
SKIPIT: QSYS/STRSRVAGT TYPE(*ACTIVATE)
ENDPGM</pre><img src="./deltaend.gif" alt="End of change" />
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="troubleshooting_esa.htm" title="Learn about general problem determination information for Electronic Service Agent including how to generate the documentation or traces.">Troubleshoot Electronic Service Agent</a></div>
</div>
</div>
</body>
</html>