# US 9,354,964 B2 · Tag based selection of test scripts for failure analysis

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,964 B2
- Document ID: US9354964B2
- Status: Granted
- Kind: B2
- Application number: 14/276,485
- Filed: 2014-05-13
- Published: 2015-11-19
- Granted: 2016-05-31
- Earliest claimed: 2014-05-13
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: Anoop V. Channagiri; Ankush H. Prasad
- Web page: https://patentgrep.com/patent/US9354964B2

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A service system can include numerous test scripts that are candidates for execution against a failure message to determine a solution for a failure in a distributed storage system. To efficiently ascertain a solution for a failure with the test scripts, a service system can analyze the failure message to determine tags and use the tags to guide selection of test scripts. The selected test scripts are then executed to analyze the failure message, and to generate, based on the analysis, a solution corresponding to the failure. Instead of executing the numerous test scripts against the failure message, only selected test scripts are executed against the failure message to generate a solution. The solution is then communicated to the distributed storage system.

## Claims

### Claim 1

A method comprising:
determining values of first characteristics indicated by a communication received from a storage controller, wherein the communication indicates a failure;
determining first tags associated with the failure based, at least in part, on the values of the first characteristics;
determining second characteristics from the communication based, at least in part, on the values of the first characteristics;
determining values of the second characteristics from the communication;
determining second tags associated with the failure based, at least in part, on the values of the second characteristics; and
selecting at least one script from a plurality of scripts based, at least in part, on the first tags and on the second tags, wherein the at least one script is configured to analyze the communication.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining whether the at least one script can be selected based on the first tags from a plurality of scripts, wherein
each of the plurality of scripts is configured to be executed to access the contents of the communication, and
the determining the second characteristics is performed responsive to a determination that the at least one script cannot be selected based on the first tags.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining whether a solution to the failure can be determined based on initial characteristics, wherein
the communication comprises
a summary portion that indicates the initial characteristics of the failure, and
the determining the first tags is performed responsive to a determination that the solution cannot be determined based on the initial characteristics.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating a solution to the failure by executing the at least one script, wherein
the communication comprises a copy of contents of a memory of the storage controller, and
the executing the at least one script comprises the at least one script accessing the copy of the contents of the memory of the storage controller.

### Claim 5 (depends on 4)

The method of claim 4, wherein
the generating the solution is based, at least in part, on the at least one script analyzing the copy of the contents of the memory, and
the solution is communicated to the storage controller.

### Claim 6 (depends on 4)

The method of claim 4, further comprising:
determining whether the failure is associated with a distributed process,
responsive to a determination that the failure is associated with the distributed process,
accessing a log file, wherein
the log file indicates a plurality of operations performed by a plurality of storage controllers,
the plurality of storage controllers implement the distributed process, and
the determining the second tags is further based on the accessing of the log file.

### Claim 7 (depends on 1)

The method of claim 1, wherein
each of the plurality of scripts is associated with a respective subset of the plurality of tags.

### Claim 8 (depends on 1)

The method of claim 1, wherein
the first tags indicate external characteristics of the storage controller, and
the second tags indicate a type of the failure in operation of the storage controller.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
determining whether the at least one script can be selected based on the first tags and the second tags; and
responsive to a determination that the at least one script cannot be selected based on the first tags and the second tags, determining third tags from the communication, wherein
the determining the third tags is based, at least in part, on the values of the first characteristics and on the values of the second characteristics.

### Claim 10 (depends on 9)

The method of claim 9, wherein
the storage controller is configured to perform storing of data using a distributed storage system, and
the third tags indicate a communication failure in the storing of data using the distributed storage system.

### Claim 11

An article of manufacture comprising non-transitory storage media having machine executable program instructions encoded therein, the machine executable program instructions comprising program instructions to:
determine whether a solution to a failure in a distributed storage system indicated in a communication can be determined with data in a first part of the communication that indicates the failure;
after a determination that a solution to the failure cannot be determined with data in a first part of the communication, determine tags based, at least in part, on data indicated in a second part of the communication;
select a set of test scripts from a plurality of tests scripts based, at least in part, on the tags; and
successively execute the set of test scripts until either all of the set of test scripts have been executed or a solution results.

### Claim 12 (depends on 11)

The article of manufacture of claim 11, wherein the program instructions to successively execute the set of test scripts comprises program instructions to successively execute a number of the set of test scripts up to a threshold without waiting for completion of the executed test scripts.

### Claim 13 (depends on 11)

The article of manufacture of claim 11, wherein the program instructions to select a set of test scripts from a plurality of tests scripts comprises program instructions to submit the tags to a test script database and receive the set of test scripts.

### Claim 14 (depends on 11)

The article of manufacture of claim 11, wherein the program instructions to determine tags based, at least in part, on data in a second part of the communication comprises program instructions to:
determine a first set of one or more tags based, at least in part, on the data in the second part of the communication; and
determine a second set of one or more tags based, at least in part, on the first set of one or more tags, wherein the tags include the first set of one or more tags and the second set of one or more tags.

### Claim 15 (depends on 14)

The article of manufacture of claim 14, wherein the program instructions to determine the second set of one or more tags comprises the program instructions to determine the second set of one or more tags also based on the data in the second part of the communication.

### Claim 16

A computing device comprising:
a processor;
a network interface; and
a non-transitory computer readable storage medium having program instructions stored therein, the program instructions executable by the processor to cause the computing device to,
determine values of first characteristics indicated by a communication received from a storage controller, wherein the communication indicates a failure,
determine first tags associated with the failure based, at least in part, on the values of the first characteristics,
determine second characteristics from the communication based, at least in part, on the values of the first characteristics,
determine values of the second characteristics from the communication,
determine second tags associated with the failure based, at least in part, on the values of the second characteristics, and
select at least one script from a plurality of scripts based, at least in part, on the first tags and on the second tags, wherein the at least one script is configured to analyze the communication.

### Claim 17 (depends on 16)

The computing device of claim 16, wherein the program instructions are further executable by the processor to cause the computing device to,
determine whether the at least one script can be selected based on the first tags from a plurality of scripts, wherein
each of the plurality of scripts is configured to be executed to access the contents of the communication, and
the program instructions are executable by the processor to cause the computing device to determine the second characteristics responsive to a determination that the at least one script cannot be selected based on the first tags.

### Claim 18 (depends on 16)

The computing device of claim 16, wherein the program instructions are further executable by the processor to cause the computing device to,
determine whether a solution to the failure can be determined based on initial characteristics, wherein
the communication comprises
a summary portion that indicates the initial characteristics of the failure, and
the program instructions are executable by the processor to cause the computing device to determine the first tags responsive to a determination that the solution cannot be determined based on the initial characteristics.

### Claim 19 (depends on 16)

The computing device of claim 16, wherein the program instructions are further executable by the processor to cause the computing device to,
generate a solution to the failure by executing the at least one script, wherein
the communication comprises a copy of contents of a memory of the storage controller, and
the at least one script, when executed, is configured to access the copy of the contents of the memory of the storage controller.

### Claim 20 (depends on 19)

The computing device of claim 19, wherein the program instructions are executable by the processor to cause the computing device to generate the solution based, at least in part, on the at least one script, when executed, being configured to analyze the copy of the contents of the memory, wherein
the solution is communicated to the storage controller.
