<!--******************************************************************************
** Program: WSBroker_Admin.htm
** Author: Dmitri Levin - Protech Systems
** Date: January 18, 2001
** Purpose: WebSpeed Broker Maintenance screen
** Notes:
**
** Author Date Notes
**
*********************************************************************************-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="Author" content="dal - Capita Technologies">
<TITLE>WebSpeed Broker Administration</TITLE>
<script language="javascript">
function populateWsBrokerName(jscWsBrokerName) {
document.forms[0].wsbrokername.value = jscWsBrokerName;
return true;
}
</script>
</head>
<body>
<center>
<H2>WebSpeed Broker Administration</H2>
<SCRIPT LANGUAGE="Speedscript">
define variable cWsBrokerName as character no-undo.
define variable cWsNameServer as character no-undo.
define variable cAgentsNumber as character no-undo.
define variable cLine as character no-undo.
define variable cCommand as character no-undo.
define variable cAction as character no-undo.
define variable cButtonValue as character no-undo.
define variable lOutput as logical no-undo.
IF cWsBrokerName <> "" or cWsNameServer <> "" then
CASE cButtonValue:
WHEN "Broker Status" THEN ASSIGN cCommand = "wtbman -i " + cWsBrokerName + " -query".
WHEN "Add Agents" THEN ASSIGN cCommand = "wtbman -i " + cWsBrokerName + " -addagents " + cAgentsNumber.
WHEN "Trim Agents" THEN ASSIGN cCommand = "wtbman -i " + cWsBrokerName + " -trimagents " + cAgentsNumber.
WHEN "Start Broker" THEN ASSIGN cCommand = "wtbman -i " + cWsBrokerName + " -start".
WHEN "Stop Broker" THEN ASSIGN cCommand = "wtbman -i " + cWsBrokerName + " -stop".
WHEN "Name Server Status" THEN ASSIGN cCommand = "nsman -i " + cWsNameServer + " -query".
END. /* CASE cButtonValue */
if cCommand <> "" and cWsBrokerName <> "" and
not ( cButtonValue matches "*Name Server*" ) then
do:
input through value(cCommand).
REPEAT:
import unformatted cLine.
if cLine matches "*(8288)*" then lOutput = yes.
if lOutput then {&OUT} cLine "<br>".
END.