4.9.1 Command Line Validation

 

To trigger validation from the command line, follow the steps given below:

  1. Create a project.

  2. Provide the agent information.

  3. Load the MIBs.

  4. Add users for V3 security validation.

  5. Select the V3 compliance groups.

  6. Define and select the behavior test cases.

  7. Select the request types for inopportune validation.

  8. Specify the inputs for performance validation.

  9. Specify the inputs for stress validation.

  10. After specifying all the inputs, select View --> Validation Settings from the menu bar and specify the validations that have to be performed from command line.

  11. Select View --> Mail Settings to specify the following mail settings for sending the URL of the validation reports through e-mail (optional).

    1. WebServer Port for viewing reports: Specifies the port number at which a Web server will be started for viewing the reports from remote hosts.

    2. To, CC, Bcc: E-mail addresses to which the mail has to be sent.
    3. Subject: Subject of the mail.
    4. Content: The content of the mail. Here <URL> will be replaced with the actual URL of the report. For viewing reports through this URL, you should start the Web server in the port number specified above (11.1).  
    5. Mail Server: Name of the mail server.
  12. Select File --> Save Project from the menu bar.

  13. Quit the SNMP Agent Tester tool (optional).

  14. Open a command prompt. Change directory to <AgentTester Home>/snmpprojects/<Project_Name>.

  15. Execute the run.sh/bat to begin validation.

Note: Steps four to nine are optional. These steps, if not performed, will not validate V3 Security, Compliance, Behavior, Inopportune, Performance, and Stress test cases respectively.

 

Upon completion, a directory named with the date and time of running the validation will be created under <AgentTester Home>/ snmpprojects/ <Project_Name>/ testreports directory (e.g., 2003_10_20_10_28_5). Open the index.html from this directory to view the reports of the validation.

 

Viewing the Validation Reports from a Remote Host

 

If you have enabled mailing validation reports, an e-mail will be sent to the address specified in the mail settings. For viewing the validation reports from a remote machine, you have to start the Web server at the port number specified in the mail settings. Follow the steps given below:

  1. Open a command prompt. Change directory to <AgentTester Home>/snmpprojects/<Project_Name>.

  2. Execute the startServer.sh/bat to start the Web server as shown below:

    startServer -<port number>


    where, <port number> is the port at which the Web server should be started. Please not that the port number should be same as specified in the mail settings.

Note: Executing the startServer.sh/bat will start a Web server at the port mentioned in the mail settings, which will be read from Regression.xml located under <AgentTester Home>/snmpprojects/<Project_Name> directory.

 

 



Copyright © 2009, ZOHO Corp. All Rights Reserved.