Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 05:29 PM
Hi There,
Wondering if its is possible to kill a specific process based on ID. I ask as currently experiencing this issue:
When I do a top I see this entry:
Wondering, do I perhaps just restart this process name:
or is there a way to kill the process by process ID?
Version: 22.5.1.7
Switch: X870-96x-8c
Many thanks in advance
Wondering if its is possible to kill a specific process based on ID. I ask as currently experiencing this issue:
code:
AP870-1.2 # show tech-support
Another session is already collecting system information
AP870-1.3 # show session
CLI
# Login Time User Type Auth Auth Location
================================================================================
*132 Wed Aug 14 18:14:59 2019 XMCac .. ssh2 local dis xxx.227.102.250
When I do a top I see this entry:
code:
PID PPID USER STAT RSS %MEM CPU %CPU COMMAND
9253 2578 root S 11188 0.1 3 0.0 /exos/bin/expy -m showtech -- -u 1 -c show tech-support all detail
Wondering, do I perhaps just restart this process name:
code:
Process Name Version Restart State Start Time Group
-------------------------------------------------------------------------------
techSupport 1.0.0.0 0 Ready Sat Jul 27 05:25:33 2019 EXOS
or is there a way to kill the process by process ID?
Version: 22.5.1.7
Switch: X870-96x-8c
Many thanks in advance
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 05:32 PM
There is a way through debug mode, GTAC should be able to sort it out for you. Keep in mind that the process may reboot the switch, depending on the stability of the process.
6 REPLIES 6
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 08:41 PM
Thanks to taking the time to lab that, really appreciated. Will do. Cheers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 08:38 PM
I just tested in the lab on an X870 with 22.5.1 running. Restarting the techSupport process while a show tech all detail was running in another session didn't terminate hung show-tech. Which makes sense because show tech runs under python. You'll need GTAC's help to kill the specific PID.
As long as the showtech PID is still 9253 when you're connected with someone, just get into debug mode and run !kill 9253. Seemed to work in my test. While there are no guarantees it won't cause a problem, it seemed to be fine.
Hopefully they'll want to find out why it hung in the first place. If that session is no longer valid, it might make sense to try to log to a file for further review: show tech-support all detail logto file
I'll leave that decision to you and the engineer you work with 
As long as the showtech PID is still 9253 when you're connected with someone, just get into debug mode and run !kill 9253. Seemed to work in my test. While there are no guarantees it won't cause a problem, it seemed to be fine.
Hopefully they'll want to find out why it hung in the first place. If that session is no longer valid, it might make sense to try to log to a file for further review: show tech-support all detail logto file
I'll leave that decision to you and the engineer you work with 
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 06:17 PM
Hi Drew,
Thanks for responding.
I wanted to try and restart that process, but wasn't 100% sure on the effect? I have to be completely safe there would be no side effect to the switches general operation?
Was thinking in that aiming just for the process ID it would be safer, but seems there is two problems with that in that I need GTAC support and that it may reboot the switch?
Do you know if those commands are safe?
Cheers.
Thanks for responding.
I wanted to try and restart that process, but wasn't 100% sure on the effect? I have to be completely safe there would be no side effect to the switches general operation?
Was thinking in that aiming just for the process ID it would be safer, but seems there is two problems with that in that I need GTAC support and that it may reboot the switch?
Do you know if those commands are safe?
Cheers.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎08-14-2019 06:03 PM
code:
restart process techSupport
OR
terminate process techSupport graceful
