SonicMQ 8.5 - Scripting Shutdown of Containers - Forum - Technology Partner - Progress Community

SonicMQ 8.5 - Scripting Shutdown of Containers

 Forum

SonicMQ 8.5 - Scripting Shutdown of Containers

This question is answered

I'm looking for information on how to shut down containers in SonicMQ 8.5 in a scripted fashion from a Linux environment. Thus far we've been able to create a script using the ESB Admin 8.5 tool to generate a container list which then goes through and runs the 'container shutdown containername' commands, but we find that even though the containers appear to shut down in Sonic Management Console, there are still Java processes running on Linux for those containers.

Are we going about this the wrong way, or does anyone have any ideas on why shutting down the container would not also shut down the Java pieces for that container on the backend?

Verified Answer
  • Hi lozonjh,
     
    We use the following script to shutdown an ESB Container, it shuts down the container in SMC as well as the Java process:
     
    echo "connect Domain1 tcp://localhost:2506 Administrator Administrator" > stopCntnr.txt
    echo "container shutdown testContainer" >>  stopCntnr.txt
    echo "Disconnect"                       >> stopCntnr.txt
    echo "bye"                      >> stopCntnr.txt
     
    $SONIC_HOME/ESB$SONICVER/bin/esbadmin.sh < stopCntnr.txt
     
    Thanks,
    Srinivas Munigala.
     
    From: lozonjh [mailto:bounce-lozonjh@community.progress.com]
    Sent: Thursday, April 10, 2014 4:51 AM
    To: TU.OE.Tech.Partner@community.progress.com
    Subject: SonicMQ 8.5 - Scripting Shutdown of Containers
     
    Thread created by lozonjh

    I'm looking for information on how to shut down containers in SonicMQ 8.5 in a scripted fashion from a Linux environment. Thus far we've been able to create a script using the ESB Admin 8.5 tool to generate a container list which then goes through and runs the 'container shutdown containername' commands, but we find that even though the containers appear to shut down in Sonic Management Console, there are still Java processes running on Linux for those containers.

    Are we going about this the wrong way, or does anyone have any ideas on why shutting down the container would not also shut down the Java pieces for that container on the backend?

    Stop receiving emails on this subject.

    Flag this post as spam/abuse.

All Replies
  • Hi lozonjh,
     
    We use the following script to shutdown an ESB Container, it shuts down the container in SMC as well as the Java process:
     
    echo "connect Domain1 tcp://localhost:2506 Administrator Administrator" > stopCntnr.txt
    echo "container shutdown testContainer" >>  stopCntnr.txt
    echo "Disconnect"                       >> stopCntnr.txt
    echo "bye"                      >> stopCntnr.txt
     
    $SONIC_HOME/ESB$SONICVER/bin/esbadmin.sh < stopCntnr.txt
     
    Thanks,
    Srinivas Munigala.
     
    From: lozonjh [mailto:bounce-lozonjh@community.progress.com]
    Sent: Thursday, April 10, 2014 4:51 AM
    To: TU.OE.Tech.Partner@community.progress.com
    Subject: SonicMQ 8.5 - Scripting Shutdown of Containers
     
    Thread created by lozonjh

    I'm looking for information on how to shut down containers in SonicMQ 8.5 in a scripted fashion from a Linux environment. Thus far we've been able to create a script using the ESB Admin 8.5 tool to generate a container list which then goes through and runs the 'container shutdown containername' commands, but we find that even though the containers appear to shut down in Sonic Management Console, there are still Java processes running on Linux for those containers.

    Are we going about this the wrong way, or does anyone have any ideas on why shutting down the container would not also shut down the Java pieces for that container on the backend?

    Stop receiving emails on this subject.

    Flag this post as spam/abuse.