# How to stop a server without SMH

**URL:** <https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [July 25, 2007, 6:16pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093 "2007-07-25T18:16:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [July 25, 2007, 6:16pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/1 "2007-07-25T18:16:54Z")

</div>

We have a broker running on a box that we have no direct access to, so we cannot use the System Management Hub there. Is there any way to stop a server from the command line? I can see which services are running using etbinfo, but have not been able to look at the individual servers. An RPC server can be terminated using SYSRPC, but the server I wanted to stop is a Natural program (actually it is an Attach Manager). I would like to know how to stop any server without using SMH.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 25, 2007, 6:24pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/2 "2007-07-25T18:24:32Z")

</div>

> [@Priscilla Fuller](#):
>
> We have a broker running on a box that we have no direct access to, so we cannot use the System Management Hub there.

What operating system is running on this box ? Is SMH running on the box ?

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [July 25, 2007, 7:02pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/3 "2007-07-25T19:02:20Z")

</div>

Rolf  
We have a number of different boxes, all running some flavour of Unix, and different versions of Entire X. On most of them SMH was not installed. The particular box where I had the problem yesterday happens to be SCO Unix and Entire X version 611. This customer is about to be upgraded to Red Hat 4 and the latest versions of the SAG software. We will still not have direct access to the box so still won’t be able to use SMH from our PCs. This is really a general question about whether there is an etbcmd to stop a server on any of these boxes. At the moment if anybody wants to stop a server they use a “kill” command, which means the server is still active in the broker.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 25, 2007, 8:04pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/4 "2007-07-25T20:04:15Z")

</div>

Hi Priscilla,

if you have a local instance of EntireX & SMH you can also administer remote Brokers.  
Click on “EntireX Broker”, choose “Add Remote Broker”, define the Broker ID (hostname:portnumber) and set the user credentials (userid is sufficient if the Broker runs without security). Then you can expand the tree for the remote Broker, click on Server and you get the choice to deregister them.

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [July 25, 2007, 8:20pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/5 "2007-07-25T20:20:56Z")

</div>

Maybe I have misunderstood you and you do not have TCP/IP access to the box where the broker is running.

In the $EXXDIR/$EXXVERS/bin you should find an executable etbcmd which you can use to shutdown any server. You might need to run etbinfo first to get the physical userid of the Server you want to terminate.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [July 30, 2007, 11:53am UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/6 "2007-07-30T11:53:29Z")

</div>

Rolf  
Thanks for your prompt replies - I tried to reply from my home PC but couldn’t for some unknown reason!  
I see now how I should have explained the situation - you are quite right - I don’t have direct TCP/IP access to the box. We log on to Box A and from there telnet to Box B. Using etbinfo -b ETB175 -d SERVICES I can see what services are running. I would like to see the actual servers but etbinfo -b ETB175 -d SERVER gives me “error inforequest INFO: Nothing found for this request”. I also would like to stop a server using etbcmd but cannot figure out how to do this.  
Thanks  
Priscilla

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [July 30, 2007, 12:12pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/7 "2007-07-30T12:12:04Z")

</div>

Where is the Broker (ETB175) in your environment? You do not need TCP/IP access to where the servers are running to shut them down, just access to the box where Broker is running.

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [July 30, 2007, 12:17pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/8 "2007-07-30T12:17:03Z")

</div>

ETB175 is on box B. I am running etbinfo and etbcmd from box B

---

<div class="post-metadata">

**Author:** ![Serdar1](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Serdar1](https://techcommunity.softwareag.com/u/Serdar1)\
**Post date:** [July 30, 2007, 12:36pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/9 "2007-07-30T12:36:50Z")

</div>

Dear Priscilla,

perhaps i understood your question wrong but i want to explain it, how you delete Servers without SMH.

First you must find out the USER-IDs !

If a Services has 2 Servers, you must kill them first.

How can you find out the USR-IDs ?

etbinfo -b -d -n -c -s -p -f

for Example :

etbinfo -bETBXXX -dSERVER -nAAABBBCC -cRPC -sCALLNAT -pserver.pro -f"%P-USER-ID"

server.pro Directory must be shared ! or you define it in PATH ;

```
 /sag/exx/v711/etc/server.pro

```

you have now for our example 2 USER-IDs ;

30344E6F7620372D3233313734352D3030303030312D303030303435

30344E6F7620372D3233313734352D3030303030312D303030303436

1. USER-ID is

3034xxxx3435

1. USER-ID is

3034xxxx3436

and now we can kill them :

etbcmd -bETBXXX -dSERVER -cSHUTDOWN -oIMMED -p30344E6F7620372D3233313734352D3030303030312D303030303435

etbcmd -bETBXXX -dSERVER -cSHUTDOWN -oIMMED -p30344E6F7620372D3233313734352D3030303030312D303030303436

---

<div class="post-metadata">

**Author:** ![Priscilla\_Fuller](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Priscilla\_Fuller](https://techcommunity.softwareag.com/u/Priscilla_Fuller)\
**Post date:** [July 30, 2007, 1:16pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/10 "2007-07-30T13:16:39Z")

</div>

Serdar  
Thankyou thankyou thankyou!  
Exactly what I was looking for  
Priscilla

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:48pm UTC](https://techcommunity.softwareag.com/t/how-to-stop-a-server-without-smh/75093/11 "2021-04-02T14:48:35Z")

</div>


