DX NetOps

 View Only
  • 1.  Shutdown Location Server on Spectro Server?

    Posted Apr 12, 2018 12:41 PM

    Is there a way to shutdown LocServer (Location Server) on a Spectro server? I need to un-mount the partition but I cant since the LocServer creates a new PID every time I kill it. Any insight is appreciated.

     

    [root@1075 bin]# fuser -v -m /opt/CA
    USER PID ACCESS COMMAND
    /opt/CA: root kernel mount /opt/CA
    caadmin 1745 ....m LocServer


    [root@1075 bin]# umount /dev/sdb
    umount: /opt/CA: target is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))


    [root@1075 bin]# kill -9 1745


    [root@1075 bin]# fuser -v -m /opt/CA
    USER PID ACCESS COMMAND
    /opt/CA: root kernel mount /opt/CA
    caadmin 49429 ....m LocServer


    [root@1075 bin]# kill -9 49429


    [root@1075 bin]# fuser -v -m /opt/CA
    USER PID ACCESS COMMAND
    /opt/CA: root kernel mount /opt/CA
    caadmin 49470 ....m LocServer



  • 2.  Re: Shutdown Location Server on Spectro Server?

    Broadcom Employee
    Posted Apr 12, 2018 12:46 PM

    Hi Jim,

     

    Location Server is controlled by processd. You will need to stop Spectrum and then stop processd by:

    1. Open a command line on the SpectroSERVER as root or sudo root

    2. cd to $SPECROOT/lib/SDPM

    3. run:  ./processd.pl stop

     

    Thank you,

    Brad



  • 3.  Re: Shutdown Location Server on Spectro Server?
    Best Answer

    Posted Apr 12, 2018 12:46 PM

    Shutting down processd gracefully should stop the LocServ. If you only want to shut down the LocServ without shutting down processd, use the $SPECROOT/bin/cmdC command with function #2. 

     

    ./cmdC
    Usage: cmdC <hostname> <function id> <pid num>/<part name>/<outputfile> <absolute path>
    function ids:
    1 = STOP_TICKET
    2 = STOP_AUTO_TICKET
    3 = PAUSE_TICKET
    4 = CONTINUE_TICKET
    5 = REQUEST_TICKET_OUTPUT
    6 = GET_ALL_ACTIVE_TICKETS
    7 = GET_TICKET_BY_PID
    8 = GET_TICKET_BY_PART
    9 = GET_INSTALL_TICKET_BY_PART
    10 = GET_ALL_INSTALL_TICKETS
    11 = ATTACH_TICKET_TO_PROCESS
    666 = KILL_ALL_ACTIVE_TICKETS_AND_EXIT
    999 = RESTART_PROCESSD



  • 4.  Re: Shutdown Location Server on Spectro Server?

    Posted Apr 12, 2018 01:12 PM

    Thank you Brad and Joesph. All good. I appreciate the assistance.