US20110113290A1 - Method and system for testing configuration of environments - Google Patents

Method and system for testing configuration of environments Download PDF

Info

Publication number
US20110113290A1
US20110113290A1 US12/777,360 US77736010A US2011113290A1 US 20110113290 A1 US20110113290 A1 US 20110113290A1 US 77736010 A US77736010 A US 77736010A US 2011113290 A1 US2011113290 A1 US 2011113290A1
Authority
US
United States
Prior art keywords
probe
testing
tests
configuration
computer program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US12/777,360
Inventor
Mandeep Singh Chana
James Grafton
Stephen Milne
Andrew Craig Stevenson
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: STEVENSON, ANDREW CRAIG, CHANA, MANDEEP SINGH, MILNE, STEPHEN, GRAFTON, JAMES
Publication of US20110113290A1 publication Critical patent/US20110113290A1/en
Priority to US13/420,529 priority Critical patent/US9253069B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • This invention relates to the field of testing system environments.
  • the invention relates to testing configuration of system environments.
  • Service level management (SLM) systems are known that collect event information from many different network data sources and present a simplified view of this information to operators and administrators.
  • SLM Service level management
  • IBM Tivoli Netcool/OMNIbus IBM, Tivoli, Netcool/OMNIbus are trade marks of International Business Machines Corporation
  • CA Spectrum CA Spectrum is a trade mark of CA, Inc.
  • SLMs have object servers to which alert information is forwarded from integrations products which are software interfaces between network managers and the endpoints which are being managed.
  • Integrations products are external programs, such as probes, monitors, and gateways.
  • probes connect to an external source, detect and acquire event data, and forward the data to the object server as alerts.
  • the alert information is stored and managed at the object server in database tables and displayed in an event list.
  • Integrations product sets such as probes and gateways often give rise to reported problems related to configuration issues. If a customer tries to run an integration product in a mis-configured system environment, it will fail to launch with little or misleading information regarding why it failed.
  • An embodiment of the invention is a method for testing configuration of environments, including executing a probe for connection to a network and/or devices, launching a configuration analyser tool from the probe, and running a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection.
  • the executing, launching, and running may be implemented in computer hardware configured to perform the executing, launching, and running, or in computer software embodied in a non-transitory, tangible, computer-readable storage medium.
  • the method includes dynamically loading externally stored tests at run time of the configuration analyser tool.
  • Another embodiment of the invention is a computer program product for testing configuration of environments, the computer program product including a computer readable medium, computer program instructions operative to execute a probe for connection to a network and/or devices, launch a configuration analyser tool from the probe, and run a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection, where the program instructions are stored on the computer readable medium.
  • the computer program product includes computer program instructions operative to dynamically load externally stored tests at run time of the configuration analyser tool.
  • Another embodiment of the invention is a system for testing configuration of environments, including a probe for connection to a network and/or devices, a configuration analyser tool launched from the probe, including a test mechanism for running a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection.
  • the system includes a test loader component for dynamically loading externally stored tests at run time of the configuration analyser tool.
  • FIG. 1A is a block diagram of an embodiment of a system in accordance with the present invention.
  • FIG. 1B is a block diagram of another embodiment of a system in accordance with the present invention.
  • FIG. 2 is a block diagram of a computer system in which an embodiment of the invention may be implemented
  • FIG. 3 is a flow diagram of an embodiment of a method in accordance with the present invention.
  • FIG. 4 is a schematic diagram of an embodiment of a method of the present invention.
  • a method and system are described to provide a flexible solution to mis-configuration problems in integration products.
  • the method and system run tests and suggest resolutions for most of the basic configuration issues that are encountered by customers on a regular basis. This allows customers to self-diagnose and fix issues within their environment. This also produces detailed output suitable for feedback to support engineers which can dramatically decrease the turnaround times for issues when they do arise.
  • the method and system for testing configuration of environments are described in the context of event management integration products. However, the method and system may be used as a generic testing framework in other applications, for example, in automated test harness frameworks, and automated software fault diagnosis and repair.
  • a system 100 including a configuration analyser tool 110 A.
  • the configuration analyser tool 110 A interfaces with a probe 121 .
  • Probes 121 are external programs which provide alert information for systems, such as service level management (SLM) systems or event management systems, that collect event information from many different network data sources. Probes 121 may include integration probes, monitors, gateways, data collectors, event collectors, etc. Probes 121 typically connect to an external source to detect and acquire event data, and forward the data to an object server as alerts.
  • SLM service level management
  • event management systems that collect event information from many different network data sources.
  • Probes 121 may include integration probes, monitors, gateways, data collectors, event collectors, etc. Probes 121 typically connect to an external source to detect and acquire event data, and forward the data to an object server as alerts.
  • a described probe 121 is provided with an associated diagnostic configuration analyser tool 110 A that checks for connectivity and configuration before connecting both with the event management system and the network or network device. If there is a problem, then the probe 121 will not connect and will wait or hang.
  • the configuration analyser tool 110 A is executed against a probe 121 and is launched by a probe 121 requiring a configuration test.
  • the configuration analyser tool 110 A includes a library or jar 111 A of probe names 114 A and associated test files 112 A of tests to be run and a suggestions file 113 A of suggested problems for troubleshooting.
  • the configuration analyser tool 110 A includes a test checking mechanism 130 which checks the test files' 112 A syntax before using the test files.
  • the test checking mechanism 130 includes an abort mechanism 131 to abort the test if an error is found.
  • the configuration analyser tool 110 A includes a test mechanism 140 including establishing a log file 150 for a test.
  • the test mechanism 140 includes a test output 142 for outputting the test to the probe 121 and a receiver 143 for the test results from the probe 121 .
  • the test mechanism 140 runs through the test files 112 A generating a result output 144 which outputs suggestions from the suggestions file 113 A.
  • the result output and suggestions are recorded and stored in the log file 150 .
  • a user output 145 is provided to a system console 160 with an indication that all tests have completed successfully or that a user should check the log file 150 for problems with their environment and possible solutions.
  • a system console 160 lists tests which have been run and whether these were passed or failed. A user will often refer first to the system console 160 for test results.
  • the log file 150 contains full diagnostic output that can be used for further analysis.
  • FIG. 1B provides an alternative embodiment of a system 100 B including a configuration analyser tool 110 B interfacing with a probe 121 .
  • the tests are externalized from the configuration analyser tool 110 B and dynamically loaded at run time. This allows the configuration analyser tool 110 B to be flexible and create a completely modular based toolset. Each individual test is treated as a separate software module, allowing for finer grained control of the testing environment and dynamic updates of individual tests after the product is shipped.
  • the logic to run the tests and to interpret the tests may remain internal to the configuration analyser tool 110 B.
  • the logic to run and interpret test XML Extensible Markup Language
  • the test files 112 B for example, in the form of the test XML and test Binaries, are externalized.
  • the test files 112 B may be stored in individual versioned JAR (Java Archive) (Java is a trade mark of Sun Microsystems, Inc.) files, allowing for fine grained test version control and ensuring there is no code duplication.
  • An external library 111 B is provided with test files 112 B and suggestions file 113 B associated with probe names 114 B.
  • the external library 111 B can be stored on a server for access via a network.
  • the test mechanism 140 includes a test loader component 141 for loading the test files 112 B and suggestions file 113 B at run time of the test mechanism 140 .
  • an exemplary system for implementing an embodiment of the configuration analyser tool includes a data processing system 200 suitable for storing and/or executing program code including at least one processor 201 coupled directly or indirectly to memory elements through a bus system 203 .
  • the memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
  • the memory elements may include system memory 202 in the form of read only memory (ROM) 204 and random access memory (RAM) 205 .
  • ROM read only memory
  • RAM random access memory
  • a basic input/output system (BIOS) 206 may be stored in ROM 204 .
  • System software 207 may be stored in RAM 205 including operating system software 208 .
  • Software applications 210 may also be stored in RAM 205 .
  • the system 200 may also include a primary storage means 211 such as a magnetic hard disk drive and secondary storage means 212 such as a magnetic disc drive and an optical disc drive.
  • the drives and their associated computer-readable media provide non-volatile storage of computer-executable instructions, data structures, program modules and other data for the system 200 .
  • Software applications may be stored on the primary and secondary storage means 211 , 212 as well as the system memory 202 .
  • the computing system 200 may operate in a networked environment using logical connections to one or more remote computers via a network adapter 216 .
  • Input/output devices 213 can be coupled to the system either directly or through intervening I/O controllers.
  • a user may enter commands and information into the system 200 through input devices such as a keyboard, pointing device, or other input devices (for example, microphone, joy stick, game pad, satellite dish, scanner, or the like).
  • Output devices may include speakers, printers, etc.
  • a display device 214 is also connected to system bus 203 via an interface, such as video adapter 215 .
  • a flow diagram 300 illustrates one embodiment of a method of testing configuration of environments.
  • a probe is executed 301 which launches 302 a configuration analyser with the name of the probe.
  • the configuration analyser accesses 303 test files to be run and a corresponding suggestions file.
  • the test files may be loaded at run time.
  • test files are syntax tested 304 and it is determined 305 if there are any errors. If there are errors the testing is aborted 306 . If there are no errors, the method continues.
  • test files are executed 307 on the probe sequentially and suggestions are output from the suggestions file, where required. It is then determined 308 if the test have completed successfully. If so, a successful output message is provided 309 . If not, an output message is provided 311 indicating the log file and/or system console should be checked for problems and possible solutions.
  • FIG. 4 a schematic diagram illustrates the execution of a configuration analyser tool against a probe.
  • a Java-based modular framework is used for the configuration analyser tool to allow a flexible solution.
  • the probe is executed from the command line 401 , with single or multiple arguments, one of them being “-check”. This is symbolically linked 402 to a probe wrapper script 403 which will then automatically launch 404 the configuration analyser tool 410 .
  • the launch of the configuration analyser tool 410 includes the name of the probe “ ⁇ probe_name>” as an argument and the probe's “.check.jar” which contains details of tests to be run as well as an internationalisation file of suggestions in the classpath.
  • the configuration analyser tool 410 starts and sets up the log file 450 “/logs/ ⁇ probe_name>.check.log” and then runs 405 “-dumpprops” on the probe binary 406 and stores the output for use with the tests.
  • the configuration analyser 410 syntax checks the test file against “/ ⁇ arch>/ConfigAnalyser.xsd”. If any errors are found it will exit at this point.
  • the configuration analyser 410 proceeds to run sequentially through all the tests 407 detailed in the xml file inside “ ⁇ probe_name>.check.jar” 408 , outputting suggestions from the internationalised suggestions message file in that jar.
  • the process does multiple reads and executes on external “Test Library’ modules.
  • the configuration analyser 410 outputs detailed information 409 to the log file 450 “/logs/ ⁇ probe_name>.check.log” and outputs summary information 411 to the system console 460 .
  • the configuration analyser 410 will output a message either saying all tests completed successfully or one that suggests customers check the log file 450 and/or system console 460 for problems with their environment problems and possible solutions.
  • the tests verify the connectivity with an event management system and connectivity with the network before attempting to make a connection. Any problems are documented in a log file.
  • the tests may include troubleshooting with predictive tests in which a number of tests are run and a prediction of problems is made.
  • Tests There are many different tests which may be carried out to test for configuration issues.
  • General tests that a configuration analyser tool may execute include testing if a machine on a network is up, testing if there is a firewall between two machines, checking to see if a port on a machine is open, and checking to see if a test file conforms to a specific regular expression (regex).
  • An example base set of tests provided in a configuration analyser tool may include:
  • the configuration analyser tool may also contain specific tests for each integration product.
  • tests can be included to check space for files, check port or socket is available to bind to, and check file syntax, check database connectivity, check Transmission Control Protocol (TCP) server availability, check User Datagram Protocol (UDP) port availability, and check system library version.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • the IBM Tivoli Event Integration Facility is an event distribution and integration point for an event console. If the probe is an EIF probe, the following tests can be included:
  • MTTrapd Multi-thread trapd
  • a “classref” attribute is used to look up the class that needs to be executed.
  • “Params” are name value pairs passed to the test itself, with every test requiring at least a passmsg and failmsg param. Insert values are used to dynamically insert environment values(%) or probevalues($) into output strings.
  • the use of the configuration analyser tool with probes is transparent since the launch script launches the tool if it finds a “-help” argument in the probe startup. To the user it looks like it is functionality that is built into the probe.
  • a configuration analyser tool and externalised test files may be provided as a service to a customer over a network.
  • Embodiments of the invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements.
  • the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • FIG. 1 A block diagram illustrating an exemplary computing environment in accordance with the present disclosure.
  • the medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium.
  • Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read only memory (ROM), a rigid magnetic disk and an optical disk.
  • Current examples of optical disks include compact disk read only memory (CD-ROM), compact disk read/write (CD-R/W), and DVD.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A method and system for testing configuration of environments are provided. A probe for connection to a network and/or devices interacts to launch a configuration analyser tool. The configuration analyser tool includes a test mechanism for running a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection and suggesting solutions to test results. The tests may be externalised and dynamically loaded at run time of the configuration analyser tool.

Description

    RELATED APPLICATIONS
  • This application is based on and claims the benefit of priority from European Patent Application EP 09175366.5, filed Nov. 9, 2009.
  • BACKGROUND
  • This invention relates to the field of testing system environments. In particular, the invention relates to testing configuration of system environments.
  • Service level management (SLM) systems are known that collect event information from many different network data sources and present a simplified view of this information to operators and administrators. For example, IBM Tivoli Netcool/OMNIbus (IBM, Tivoli, Netcool/OMNIbus are trade marks of International Business Machines Corporation) is an event management product which collects enterprise-wide event information, and CA Spectrum (CA Spectrum is a trade mark of CA, Inc.) is a network infrastructure management product.
  • SLMs have object servers to which alert information is forwarded from integrations products which are software interfaces between network managers and the endpoints which are being managed. Integrations products are external programs, such as probes, monitors, and gateways. For example, probes connect to an external source, detect and acquire event data, and forward the data to the object server as alerts.
  • The alert information is stored and managed at the object server in database tables and displayed in an event list.
  • Integrations product sets such as probes and gateways often give rise to reported problems related to configuration issues. If a customer tries to run an integration product in a mis-configured system environment, it will fail to launch with little or misleading information regarding why it failed.
  • SUMMARY
  • An embodiment of the invention is a method for testing configuration of environments, including executing a probe for connection to a network and/or devices, launching a configuration analyser tool from the probe, and running a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection. The executing, launching, and running may be implemented in computer hardware configured to perform the executing, launching, and running, or in computer software embodied in a non-transitory, tangible, computer-readable storage medium.
  • In one embodiment, the method includes dynamically loading externally stored tests at run time of the configuration analyser tool.
  • Another embodiment of the invention is a computer program product for testing configuration of environments, the computer program product including a computer readable medium, computer program instructions operative to execute a probe for connection to a network and/or devices, launch a configuration analyser tool from the probe, and run a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection, where the program instructions are stored on the computer readable medium.
  • In one embodiment, the computer program product includes computer program instructions operative to dynamically load externally stored tests at run time of the configuration analyser tool.
  • Another embodiment of the invention is a system for testing configuration of environments, including a probe for connection to a network and/or devices, a configuration analyser tool launched from the probe, including a test mechanism for running a set of tests for the probe relating to connectivity and configuration of attached networks and devices before connection.
  • In one embodiment, the system includes a test loader component for dynamically loading externally stored tests at run time of the configuration analyser tool.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The subject matter regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The disclosure, both as to organization and method of operation, together with objects, features, and advantages thereof, may best be understood by reference to the following detailed description when read with the accompanying drawings in which:
  • FIG. 1A is a block diagram of an embodiment of a system in accordance with the present invention;
  • FIG. 1B is a block diagram of another embodiment of a system in accordance with the present invention;
  • FIG. 2 is a block diagram of a computer system in which an embodiment of the invention may be implemented;
  • FIG. 3 is a flow diagram of an embodiment of a method in accordance with the present invention; and
  • FIG. 4 is a schematic diagram of an embodiment of a method of the present invention.
  • DETAILED DESCRIPTION
  • It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numbers may be repeated among the figures to indicate corresponding or analogous features.
  • In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the disclosure. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present disclosure.
  • A method and system are described to provide a flexible solution to mis-configuration problems in integration products. The method and system run tests and suggest resolutions for most of the basic configuration issues that are encountered by customers on a regular basis. This allows customers to self-diagnose and fix issues within their environment. This also produces detailed output suitable for feedback to support engineers which can dramatically decrease the turnaround times for issues when they do arise.
  • The method and system for testing configuration of environments are described in the context of event management integration products. However, the method and system may be used as a generic testing framework in other applications, for example, in automated test harness frameworks, and automated software fault diagnosis and repair.
  • Referring to FIG. 1A, a system 100 is shown including a configuration analyser tool 110A. The configuration analyser tool 110A interfaces with a probe 121.
  • Probes 121 are external programs which provide alert information for systems, such as service level management (SLM) systems or event management systems, that collect event information from many different network data sources. Probes 121 may include integration probes, monitors, gateways, data collectors, event collectors, etc. Probes 121 typically connect to an external source to detect and acquire event data, and forward the data to an object server as alerts.
  • A described probe 121 is provided with an associated diagnostic configuration analyser tool 110A that checks for connectivity and configuration before connecting both with the event management system and the network or network device. If there is a problem, then the probe 121 will not connect and will wait or hang.
  • The configuration analyser tool 110A is executed against a probe 121 and is launched by a probe 121 requiring a configuration test. The configuration analyser tool 110A includes a library or jar 111A of probe names 114A and associated test files 112A of tests to be run and a suggestions file 113A of suggested problems for troubleshooting.
  • The configuration analyser tool 110A includes a test checking mechanism 130 which checks the test files' 112A syntax before using the test files. The test checking mechanism 130 includes an abort mechanism 131 to abort the test if an error is found.
  • The configuration analyser tool 110A includes a test mechanism 140 including establishing a log file 150 for a test. The test mechanism 140 includes a test output 142 for outputting the test to the probe 121 and a receiver 143 for the test results from the probe 121.
  • The test mechanism 140 runs through the test files 112A generating a result output 144 which outputs suggestions from the suggestions file 113A. The result output and suggestions are recorded and stored in the log file 150.
  • A user output 145 is provided to a system console 160 with an indication that all tests have completed successfully or that a user should check the log file 150 for problems with their environment and possible solutions.
  • A system console 160 lists tests which have been run and whether these were passed or failed. A user will often refer first to the system console 160 for test results. The log file 150 contains full diagnostic output that can be used for further analysis.
  • FIG. 1B provides an alternative embodiment of a system 100B including a configuration analyser tool 110B interfacing with a probe 121.
  • In the system 100 of FIG. 1B, the tests are externalized from the configuration analyser tool 110B and dynamically loaded at run time. This allows the configuration analyser tool 110B to be flexible and create a completely modular based toolset. Each individual test is treated as a separate software module, allowing for finer grained control of the testing environment and dynamic updates of individual tests after the product is shipped.
  • The logic to run the tests and to interpret the tests may remain internal to the configuration analyser tool 110B. For example, the logic to run and interpret test XML (Extensible Markup Language), if the tests are this format, remains internal. The test files 112B, for example, in the form of the test XML and test Binaries, are externalized. The test files 112B may be stored in individual versioned JAR (Java Archive) (Java is a trade mark of Sun Microsystems, Inc.) files, allowing for fine grained test version control and ensuring there is no code duplication.
  • An external library 111B is provided with test files 112B and suggestions file 113B associated with probe names 114B. The external library 111B can be stored on a server for access via a network. The test mechanism 140 includes a test loader component 141 for loading the test files 112B and suggestions file 113B at run time of the test mechanism 140.
  • Referring to FIG. 2, an exemplary system for implementing an embodiment of the configuration analyser tool includes a data processing system 200 suitable for storing and/or executing program code including at least one processor 201 coupled directly or indirectly to memory elements through a bus system 203. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution.
  • The memory elements may include system memory 202 in the form of read only memory (ROM) 204 and random access memory (RAM) 205. A basic input/output system (BIOS) 206 may be stored in ROM 204. System software 207 may be stored in RAM 205 including operating system software 208. Software applications 210 may also be stored in RAM 205.
  • The system 200 may also include a primary storage means 211 such as a magnetic hard disk drive and secondary storage means 212 such as a magnetic disc drive and an optical disc drive. The drives and their associated computer-readable media provide non-volatile storage of computer-executable instructions, data structures, program modules and other data for the system 200. Software applications may be stored on the primary and secondary storage means 211, 212 as well as the system memory 202.
  • The computing system 200 may operate in a networked environment using logical connections to one or more remote computers via a network adapter 216.
  • Input/output devices 213 can be coupled to the system either directly or through intervening I/O controllers. A user may enter commands and information into the system 200 through input devices such as a keyboard, pointing device, or other input devices (for example, microphone, joy stick, game pad, satellite dish, scanner, or the like). Output devices may include speakers, printers, etc. A display device 214 is also connected to system bus 203 via an interface, such as video adapter 215.
  • Referring to FIG. 3, a flow diagram 300 illustrates one embodiment of a method of testing configuration of environments.
  • A probe is executed 301 which launches 302 a configuration analyser with the name of the probe. The configuration analyser accesses 303 test files to be run and a corresponding suggestions file. In an embodiment in which the test files are externalized, the test files may be loaded at run time.
  • The test files are syntax tested 304 and it is determined 305 if there are any errors. If there are errors the testing is aborted 306. If there are no errors, the method continues.
  • The test files are executed 307 on the probe sequentially and suggestions are output from the suggestions file, where required. It is then determined 308 if the test have completed successfully. If so, a successful output message is provided 309. If not, an output message is provided 311 indicating the log file and/or system console should be checked for problems and possible solutions.
  • Referring to FIG. 4, a schematic diagram illustrates the execution of a configuration analyser tool against a probe. In one embodiment, a Java-based modular framework is used for the configuration analyser tool to allow a flexible solution.
  • The probe is executed from the command line 401, with single or multiple arguments, one of them being “-check”. This is symbolically linked 402 to a probe wrapper script 403 which will then automatically launch 404 the configuration analyser tool 410. The launch of the configuration analyser tool 410 includes the name of the probe “<probe_name>” as an argument and the probe's “.check.jar” which contains details of tests to be run as well as an internationalisation file of suggestions in the classpath.
  • The configuration analyser tool 410 starts and sets up the log file 450 “/logs/<probe_name>.check.log” and then runs 405 “-dumpprops” on the probe binary 406 and stores the output for use with the tests.
  • The configuration analyser 410 syntax checks the test file against “/<arch>/ConfigAnalyser.xsd”. If any errors are found it will exit at this point.
  • The configuration analyser 410 proceeds to run sequentially through all the tests 407 detailed in the xml file inside “<probe_name>.check.jar” 408, outputting suggestions from the internationalised suggestions message file in that jar.
  • In an embodiment which includes externalised test files, the process does multiple reads and executes on external “Test Library’ modules.
  • The configuration analyser 410 outputs detailed information 409 to the log file 450 “/logs/<probe_name>.check.log” and outputs summary information 411 to the system console 460.
  • Once all tests have been run, the configuration analyser 410 will output a message either saying all tests completed successfully or one that suggests customers check the log file 450 and/or system console 460 for problems with their environment problems and possible solutions.
  • The tests verify the connectivity with an event management system and connectivity with the network before attempting to make a connection. Any problems are documented in a log file.
  • The tests may include troubleshooting with predictive tests in which a number of tests are run and a prediction of problems is made.
  • There are many different tests which may be carried out to test for configuration issues. General tests that a configuration analyser tool may execute include testing if a machine on a network is up, testing if there is a firewall between two machines, checking to see if a port on a machine is open, and checking to see if a test file conforms to a specific regular expression (regex).
  • An example base set of tests provided in a configuration analyser tool may include:
      • Check if the primary object server is up.
      • Check if the rules and properties file exists.
      • Check if a secondary object server is configured.
      • Check if syntax checker is installed.
      • Check if rules file is syntactically correct.
      • Check if there is space for log files.
      • Check if there is a failover probe configured.
  • The configuration analyser tool may also contain specific tests for each integration product.
  • For probes, tests can be included to check space for files, check port or socket is available to bind to, and check file syntax, check database connectivity, check Transmission Control Protocol (TCP) server availability, check User Datagram Protocol (UDP) port availability, and check system library version.
  • For example, the IBM Tivoli Event Integration Facility (EIF) is an event distribution and integration point for an event console. If the probe is an EIF probe, the following tests can be included:
      • Check if there is space for EIF cache files.
      • Check if EIF probe can bind to a port.
  • In another example, if there is a Multi-thread trapd (MTTrapd) probe, the following tests can be included:
      • Check gskit and libncrypt library versions.
      • Test auth file syntax.
      • Check socket is available to bind to.
  • If there is an Open Database Connectivity (ODBC), the following tests can be included:
      • Check if ODBC.ini is setup correctly and is referenced by SODBCINI (On Unix platforms) (Unix is a trade mark of The Open Group).
      • Check if databases referenced in odbc.props exist.
      • Check if tables and fields referenced in odbc.props exist.
  • An example test in Extensible Markup Language (XML) is as follows:
  • <task classref=“FileExists” name=“Rules file check”
    description=“This test will check to see if the rules file exists”>
     <param name=“fileName” value=“%RulesFile” />
     <param name=“passmsg” value=“check.rules_pass”>
      <insert value=“%RulesFile” />
     </param>
     <param name=“failmsg” value=“check.rules_fail”>
      <insert value=“%RulesFile” />
     </param>
    </task>
  • A “classref” attribute is used to look up the class that needs to be executed. “Params” are name value pairs passed to the test itself, with every test requiring at least a passmsg and failmsg param. Insert values are used to dynamically insert environment values(%) or probevalues($) into output strings.
  • The use of the configuration analyser tool with probes is transparent since the launch script launches the tool if it finds a “-help” argument in the probe startup. To the user it looks like it is functionality that is built into the probe.
  • A configuration analyser tool and externalised test files may be provided as a service to a customer over a network.
  • Embodiments of the invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In one embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
  • Other embodiments of the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer usable or computer readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus or device.
  • The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk read only memory (CD-ROM), compact disk read/write (CD-R/W), and DVD.
  • Improvements and modifications can be made to the foregoing without departing from the scope of the present invention.

Claims (24)

1. A method for testing configuration of environments, comprising:
executing a probe for connection to a network;
launching a configuration analyser tool from the probe;
dynamically loading one or more externally stored tests at run time of the configuration analyser tool; and
running a set of tests for the probe, the tests relating to connectivity and configuration of the network, before connecting to the network.
2. The method as claimed in claim 1, further comprising suggesting solutions to one or more test results.
3. The method as claimed in claim 1, further comprising:
storing one or more test results and one or more suggested solutions in a log file.
4. The method as claimed in claim in claim 1, further comprising:
providing a summary of tests run and one or more suggested solutions.
5. The method as claimed in claim 1, further comprising:
storing one or more test files for a probe name with an associated suggestions file; and
accessing the stored test files for the probe in response to launching the configuration analyser tool from the probe.
6. The method as claimed in claim 1, further comprising:
checking the syntax of one or more test files before running the set of tests.
7. The method as claimed in claim 1, wherein if running the set of tests results in a connectivity or configuration problem, the connection is aborted.
8. The method as claimed in claim 1, wherein the configuration analyser tool is transparent to an administrator.
9. The method as claimed in claim 1, wherein the method tests event management integration products.
10. The method as claimed in claim 1, wherein the set of tests is selected from the group consisting of testing if a server is working, testing if a firewall is in place between two machines, testing to see if a port is open on a machine, testing if rules and properties files exist, testing if rules and properties files are syntax correct, testing if a text file conforms to a regular expression, testing if a syntax checker installed, testing if there is space for a log file, and testing if a failover probe configured.
11. The method as claimed in claim 1, wherein the probe is an event management system probe for collecting enterprise-wide event information.
12. A computer program product for testing configuration of environments, the computer program product comprising:
a computer readable medium;
computer program instructions operative to:
execute a probe for connection to a network;
launch a configuration analyser tool from the probe;
dynamically load one or more externally stored tests at run time of the configuration analyser tool; and
run a set of tests for the probe, the tests relating to connectivity and configuration of the network, before connecting to the network;
wherein said program instructions are stored on said computer readable medium.
13. The computer program product as claimed in claim 12, further comprising computer program instructions operative to suggest solutions to one or more test results.
14. The computer program product as claimed in claim 12, further comprising computer program instructions operative to:
store one or more test results and one or more suggested solutions in a log file.
15. The computer program product as claimed in claim 12, further comprising computer program instructions operative to:
provide a summary of tests run and one or more suggested solutions.
16. The computer program product as claimed in claim 12, further comprising computer program instructions operative to:
store one or more test files for a probe name with an associated suggestions file; and
access the stored test files for the probe in response to launching the configuration analyser tool from the probe.
17. The computer program product as claimed in claim 12, further comprising computer program instructions operative to:
check the syntax of one or more test files before running the set of tests.
18. The computer program product as claimed in claim 12, wherein if running the set of tests results in a connectivity or configuration problem, the connection is aborted.
19. The computer program product as claimed in claim 12, wherein the configuration analyser tool is transparent to an administrator.
20. The computer program product as claimed in claim 12, wherein the set of tests is selected from the group consisting of testing if a server is working, testing if a firewall is in place between two machines, testing to see if a port is open on a machine, testing if rules and properties files exist, testing if rules and properties files are syntax correct, testing if a text file conforms to a regular expression, testing if a syntax checker installed, testing if there is space for a log file, and testing if a failover probe configured.
21. The computer program product as claimed in claim 12, wherein the probe is an event management system probe for collecting enterprise-wide event information.
22. A system for testing configuration of environments, comprising:
a probe for connection to a network;
a configuration analyser tool launched from the probe, including:
a test loader component for dynamically loading one or more externally stored tests at run time of the configuration analyser tool; and
a test mechanism for running a set of tests for the probe, the tests relating to connectivity and configuration of the network, before connecting to the network.
23. The system as claimed in claim 22, further comprising:
a log file for storing one or more test results and one or more suggested solutions.
24. The system as claimed in claim 22, further comprising:
a library storing test files for a probe name with an associated suggestions file; and the test mechanism accessing the stored test files for the probe launching the configuration analyser tool.
US12/777,360 2009-11-09 2010-05-11 Method and system for testing configuration of environments Abandoned US20110113290A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/420,529 US9253069B2 (en) 2009-11-09 2012-03-14 Method and system for testing configuration of environments

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP09175366 2009-11-09
EPEP09175366.5 2009-11-09

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/420,529 Continuation US9253069B2 (en) 2009-11-09 2012-03-14 Method and system for testing configuration of environments

Publications (1)

Publication Number Publication Date
US20110113290A1 true US20110113290A1 (en) 2011-05-12

Family

ID=43975050

Family Applications (2)

Application Number Title Priority Date Filing Date
US12/777,360 Abandoned US20110113290A1 (en) 2009-11-09 2010-05-11 Method and system for testing configuration of environments
US13/420,529 Expired - Fee Related US9253069B2 (en) 2009-11-09 2012-03-14 Method and system for testing configuration of environments

Family Applications After (1)

Application Number Title Priority Date Filing Date
US13/420,529 Expired - Fee Related US9253069B2 (en) 2009-11-09 2012-03-14 Method and system for testing configuration of environments

Country Status (1)

Country Link
US (2) US20110113290A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110228665A1 (en) * 2010-03-19 2011-09-22 At&T Intellectual Property I, L.P. Locally Diagnosing and Troubleshooting Service Issues
US8782730B2 (en) 2010-12-09 2014-07-15 At&T Intellectual Property I, L.P. User assistance via customer premises equipment media files
US8938749B2 (en) 2010-08-31 2015-01-20 At&T Intellectual Property I, L.P. System and method to troubleshoot a set top box device
CN112612664A (en) * 2020-12-24 2021-04-06 百度在线网络技术(北京)有限公司 Electronic equipment testing method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717387B (en) * 2012-11-09 2021-09-07 相干逻辑公司 Real-time analysis and control for multiprocessor systems
CN103401710A (en) * 2013-07-30 2013-11-20 浙江中烟工业有限责任公司 Variance-based firewall abnormal log detection method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618360B1 (en) * 1999-06-15 2003-09-09 Hewlett-Packard Development Company, L.P. Method for testing data path of peripheral server devices
US6813648B1 (en) * 2001-07-02 2004-11-02 Adaptec, Inc. Method and apparatus for post boot-up domain validation
US20040237077A1 (en) * 2003-05-22 2004-11-25 International Business Machines Corporation Business systems management solution for end-to-end event management
US20050197990A1 (en) * 2004-02-19 2005-09-08 Yuh-Cherng Wu Generating a knowledge base
US20050271047A1 (en) * 2004-06-02 2005-12-08 Huonder Russell J Method and system for managing multiple overlapping address domains
US7254745B2 (en) * 2002-10-03 2007-08-07 International Business Machines Corporation Diagnostic probe management in data processing systems
US20070230486A1 (en) * 2006-03-29 2007-10-04 Emile Zafirov Communication and compliance monitoring system
US20100135164A1 (en) * 2008-12-02 2010-06-03 Broadcom Corporation Millimeter wave probing of components via a probe device and methods for use therewith
US8289873B2 (en) * 2003-04-23 2012-10-16 Cisco Technology, Inc. Method and apparatus providing automatic connection announcement from a modular network device to a network management point

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5864674A (en) * 1997-01-03 1999-01-26 At&T Corp. Reconfigurable lan and method of adding clients thereto
EP1962194A1 (en) * 2007-02-23 2008-08-27 Telefonaktiebolaget LM Ericsson (publ) A method and a system for dynamic probe authentication for test and monitoring of software

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6618360B1 (en) * 1999-06-15 2003-09-09 Hewlett-Packard Development Company, L.P. Method for testing data path of peripheral server devices
US6813648B1 (en) * 2001-07-02 2004-11-02 Adaptec, Inc. Method and apparatus for post boot-up domain validation
US7254745B2 (en) * 2002-10-03 2007-08-07 International Business Machines Corporation Diagnostic probe management in data processing systems
US8289873B2 (en) * 2003-04-23 2012-10-16 Cisco Technology, Inc. Method and apparatus providing automatic connection announcement from a modular network device to a network management point
US20040237077A1 (en) * 2003-05-22 2004-11-25 International Business Machines Corporation Business systems management solution for end-to-end event management
US20050197990A1 (en) * 2004-02-19 2005-09-08 Yuh-Cherng Wu Generating a knowledge base
US20050271047A1 (en) * 2004-06-02 2005-12-08 Huonder Russell J Method and system for managing multiple overlapping address domains
US20070230486A1 (en) * 2006-03-29 2007-10-04 Emile Zafirov Communication and compliance monitoring system
US20100135164A1 (en) * 2008-12-02 2010-06-03 Broadcom Corporation Millimeter wave probing of components via a probe device and methods for use therewith

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110228665A1 (en) * 2010-03-19 2011-09-22 At&T Intellectual Property I, L.P. Locally Diagnosing and Troubleshooting Service Issues
US8705371B2 (en) * 2010-03-19 2014-04-22 At&T Intellectual Property I, L.P. Locally diagnosing and troubleshooting service issues
US8938749B2 (en) 2010-08-31 2015-01-20 At&T Intellectual Property I, L.P. System and method to troubleshoot a set top box device
US8782730B2 (en) 2010-12-09 2014-07-15 At&T Intellectual Property I, L.P. User assistance via customer premises equipment media files
CN112612664A (en) * 2020-12-24 2021-04-06 百度在线网络技术(北京)有限公司 Electronic equipment testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
US9253069B2 (en) 2016-02-02
US20120191404A1 (en) 2012-07-26

Similar Documents

Publication Publication Date Title
US7392148B2 (en) Heterogeneous multipath path network test system
US9253069B2 (en) Method and system for testing configuration of environments
KR102268355B1 (en) Cloud deployment infrastructure validation engine
US7694181B2 (en) Automated software testing framework
US7503037B2 (en) System and method for identifying bugs in software source code, using information from code coverage tools and source control tools to determine bugs introduced within a time or edit interval
US10824521B2 (en) Generating predictive diagnostics via package update manager
US8561024B2 (en) Developing software components and capability testing procedures for testing coded software component
US9417865B2 (en) Determining when to update a package manager software
US7594219B2 (en) Method and apparatus for monitoring compatibility of software combinations
US8805804B2 (en) Configuring an application program in a computer system
US7458064B2 (en) Methods and apparatus for generating a work item in a bug tracking system
US20070006037A1 (en) Automated test case result analyzer
US9594670B2 (en) Managing software dependencies during software testing and debugging
US20160188450A1 (en) Automated application test system
US7512933B1 (en) Method and system for associating logs and traces to test cases
US20100138818A1 (en) Computer System and Method for Resolving Dependencies in a Computer System
KR20140072726A (en) Function Test Apparatus based on Unit Test Cases Reusing and Function Test Method thereof
CN106201878A (en) The execution method and apparatus of test program
EP2577458B1 (en) Distillation and reconstruction of provisioning components
JP2015011372A (en) Debug support system, method, program, and recording medium
US20150339219A1 (en) Resilient mock object creation for unit testing
US10929261B1 (en) Device diagnosis
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
US9354962B1 (en) Memory dump file collection and analysis using analysis server and cloud knowledge base
Kanstren A study on design for testability in component-based embedded software

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:CHANA, MANDEEP SINGH;GRAFTON, JAMES;MILNE, STEPHEN;AND OTHERS;SIGNING DATES FROM 20100504 TO 20100510;REEL/FRAME:024368/0741

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE