Symantec Management Platform (Notification Server)

 View Only

Configuration - The Comprehensive Guide to the NS Agent for Unix 

Oct 29, 2007 06:37 PM

Configuration is required to direct the agent on the client to the correct Notification Server, among other things. Depending on the installation method chosen, the installation directories, run-levels and logging details can also be configured.

Automatic Method

A normal push installation will use default settings for the installation of the agent on a client computer. The agent will be configured to communicate with the NS server doing the push installation. In this case, only the Connection and Authentication information need be specified. No Agent settings need be modified.

Note: The push installation will create a .aex-agent-install-config.xml file that contains default settings and download it to the client computer for use during the installation process. This method is labeled 'automatic' since no user interaction is required for this process.

Agent Settings Method

The Agent Settings screen can be accessed from the 'Install Altiris UNIX Agent' screen by entering adding a computer, highlighting it and selecting 'Install Settings…. A new window will open. Click on the 'Agent Settings' tab. Any of the settings on this screen can be modified and will affect the 'push' installation of the agent to the selected client computer.

Any changes made here will also be used when saving the .aex-agent-install-config.xml file from the 'Install XML' tab in this window.

.aex-agent-install-config.xml Method

The 'Install Settings' window can be used to create a .aex-agent-install-config.xml (config.xml) file. This is most helpful during a manual installation process.

An installation using aex-bootstrap or aex-nsclt will search for a .aex-agent-install-config.xml file in the following locations in this order. The search ends when the first occurrence is located:

  1. If the current directory is not root, check the current directory
  2. If the current directory is not root, check the parent directory
  3. Check in the folder specified by the AGENT_INSTALL_DIR environmental variable.
  4. Check in the folder specified by the AEXCLIENT_CONFIG_XML_DIR environmental variable.
  5. Check in folders: /tmp, /var, and /opt/altiris
Note: This search does not use the client's $PATH environment variable for additional locations.

It has to be noted that the native package manager may change the current working folder when installing the Altiris UNIX Agent package (aex-nsclt). For this reason, aex-configure (Altiris UNIX Agent configuration tool) may be executed from a different place and thus may not be able to find the configuration XML file. This behavior is typical, for example, in case of the GNU/Linux platform and the RPM package manager. Therefore, we recommend the /tmp or /var directories when using aex-nsclt.

Sample .aex-agent-install-config.xml

<?xml version="1.0" encoding="utf-16"?>
<NSAgentConfiguration>
<NSName>djvds</NSName>
<NSProtocol>http</NSProtocol>
<Settings UseNSIPAddress="no" NSIPAddress="192.168.58.101" UseDomain="no" EnableNICError="no" Upgrade="yes" Start="yes" AllowNonRoot="yes" RunLevel="rc2;rc3;rc5">
<CurlSSL SSLVerifyPeer="no" SSLVerifyHost="no" CAInfo="" CAPath="" />
<EventLog LogDir="%INSTDIR%/var" LogFile="aex-client.log" LogSize="256" LogLevel="Error" SysLogLevel="None" />
<ComputerInformation Name="hostname" Domain="empty" />
<InstallDir>/opt/altiris/notification/nsagent</InstallDir>
<BinDir>/usr/local/bin</BinDir>
<TempDir>/tmp</TempDir>
<GuidDir>%INSTDIR%/etc</GuidDir>
<GuidFile>host.GUID</GuidFile>
<EventQueueDir>%INSTDIR%/var/queue</EventQueueDir>
<TasksDir>%INSTDIR%/var/tasks</TasksDir>
<PackagesDir>%INSTDIR%/var/packages</PackagesDir>
<SWDDir>%INSTDIR%/var/swd</SWDDir>
</Settings>
<ClientDetails>
<SerialNumber>null</SerialNumber>
<AssetTag>null</AssetTag>
<EmployeeID>null</EmployeeID>
<ContactName>none</ContactName>
<ContactPhone>none</ContactPhone>
<ContactEmail>none</ContactEmail>
<Location>none</Location>
<Department>none</Department>
<Description>none</Description>
</ClientDetails>
</NSAgentConfiguration>

aex-configure Method

This utility can be run after a manual installation of the agent. By default, it is found in:

/opt/altiris /notification/nsagent/bin/aex-configure

It can be run with default settings without prompts or it can be run in interactive mode. aex-configure has the following command-line options:

--help, -h Display this usage information and exit immediately.
-clean Remove aex-configure created files prior to uninstall.
-configure Automatically configure/upgrade an installation from an XML config file.
-iconfigure Interactively configure/reconfigure an installation ignoring any XML file.
help <-command> Display help on the specified command
This document will discuss the '-configure' and '-iconfigure' commands.

-configure

This option automatically configures or upgrades an installation using an XML config file. This option has the following sub-options:

-noimode [optional] By default, if this option fails to find either a previously installed agent or an XML-formatted configuration file, it steps into the interactive mode. By specifying this option, the interactive fallback mode is disabled.
-nosearch [optional] Do not search for the installed agent.
-dir <Agent-Base-Dir> [optional] Altiris Agent for UNIX and Linux installation root folder.
-quiet [optional] Generate no output.

Running 'aex-configure --configure' on an existing installation without an update .aex-agent-install-config.xml file or without update environment variables will cause the program to set all configurable items to their current state. Essentially, it makes no changes.

-iconfigure

Interactively configure/reconfigure an installation ignoring any XML file. The options are:

-nosearch [optional] Do not search for the installed agent.
-dir <Agent-Base-Dir> [optional] Altiris Agent for UNIX and Linux installation root folder.
-quiet [optional] Generate no output.

The following is a capture of the output of running 'aex-configure --iconfigure':

*********************************************************************************
./rcscript stop
Stopping Altiris Agent for UNIX and Linux: [ OK ]

# ./aex-configure -iconfigure

Altiris Agent for UNIX and Linux Configuration utility.
Using interactive configuration, cancel with Ctrl-C.
Please answer the following questions.
Defaults are in brackets. To accept a default just press enter.

Name or IP of Notification Server? If your server uses HTTPS or a non-default port, it is necessary to specify the full URL.
Example: https://www.altiris.com:8083 (mynshostname):
The directory the Agent package has been installed to? (/opt/altiris/notification/nsagent):
Do you want to keep old settings? (yes):
Allow program execution by unprivileged users? (yes):
Which Run levels should the agent be installed in? (rc2;rc3;rc5;):
In which directory should the Agent's log file be stored? (/opt/altiris/notification/nsagent/var):
What should the name of the Agent's log file be? (aex-client.log):
What should be the maximum size, in kilobytes, of the Agent's log file? (256):
What level of logging should be used for the Agent's log file (error,warning,info,debug,dbgverbose,devnote)? (error):
What level of logging should be used for the system log file (none,error,warning,info)? (None):
Directory to use, which should be in the PATH, to create links to the Agent's binaries? (/usr/bin):
Temporary directory for the Agent's use? (/tmp):
Agent's event queue directory (default recommended)? (/opt/altiris/notification/nsagent/var/queue):
Agent's tasks directory (default recommended)? (/opt/altiris/notification/nsagent/var/tasks):
Do you want the Agent started after configuration? (yes):
Removing aex-* links in /usr/bin
Removing RC init links and scripts

Migrating Agent 6.2.1378 settings...

Creating customized RC and environment scripts.
Setting up RC scripts to start Agent at system start.

Starting Altiris Agent for UNIX and Linux.
Altiris Agent for UNIX and Linux is running
Configuration complete.

*********************************************************************************


Note: The prompt shows the server name as an http url. It is acceptable to enter only the hostname (short or FQDN), e.g., mynshostname or mynshostname.mydomain.com.
Note: The log file size is the total size of all log files combined -- not each individual log file. The number of log files to be created can be configured in the /opt/altiris/notification/nsagent/etc/client.conf file.
Note: By default, links to certain agent commands are created in the /usr/bin directory. This path can be changed. Allowing 'program execution by unprivileged users' will allow any non-admin user to run these commands. Commands include: aex-sendbasicinv, aex-refreshpolicies, etc. A non-privileged user can run aex-swdapm to view the list of applicable tasks but cannot actually run the task. Only an admin/super-user can run tasks.

Environment variables Method

The following environment variables can be set on a unix or linux client prior to running aex-bootstrap, aex-configure or the aex-nsclt package. These settings will be used to perform basic configuration of the agent.

Aex-nsclt Package installation:

  • AGENT_INSTALL_DIR -- default directory is /opt/Altiris/notification/nsagent

Aex-configure:

  • AEXCLIENT_CONFIG_FILE -- location of .aex-agent-install-config.xml file. Use this one.
  • AEX_INSTALL_NSNAME -- Hostname of NS Server to communicate with
  • AEX_INSTALL_AUTOSTART -- Setup rcscripts to start agent process for specified run levels
  • AEX_INSTALL_RUNLEVELS -- Run levels on which the agent process should start

Overview - The Comprehensive Guide to the NS Agent for Unix

Installation - The Comprehensive Guide to the NS Agent for Unix

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

May 24, 2011 05:30 AM

Hi,

 

I am trying to make it work on a Ubuntu 10.04 with NS 7.1 , anyone has already done that ?

 

Thanks,

Dec 30, 2010 04:20 PM

This may be an old article, but I can vouch that the xml file still exists in the 7.0 release.  I was lucky to find this article after beating my head on my desk for an hour!

Related Entries and Links

No Related Resource entered.