How can I launch Chart console from AppManager Utilities without a username\password check? (NETIQKB47024)

  • 7747024
  • 02-Feb-2007
  • 12-Jan-2011

Environment

NetIQ AppManager 6.x
NetIQ AppManager 7.0.x

Situation

How can I launch Chart console from AppManager Utilities without a username\password check?
What variables can I utilize in a command structure within the Console Extension menu?

Resolution

The following variables can be utilized in a command structure within the Console Extension menu.

  • _AMPATH is the path where AM is currently installed.
  • _DCPATH is the path where Diagnostic Console is currently installed.
  • _MACHINENAME is an environment variable.                 
  • _OSVERSION is an environment variable.                                                                           
  • _USERDOMAINNAME is an environment variable.                                                                         
  • _USERNAME returns the current logged in NT user. This is not always the same as the user who logs on to the CC console.
  • _CURRENTDIRECTORY is an environment variable.
  • _SYSTEMDIR is an environment variable.                                                                          
  • _PERSONALDIR  is an environment variable.                                                                     
  • _PROGRAMSDIR is an environment variable.
  • _COMMANDPROGRAMDIR is an environment variable.
  • _REPOSITORYSERVER parses the repository column in the current list view and returns the name of the server (e.g. beltaftb01).  Note: If multiple selections are specified this function will only be based on the first selected row.
  • _REPOSITORYNAME parses the repository column in the current list view and returns the name of the repository (e.g. QDB).  Note: If multiple selections are specified this function will only be based on the first selected row.
  • _REGLOOKUP (hive, subkey, value) looks up any registry entry and returns its value as a string.
  • _ENVLOOKUP( envVarName) looks up any environment variable on the console machine
  • _LISTSCHEMA lists all column names for the current view type that may be used as a data centric parameter. This method is useful for determining the real names of the columns.
  • _LOGONNAME is the name of the user currently logged into the CC console.
  • _LOGONPASSWORD is the password used by the user logged in to the CC console.
  • _LOGONMODE is the authentication mode of the current CC user ? NT or SQL   (0=WinNT, 1=SQL).
  • _LOGONSERVERCODE> is the server where the CCDB exists.

The chart console uses similar command line options as the Operator Console. For example:

          AMChartCon ?u <user> -p <password> -s <machine> -db <database>

          AMChartCon ?u netiq ?p netiq ?s sjcnguyenq03 ?db QDB

In order to get the Chart Console to launch without a username password check the following changes were made to the EXTENSIONS file for the Control Center Console.  This file is located in the following folder on the computers where the Console has been installed:

\Program Files\NetIQ\AppManager\Control Center\bin\Jobs.Extensions.XML :

          <Item Name="AppManager Utilities" VisibleOnSingleSelectOnly="true">
          <Item Name="Chart Console" VisibleOnSingleSelectOnly="true" >
          <Program>%%_AMPATH%%\bin\amchartcon.exe</Program>
          <Parameters> /SERVER=%%_REPOSITORYSERVER%% /R=%%_REPOSITORYNAME%% %%_AMOCPATH%%</Parameters>
          </Item>
          <Item Name="Chart Console - No Interface" VisibleOnSingleSelectOnly="true" >
          <Program>passthrough.cmd</Program>
          <Parameters>"%%_AMPATH%%\bin\amchartcon.exe" -u sa -p netiq -s am6ck -db QDB</Parameters>
          </Item>

Additional Information

Formerly known as NETIQKB47024

Note:  The _LOGONNAME and _LOGONPASSWORD variables can only support SQL authentication.  The values cannot be used to pass Windows NT account information if such authentication is being used.

Example of using environment variable lookup function:

%%_ENVLOOKUP("Path")%%

Example of using registry lookup function:

%%_REGLOOKUP("HKEY_LOCAL_MACHINE", "SOFTWARE\NetIQ\AppManager\4.0","InstallPath")%%