Commit graph

9 commits

Author SHA1 Message Date
Lars Amsel
d1458a2cf3 MPM: add ability to run scripts to MPM shell
MPM shell now supports script execution. It utilizes the cmdqueue of
Pythons cmd.Cmd class for this. The script to execute is a text file
containing the commands one per line.

The output decoration of MPM shell changed. Commands are decorated with
">" whereas responses use "<" at line start. Multiline responses are
decorated in each line.

Cleanup overwritten methods of cmd.Cmd to allow proper shutdow in
interactive as well as in scripted mode.

Improved pylint score.
2020-02-07 09:14:41 -06:00
bidavis
9ca8504f8e mpm: include the failed mpm_shell command
This commit changes an mpm_shell error message to include the command
that failed when the mpm_shell does not have the claim token.
2020-01-06 14:33:33 -08:00
Alex Williams
ea0b759c02 mpm_shell: Multiprocessing instead of threading for claimer loop
If we use threading, the claimer loop's thread won't get scheduled in a
timely manner on n3xx. Using multiprocessing frees the claimer loop from
using the same GIL and gives back timely reclaim calls.
2018-12-17 17:43:55 -08:00
Martin Braun
e9288a439c mpm: Update all license headers
- Fix typo in company name (missing 'a')
- Updated SPDX license identifier to version 3.0
2018-02-19 16:55:08 -08:00
Derek Kozel
f764f5ea6d mpm: Changed mpm_shell to support scripted use 2018-01-24 10:32:30 -08:00
Martin Braun
8815098747 mpm: Harmonize all license header
Now uses SPDX headers everywhere.
2017-12-22 15:05:58 -08:00
Martin Braun
275b81c341 mpm: Add 'hijack' mode to mpm_shell 2017-12-22 15:05:06 -08:00
Martin Braun
d711ad4c93 mpm: RPC methods now tell us if they need a claim
On the RPC server side, we keep track of which methods require a claim
token. MPM shell uses this info to automatically add claim tokens when
required.
2017-12-22 15:04:00 -08:00
Martin Braun
f24b7fcdbd mpm: Added mpm_shell.py
Was actually the old rpc_shell.py, was renamed and heavily refactored.
Now includes claim logic and other fancy features.
2017-12-22 15:04:00 -08:00