Patent Document ID: 9292313
Application ID: 14022674
Patent Status: 1

Claim One:
1. A method in a computer system for detecting an operating state of a component in the computer system comprising a plurality of components, the method comprising: transmitting a command line interface (CLI) command via a command line interface to the component; receiving an output character string from the component responsive to the CLI command; dissecting a set of significant character substrings from the output character string, wherein each significant character substring comprises a label character string indicating a meaning of the output character string and a data character string expressing data of the output character string; setting a regular expression corresponding to each significant character substring of the set of significant character substrings thereby forming a set of regular expressions; calculating a difference between each regular expression of the set of regular expressions and each significant character substring corresponding to the regular expression as a character string distance thereby forming a set of calculated character string distances; comparing each calculated character string distance in the set of calculated character string distances to a set of corresponding predetermined thresholds, wherein comparing each calculated character string distance to the set of corresponding predetermined thresholds comprises: setting a first value i to 1 and a second value S to 0, wherein the first value i identities a particular calculated character string distance in the set of calculated character string distances associated with an i th significant character substring being analyzed and wherein S identifies a sum of the calculated character string distance times a weighting coefficient W(i) for the i th significant character substring; determining whether the first value i is less than or equal to a total number N of the set of significant character substrings; responsive to the first value i being less than or equal to the total number N, determining whether the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring is greater than or equal to a strict threshold T 2 ; responsive to the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring being greater than or equal to the strict threshold T 2 , either logging a result or displaying a warning, and ending the comparison of each calculated character string distance to the set of corresponding predetermined thresholds; responsive to the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring being less than the strict threshold T 2 , determining whether the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring is greater than or equal to a loose threshold T 1 ; responsive to the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring being greater than or equal to the loose threshold T 1 , either logging a result or displaying a warning, setting the second value S to the second value S plus the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring, increasing the first value i by 1, and repeating the process for the next calculated character string distance; responsive to the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring being less than the loose threshold T 1 , setting the second value S to S plus the calculated character string distance times the weighting coefficient W(i) for the i th significant character substring, increasing the first value i by 1, and repeating the process for the next calculated character string distance; responsive to the first value i being greater than the total number N, determining whether the second value S is greater than or equal to an overall threshold T 3 ; responsive to the second value S being greater than or equal to the overall threshold T 3 , either logging a result or displaying a warning, and ending the comparison of each calculated character string distance to the set of corresponding predetermined thresholds; and responsive to the second value S being less than the overall threshold T 3 , ending the comparison of each calculated character string distance to the set of corresponding predetermined thresholds; and outputting the operating state of the component based on results of the comparison.