摘要:
A system, method and computer-readable medium for adapting command line output message streams in a virtualized command line interface (CLI) environment. In accordance with the method of the present invention, a virtualized CLI command is entered and executed. The virtualized CLI command encapsulates a guest operating system command having an associated standard output message. In response to executing the virtualized CLI command, the standard output message is piped to an output message file. Within the standard output message file, a structured array is used to search the standard output message for matches between strings within the standard output message and one or more specified message strings identified in the structured array. In response to finding a match between the specified message strings and the strings within the standard output message, the specified message string within the standard output message is replaced with a replacement message string.
摘要:
In a data processing system including a virtual I/O server (VIOS) cluster and multiple logical partitions (LPARs), at least one VIOS of the VIOS cluster performs functions of: receiving first registration information from one or more entities within the VIOS cluster; registering, based on the first registration information, a handler associated with a first message type; responsive to receiving second registration information, registering, based on the second registration information, a listener associated with a second message type; receiving a first message associated with a first alert event of the cluster; determining, based on the first message, that the handler is associated with the first message type; and calling the handler. In one embodiment, the handler is associated with a pointer to a subroutine, and registering the handler includes storing the pointer in a data structure that associates the handler with the first message type.