(英) |
With the rapid growth and diversification of communication services, networks operated by telecom carriers have become increasingly large and complex. Accordingly, failure diagnosis in the networks has become complicated. Network operators in telecom carriers perform failure diagnosis by executing various commands (e.g., show interfaces) on network devices through a command-line interface (CLI) to check their status. The outputs of CLI commands, which we call command outputs, contain more detailed information than typical one-line logs, and their parsing is essential for automating time-consuming and labor-intensive failure diagnosis. However, a command output is an unstructured message consisting of tens or hundreds of lines with complex characteristics, such as varying numbers of lines and words; thus, existing log parsers are not applicable. In this study, we propose COPA (Command Output PArser), a parsing method for command outputs that converts each command output into a static part (template) and a variable part (parameters). We evaluate COPA using real data collected from a commercial network and demonstrate that it achieves higher accuracy in template/parameter extraction for various commands than existing log parsers. |