Is there a comprehensive guide to installing and configuring the Notification Server Agent for UNIX/Linux/Mac?
The most frequent issue with the Notification Server Agent for UNIX deals with installation. This document is designed to be a definitive guide to installing the Notification Server Agent for UNIX (agent). Included are descriptions of the various installation and configuration methods and supporting information.
There are five installation methods and five configuration methods for the Notification Server Agent for UNIX. They are:
The following table shows which configuration methods are or can be used with each installation method:
|
Push from NS Console |
Browser Pull |
Manual |
Manual |
Automatic |
√ |
√ |
√ |
|
Agent Settings |
√ |
|
|
|
.aex-agent-install-config.xml |
√* |
√** |
√ |
√ |
aex-configure*** |
|
|
√ |
√ |
Environment variables |
|
|
|
√ |
* A push installation will download and use a copy of the .aex-agent-install-config.xml file to the client receiving the agent. If no updates were made to the agent settings in the Notification Server Console, then the file will contain default settings.
** A pull installation will download a copy of the .aex-agent-install-config.xml file with default settings. It is possible for a user to modify these settings prior to manually running agent installation (for good or ill).
*** aex-configure can be run at any time after the agent installation to change certain agent settings, including Notification Server hostname. It does not modify an existing installation path even though there is a prompt for that path.
The agent installation screen can be found in the Notification Server Altiris Console. Navigate to the Configuration tab, expand the left-pane menu to Altiris Agent > Altiris Agent Rollout, and click on Altiris Agent Installation. Note that this screen can have from one to three tabs, depending on the solutions installed – one each for Windows, UNIX, and Macintosh. Be sure to select the appropriate tab for the desired client computer platform you will be working with—in this case, UNIX.
Computers
Following is a sample from a 6.0 Console with the "Install Altiris UNIX Agent" screen selected:
The UNIX agent package files are installed to the Notification Server’s NSCap directory. There is a separate package for each of the supported platforms. Based on a default installation of the Notification Server, the agent packages are found in the following location on the Notification Server: C:\Program Files\Altiris\Notification Server\NSCap\bin\UNIX\Agent
For example, the following folders in 8.5 RU4 exist for supported operating systems:
* Note that Itanium servers can run PA-RISC software.
The packages for the various platform contain an identical set of files. The files consist of:
aex-boostrap: A compressed, platform-specific file used to set up the environment on the client, download and run the aex-nsclt installation package and configure the agent installation.
aex-bootstrap (UUencoded): A compressed, platform-specific, uuencoded version of the bootstrap used when normal connection, download, and installation methods fail.
aex-nsclt: A compressed, platform-specific package used to actually install the agent on a client computer.
agent-upgrade: Shell script used by the upgrade policy. Recommended for any installation where a previous build of the agent is already installed. It is designed to recognize and correctly handle any previous installation.
Following is a complete list of the package contents for each platform. Note that the package format and compression method are platform-specific.
AIX: aex-bootstrap.Z
aex-bootstrap.Z.uu
aex-nsclt.6.2.1378.bff.Z
agent-upgradeHP-UX: aex-bootstrap.Z
aex-bootstrap.Z.uu
aex-nsclt.6.2.1378.depot.Z
agent-upgradeLinux:aex-bootstrap.gz
aex-bootstrap.gz.uu
aex-nsclt-6.2-1378.i386.rpm
agent-upgradeSolaris (Sparc):aex-bootstrap.Z
aex-bootstrap.Z.uu
aex-nsclt-6.2.1378-sol-sparc.Z
agent-upgradeSolaris(x86):aex-bootstrap.Z
aex-bootstrap.Z.uu
aex-nsclt-6.2.1378-sol-intel.Z
agent-upgrade
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.
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 Notification 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.
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.
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 an .aex-agent-install-config.xml file in the following locations in this order. The search ends when the first occurrence is located:
Note that this search does not use the clients $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>'<SMPServername>'</NSName>
<NSProtocol>http</NSProtocol>
<Settings UseNSIPAddress="no" NSIPAddress="<192.0.2.1>" 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>
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:
Note: The following 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:
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
./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 :
The directory the Agent package has been installed to? (/opt/altiris/notification/nsagent):
Do you want to keep the 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., example.com / Altiris.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.
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
A Push installation is initiated in the Notification Server Console. The agent installation screen can be found in the Notification Server Altiris Console. Navigate to the Configuration tab, expand the left-pane menu to Altiris Agent, Altiris Agent Rollout and click on ‘Altiris Agent Installation’. Note that this screen can have from one to three tabs, depending on the solutions installed—one each for Windows, UNIX and Macintosh. Be sure to select the appropriate tab for the desired client computer platform you will be working with.
The push installation will attempt to connect to a specified client computer and download a bootstrap file that will setup the client environment, download and run the aex-nsclt package.
The basic steps for a Push installation are
The URL listed on the above page can be distributed via email or other method to all applicable recipients. Be sure that the URL contains the appropriate platform ID value as there is a separate package for each platform.
Manual using the aex-nsclt package
This is the most direct method of installing the agent but requires configuration. All other methods have a default configuration.
To install the aex-nsclt package:
It may be desirable to setup a mount from a Linux or UNIX computer to easily copy the agent installation files to a local client computer. Following are instructions for doing so in Linux.
Usage: aex-bootstrap (NS|URL) (-test) (-dir DIR) (-speedlimit N) (-onefile)
This program will get all files at a URL/NS Package into the specified directory. It can also be used to download a file from a URL. When started with no NS/URL argument configuration must be provided in an XML file present in the same directory, or (in the case of a automatic reschedule) at one of the standard locations.
Arguments:arg 1 = name of NS, URL of a package or file
Optional Commands: