US 12,222,802 B2
Failure recovery recommendations for CLI commands
Christopher O'Toole, Redmond, WA (US); and Roshanak Zilouchian Moghaddam, Kirkland, WA (US)
Assigned to Microsoft Technology Licensing, LLC, Redmond, WA (US)
Filed by MICROSOFT TECHNOLOGY LICENSING, LLC., Redmond, WA (US)
Filed on Nov. 30, 2023, as Appl. No. 18/525,828.
Application 18/525,828 is a continuation of application No. 17/100,911, filed on Nov. 22, 2020, granted, now 11,860,725.
Claims priority of provisional application 63/081,846, filed on Sep. 22, 2020.
Prior Publication US 2024/0118967 A1, Apr. 11, 2024
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 11/07 (2006.01); G06F 11/32 (2006.01); G06F 18/214 (2023.01); G06N 20/00 (2019.01)
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
OG exemplary drawing
 
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.