cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1590
Views
0
Helpful
2
Replies

how to stop java vm manually in NSO 5.1

kuiliu
Cisco Employee
Cisco Employee

Stopping NSO built-in java vm and transiting all NSO operations to another java vm started in Eclipse is handy for debug during development, however since NSO 5.1 java-vm stop command isn't available anymore. does anyone have any idea how to manually stop and start NSO java vm in NSO 5.1?

 

Thanks

1 Accepted Solution

Accepted Solutions

Michael Maddern
Cisco Employee
Cisco Employee

Hi,

 

These options have been hidden, not removed. They are in the debug hide-group. To unhide them you need to add the hide-group to your ncs.conf. Add the following lines:

 

  <hide-group>
    <name>debug</name>
  </hide-group>

After restarting NSO, you will be able unhide this group in the CLI using the unhide command:

 

ncs_cli -u admin

admin connected from 127.0.0.1 using console on MMADDERN-M-D0DF
admin@ncs> unhide debug
[ok][2019-07-05 11:53:05]
admin@ncs> request java-vm ?
Description: Control of the NCS Java VM
Possible completions:
  restart - Restart the Java VM
  start   - Stop the Java VM
  stop    - Stop the Java VM

View solution in original post

2 Replies 2

Michael Maddern
Cisco Employee
Cisco Employee

Hi,

 

These options have been hidden, not removed. They are in the debug hide-group. To unhide them you need to add the hide-group to your ncs.conf. Add the following lines:

 

  <hide-group>
    <name>debug</name>
  </hide-group>

After restarting NSO, you will be able unhide this group in the CLI using the unhide command:

 

ncs_cli -u admin

admin connected from 127.0.0.1 using console on MMADDERN-M-D0DF
admin@ncs> unhide debug
[ok][2019-07-05 11:53:05]
admin@ncs> request java-vm ?
Description: Control of the NCS Java VM
Possible completions:
  restart - Restart the Java VM
  start   - Stop the Java VM
  stop    - Stop the Java VM

great, works, thanks