KB 094 – Stopping and starting the java agent from the command line

Symptom:

You want to stop or start PowerConnect java agent and you have no access to the NetWeaver administrator /nwa and you want to stop/start the app from the command line. This can be done using SAP J2EE telnet

Procedure

  1. telnet <J2EE host> 5<XX>08    # XX is instance number
  2. <login as admin user>

    KB 094 – Stopping and starting the java agent from the command line 1

  3. lsc    # Check node list, where ID is displayed

    KB 094 – Stopping and starting the java agent from the command line 2

  4. jump <ID of problematic server node>

    KB 094 – Stopping and starting the java agent from the command line 3

  5. Using following command to display the applications
    • To get the status of a PowerConnect application
      list_app | grep -i power

      KB 094 – Stopping and starting the java agent from the command line 4

    • To get all references for this application
      app_refs_graph <app_name>

      KB 094 – Stopping and starting the java agent from the command line 7

  6. Then you may start or stop instance with following command
    • stop_app com.powerconnect5/spcj_wd
    • stop_app com.powerconnect5/spcj_app
      KB 094 – Stopping and starting the java agent from the command line 5

      Start is again with start_app command

    • start_app com.powerconnect5/spcj_wd
    • start_app com.powerconnect5/spcj_app
      KB 094 – Stopping and starting the java agent from the command line 6
  7. Download PDF version here