Previous Next Contents Generated Index Home


Chapter 23

Troubleshooting




This section includes information on troubleshooting. Items covered include information on:


Module

During the Sun Management Center module development process, when you encounter problems with module loading and its additional functionalities, refer to one of the three areas where Sun Management Center software provides you with trouble shooting information.

  The following sections provide some examples for each one of the above categories.

Console Messages

TABLE  23-1   Example Error Messages that Display on the Console
Problem
Troubleshooting Information

Loading at the wrong place.  

Check the ` param:moduleType = ' value in <module>-m.x file.  

Error Message:

Module load failed.  

Check to see if the following conditions exist:

  • If the agent file is under /opt/SUNWsymon/modules/cfg
  • If the models file is under /opt/SUNWsymon/modules/cfg
  • For any syntax error in module files
  • For valid syntax and datatypes in the models file
  • If the library files exist
  •  


    Agent Log File Messages

    TABLE  23-2   Example Error Messages That Are Found in the Agent Log File
    Error Messages
    Troubleshooting Information

    Import interface failed  

    Check to see if the agent file is under
    /opt/SUNWsymon/modules/cfg.  

    Shutting down subagents parsing error in file: //localhost/<module>-d.x flags=ro(1): failed to open file. aborting execution

     

    Check to see if the models file is under
    /opt/SUNWsymon/modules/cfg.

     

    Syntax error in file:

    //localhost/<module-file>

    flags=ro(42) at token '}' aborting execution  

    Check for syntax error in <module-file> around line# 42.

     

    Parsing error in file:
    //localhost/<module>-models-d.x

    flags=ro(17)inherit: could not inherit ASDF. aborting execution  

    Check the datatype ASDF in models file.

     

    Shutting down subagents, general parsing error, file:

    //localhost/helloworld-version02-d.x

    flags=ro 10 couldn't load file pkgdemohw2.so":ld.so.1:esd:fatal:libdemohw2.so.1:open failed: No such file or directory" ], aborting execution  

    Check to see if the of library files exist.

     


    Interactive Agent Mode Messages

    TABLE  23-3   Example Error Messages Provided by the Interactive Agent
    Error Messages
    Troubleshooting Information

    Parsing error in file: //localhost/<module>-d.x flags=ro(1): failed to open file

    aborting execution  

    Check to see if the models file is under
    /opt/SUNWsymon/modules/cfg.

     

    Syntax error in file: //localhost/<module-file> flags=ro(42) at token '}'

    aborting execution  

    Check for syntax error in <module-file> around line# 42.  

    Parsing error in file: //localhost/<module>-models-d.x flags=ro(17):

    inherit: could not inherit ASDF

    aborting execution  

    Check the datatype ASDF in models file.  

    General parsing error

    file://localhost/helloworld-version02-d.x

    flags=ro 10

    couldn't load file pkgdemohw2.so":

    .so.1: esd: fatal: libdemohw2.so.1: open failed: No such file or directory" ]

    aborting execution  

    Check to see if the library file exists.

     


    Console

    The Sun Management Center console is based on a configuration file infrastructure. This infrastructure provides a scripting language that is interpreted at run time to create Java consoles. Because of this late binding, most of the errors are shown at run time.

    Errors are displayed in two places:


    Note - All configuration files (those with extension .x) are installed on the Sun Management Center server, hence any action on these files will go through that server.

    For example, if you are using a [load myConsole-j.x ] construct in your application, then in the Sun Management Center server log you should see this file being read by the console.

    The Sun Management Center server log is a circular text file. To look at it in a 'tail' mode run following command:

    /opt/SUNWsymon/sbin/es-run ctail -f /var/opt/SUNWsymon/log/server.log
    

    No console log is created by the Sun Management Center console. All console debug messages are displayed in the Sun Management Center Console Messages dialog. When the Sun Management Center console comes up, it redirects all stdout messages to this dialog. Thus, if your Java code has System.out.println statements, the output of those will be displayed in this dialog.




    Previous Next Contents Generated Index Home

    Copyright © 2000 Sun Microsystems, Inc. All Rights Reserved.