Failure recovery recommendations for cli commands
AssigneeMicrosoft Technology Licensing, LLC
InventorsCHRISTOPHER O'TOOLE, ROSHANAK ZILOUCHIAN MOGHADDAM
Life of this patent
Estimating the term…
Abstract
A failure recommendation system for a command line interface (CLI) uses machine learning to predict the most likely command to correct an unsuccessful or failed attempt to perform an intended operation using the CLI. The failure recommendation system is based on a conditional probability model trained on failure-success pairs of commands from CLI telemetry data to learn the most likely command to remediate a failure. The conditional probability model predicts the most likely command based on a failure type and the failed command. The failure type is identified through a failure type classifier and is used to select the most likely command to remediate a failure from the different events that may lead to a failure.
Claims20
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 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.
A 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.
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.
Dependencies are inferred from the claim text.