| CPC G06F 11/0793 (2013.01) [G06F 11/0772 (2013.01); G06F 11/327 (2013.01); G06F 18/214 (2023.01); G06N 20/00 (2019.01)] | 20 Claims |

|
1. A system comprising:
one or more processors coupled to a memory; and
a program stored in the memory and configured to be executed by the one or more processors, the program including instructions that:
detect a plurality of failure-success pairs of command line interface (CLI) commands from historical usage data, a failure-success pair including a successfully-executed CLI command immediately following a failed CLI command;
compute a probability for a failure-success pair, the probability representing a likelihood that the successfully-executed CLI command remediates the failed CLI command of the failure-success pair; and
select a successfully-executed CLI command, of a failure-success pair, to remediate a failed CLI command based on an associated probability.
|
|
8. A computer-implemented method, comprising:
obtaining a plurality of failure-success pairs, a failure-success pair including a failed CLI command and a successfully-executed CLI command, wherein the successfully-executed CLI command immediately followed a failed CLI command in historical usage data of the CLI;
receiving an error message from a failed CLI script, the failed CLI script including a first failed CLI command;
selecting a successfully-executed CLI command to remediate the first failed CLI command based on the first failed CLI command matching the failed CLI command of the selected successfully-executed CLI command; and
forming a recommendation to remediate the first failed CLI command, the recommendation including the selected successfully-executed CLI command.
|
|
16. A device, comprising:
at least one processor coupled to a memory;
wherein the at least one processor is configured to:
detect a failure of a command of a command line interface to execute successfully;
determine a failure type of the failed command;
generate a recommendation to correct the failed command from a conditional probability model given the failed command and the failure type, the recommendation including a success command to remedy the failed command, the conditional probability model predicting the success command based on a probability of the success command immediately following the failed command; and
output the recommendation to a user device having initiated the failed command.
|