ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahl_5.4.0.1/rzahlcstmmsgs.htm

73 lines
4.4 KiB
HTML

<?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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<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))' />
<title>Send custom messages through iSeries NetServer</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="custommsgs"></a>
<h2 id="custommsgs">Send custom messages through iSeries NetServer</h2>
<p>If you have built the GO NETS tools for iSeries NetServer&trade; using the QUSRTOOL
library support, then you can use the Send NetServer Message (SNDNSVMSG) command to send
custom messages to registered users on the network. The command is available
through option 14 on the GO NETS menu, and it functions like the NET SEND
command on Windows.</p>
<p>The GO NETS tools allow the user to use commands or a menu (instead
of the NetServer APIs) to add, change, display, and work with shares, start
and end NetServer; and change and display NetServer configuration information.</p>
<p>Example: Send Windows message to user name JOE1 on the network
and to user KRISTY specifically on the client machine WORKSTATION1:</p>
<div class="lines"><tt class="xph">SNDNSVMSG MSG('Reminder: Memo is due today.') TONETID((JOE1) (KRISTY <br />
WORKSTATION1))</tt><br />
</div><p class="indatacontent">Since a workstation name is not provided for the
first user (JOE1), the message is sent to the PC that holds the NetBIOS name.
Normally, when a Windows 2000, Windows XP, or Windows Server 2003 workstation
is started, the workstation registers its NetBIOS name on the local subnet
and with WINS (when WINS is configured).</p>
<p>When a user logs on, then the user's name is also registered
with the messenger service. To see which names are registered with the messenger
service, specify <tt class="xph">NBTSTAT -a workstation</tt> from a command prompt.
The following example output shows four registered message names on workstation
HORSE:</p>
<pre class="xmp"> NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
HORSE &lt;00> UNIQUE Registered
DEPT8 &lt;00> GROUP Registered
HORSE &lt;20> UNIQUE Registered
DEPT8 &lt;1E> GROUP Registered
HORSE-AFS &lt;20> UNIQUE Registered
HORSE &lt;03> UNIQUE Registered
HORSE$ &lt;03> UNIQUE Registered
MANNY &lt;03> UNIQUE Registered</pre>
<p><span class="bold">Example:</span> Send Windows message to all users
with active session connections to iSeries NetServer:</p>
<pre class="xmp">SNDNSVMSG MSG('&amp;1, the Hawthorne server will be taken down for a disk
replacement at 1pm') TONETID((*ALLNSVCNN))</pre><p class="indatacontent">The <tt class="xph">&amp;1</tt> can
be used to indicate the user name for replacement text in the message.</p>
<p><span class="bold">Example:</span> Send Windows message to all users
who have made a connection in the past to iSeries NetServer (since it was restarted): <tt class="xph">SNDNSVMSG MSG('Good morning, dedicated users!') TONETID((*ALLUSERS))</tt></p>
<p>Messages cannot be longer than 126 character.</p>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>