Installing Altiris Agent on Ubuntu

Similar documents
Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Network Monitoring & Management. A few Linux basics

Some Ubuntu Practice...

Puppet 101 Basic installation for master and agent machines on Ubuntu with VMware Workstation

Post Ubuntu Install Exercises

Introduction. What is Linux? What is the difference between a client and a server?

Lab E2: bypassing authentication and resetting passwords

Linux Essentials Objectives Topics:

OPERATING SYSTEMS LINUX

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

LAB #7 Linux Tutorial

LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

Ubuntu Practice and Configuration Post Installation Exercises interlab at AIT Bangkok, Thailand

Altiris Client Management Suite 7.1 from Symantec User Guide for Mac Management

L.A.M.P. Stack Part I

PROBE INSTALLATION AND CONFIGURATION GUIDE RELEASE 5.1

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5

BPPM Patrol Agent Installation Steps on Linux and Automation Integration

LAN Setup Reflection

NetIQ Privileged Account Manager 3.2 Patch Update 4 Release Notes

Image Management Service. User Guide. Issue 03. Date

LinX Software Suite v3 Getting Started

Lab Working with Linux Command Line

Bacula BackUp Server Einrichten eines Bacula BackUp Servers. Version: 1.2

EnSight 10.2 Installation Guide

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

Getting Started with. Agents for Unix and Linux. Version

Ftp Command Line Manual Windows Username Password Linux

Working with Ubuntu Linux. Track 2 Workshop June 2010 Pago Pago, American Samoa

Setting up my Dev Environment ECS 030

CIS 192 Linux Lab Exercise

Perl and R Scripting for Biologists

Installation of the OS

OPERATING SYSTEMS. Božo Krstajić, PhD, University of Montenegro Podgorica.

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

Operating Systems Linux 1-2 Measurements Background material

OpenStack Havana All-in-One lab on VMware Workstation

cron How-To How to use cron to Schedule rsync Synchronizations September 29, 2004

commands exercises Linux System Administration and IP Services AfNOG 2015 Linux Commands # Notes

Introduction to SUSE Linux Enterprise Server

Users Manual. OP5 System 2.4. OP5 AB. Page 1 of 6

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Linux Systems Administration Getting Started with Linux

Using grub to Boot various Operating Systems

CounterACT Macintosh/Linux Property Scanner Plugin

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

LPIC 102. be familiar with standard runlevels in a Linux system

IBM Storage Configuration Manager Planning, Installation, and Configuration Guide

Build your own NAS with OpenMediaVault

Open a browser and download the Apache Tomcat 7 and Oracle JDBC 6 JAR from these locations. The Oracle site may require that you register as a user.

Exercises. Notes: Exercise 1. Install the Cacti Plugin Architecture (Cacti PA)

Infoblox Kubernetes1.0.0 IPAM Plugin

Appliance Guide. Version 1.0

MINI-HOWTO backup and/or restore device or partition using zsplit/unzsplit

UNIT 9 Introduction to Linux and Ubuntu

Communication protocols and services

Lab 1 Introduction to UNIX and C

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Ubuntu Manually Mount Cdrom Drive Command Line Vmware

Automic Agent Deployment and Upgrade Toolkit. How-To Documentation

Setting-up WAN Emulation using WAN-Bridge Live-CD v1.10

Lab 1: Accessing the Linux Operating System Spring 2009

Downloading and installing Db2 Developer Community Edition on Ubuntu Linux Roger E. Sanders Yujing Ke Published on October 24, 2018

15. Creating a Samba Server in Knoppix v.3

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Install and Configure Ubuntu on a VirtualBox Virtual Machine

Laboratory 1 Semester 1 11/12

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

CS197U: A Hands on Introduction to Unix

CloudView NMS Agent User Guide. /multi-platform version/

How To Start Mysql Using Linux Command Line Client In Ubuntu

R- installation and adminstration under Linux for dummie

client X11 Linux workstation

Configuring Cross Platform Monitoring Using System Centre Operation Manager 2007 R2

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

SAP Business One. User Guide. Issue 04 Date HUAWEI TECHNOLOGIES CO., LTD.

Remote GUI access to a Linux computer using Tightvnc

ELE409 SPRING2018 LAB0

NetApp Data Ontap Simulator Cookbook

Using RDP with Azure Linux Virtual Machines

How to securely isolate Damn Vulnerable Linux with VirtualBox

HANDS UP IF YOU DON T HAVE A VM OR IF YOU DON T REMEMBER YOUR PASSWORDS. Or something broke

Performing Administrative Tasks

Image Management Service. User Guide. Issue 08. Date

AutoForm plus R6.0.3 Release Notes

Linux crash lecture by Andrey Lukyanenko

Bitnami MEAN for Huawei Enterprise Cloud

Virtual Data Center (vdc) Manual

Dell EMC ME4 Series vsphere Client Plug-in

This material is based on work supported by the National Science Foundation under Grant No

Laboratory Exercise: Session Data

Relarium (RLM) Masternode Guide for VPS

Networks Lab Pod Diagram

Siemens PLM Software. HEEDS MDO Setting up a Windows-to- Linux Compute Resource.

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

manifold Documentation

Ftp Get Command Line Win 7 Boot Repair

How to monitor RedHat Enterprise Linux 5 or 6 using Microsoft System Center Operations Manager (SCOM) 2012 SP1 - Part 1

SmartCash SmartNode SCRIPT Setup Guide v2.2. Windows 10. Date: 20/02/2018. By (Jazz) yoyomonkey

Transcription:

Installing Altiris Agent on Ubuntu

DISCLAIMER: Altiris does not warrant that their software will run on Ubuntu using the Unix Agent version 6.2, which as of publication of this article, is the latest release. The methods described in this article are provided as USE AT YOUR OWN RISK. If you should run into issues with the ideas and / or methods mentioned in this article, please do not call Altiris support for assistance, as they will not be able to help you.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 3 How to install the Altiris Agent on Ubuntu It works, it works!!!, but wait a second, currently Ubuntu is not a supported operating system by Altiris, but it can still be installed and Inventory can function correctly. Note: This procedure is based on my own experience and testing. It s not my intention to describe how it must be done, but only to comment what has worked for me. It s my understanding that the whole process can be simplified and improved. Some basics For those who are used to SuSE and RedHat based distributions, Ubuntu is Debian based. There are some things that are a little bit different. Some remarkable differences we can find in Ubuntu that impact in the Altiris NS Agent installation process are root account is disabled by default SSH service is disabled by default Ubuntu is not a RPM based operating system (Altiris Agent for Linux installer is RPM based). RPM installers are not compatible (I ll explain a trick later) Different runlevel system behavior, /etc/init.d folders structure is different Dealing with the differences The fact that the root account and the SSH service are disabled by default means that installation from the NS console won t work. Ubuntu users are required to use the sudo command in front of any action that requires root access. The sudo command allows a user to execute a command with root privileges. Personally, I prefer to enable the root account (regardless of Security concerns), at least while the installation is being performed. In order to get the installer on the local system, there are several options, enable SSH and use a tool to perform a file copy thru SSH (for Windows only users, Win SCP is the ideal free tool for this action). Having my fingers tired of so much typing I preferred to install Midnight Commander (yes, it s the fantastic Norton Commander, but for Linux), just to make life easier. Other choices, wget, ftp, smb mount, removable storage, or any other way you could imagine to get a file into a Linux system. Besides the problem of getting the NS Agent installer copied to the system, the NS Agent for Linux installer is RPM based. So even if we were allowed to push the installer, it won t work because Ubuntu does not know how to deal with this file type. I had to find a way for extracting the agent files from the rpm file and place them in the correct place. I made use of

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 4 two tools (to make sure that all files got to the right place. Additional testing could confirm if two tools are really needed or if a single command works. The first tool was alien, a special application which allows non-rpm based systems to work with rpm files. It converts between rpm, deb, slp, tgz and pkg file formats. The second tool is a standard command line tool available in most platforms, rpm2cpio, which extracts cpio archive from rpm (cpio is a tool for creating and extracting archives, or copying files from one place to another). In other words, I extracted the contents of the NS Agent for Linux rpm installer and put the files in their default folder. Because Ubuntu uses a different runlevels folder structure (runlevel, for those very new to the Unix/Linux world refers to the set of services/processes enabled at startup. Commonly runlevel 3 is used when no X Windows graphical interface is desired, just console. And runlevel 5 means fully loaded with graphical windows interface. This runlevel is represented by folders and files in those folders which represent services to startup on boot), it was necessary to add some files and links to have the Altiris Agent running on startup automatically. Step-by-Step Note: As I previously mentioned, this document refers to what I did to make it work and not exactly what you must do. In addition, these notes were taken from my first try. I understand the process could be modified, some steps removed or others actions required to make it work for you. My main goal is to provide you with some ideas about what needs to happen, and you could do in case it does not work. Open a console session (CTRL+ALT+F1/F2/F3 ) Remember that the root account in Ubuntu is not enabled by default

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 5 Enable root user I performed this action just because I did not want to use sudo in front of all the commands which required elevated privileges Enter #sudo passwd root and then type the password for your user first and then the password for the root user.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 6 Login as root Once root account is enabled, exit or open a new console and login as root. Install Midnight Commander Optional, but recommended if you are not comfortable with Linux console. If your system does not have MC installed (by default it does not), you can run apt-get install mc to download and install it automatically. Once you have it downloaded and installed, run mc

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 7 Verify Name Resolution Make sure your NS server name is properly resolved. My server name is testiris.altlab.com.ar, and so ping testiris.altlab.com.ar will let me know if name resolution is working. TIP: NIC interfaces are setup in /etc/network/interfaces (DHCP/Static) If you make a change to this file, restart the network by running /etc/init.d/networking restart

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 8 If you have problems with name resolution, you have two basic options, You can edit the name resolution setup file /etc/resolv.conf to define your domain and dns server if not provided by DHCP and/or customize the hosts file /etc/hosts to force name resolution to your NS server.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 9 Get Altiris Agent for Linux Create a folder to store the installer mkdir /root/nsclient The Altiris Agent for Linux is located on the Altiris Notification Server, which is available by several different methods as shown below: C:\Program Files\Altiris\Notification Server\NSCap\Bin\Unix\Agent\Linux\x86 \\testiris\nscap\bin\unix\agent\linux\x86 http://testiris.altlab.com.ar/altiris/ns/nscap/bin/unix/agent/linux/x86/ http://testiris/altiris/unixagent/altirisunixagentdownload.aspx?id=56

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 10 Use your preferred method to get the file and copy it to /root/nsclient, using one of the following methods: From the Ubuntu graphical interface, open Firefox and access to the Unix Agent download page on the NS: http://testiris/altiris/unixagent/altirisunixagentdownload.aspx?id=56. At the bottom of the page you will find a link to access the contents of the package directory. From the Ubuntu console, Midnight Commander provides a feature to mount a SMB link (SMB allows access to Windows shares). Select SMB Link, type <server>/nscap, and provide proper credentials. The smbclient command allows ftp style commands. Use the get command to download the file in your present working directory More options (Linux has plenty of options!), use smbfs (smbmount) tools to mount the Windows share. If smbfs is not installed by default, type apt-get install smbfs y (-y means no prompts ) o To mount the nscap share, type smbmount //testiris/nscap /mnt/ -o username=administrator,password=yourpassword o To copy the installer from the mount point to the local folder, type cp /mnt/bin/unix/agent/linux/x86/aex-nsclt-6.2-1378.i386.rpm /root/nsclient/ Here are some screenshots with some of the different ways to copy the installer

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 11

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 12

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 13 Run the installer Now that I have the installer in place, the next thing to do is install it. As I said before, Ubuntu does not know how to handle RPM files. I need to simulate the installation by extracting the contents and going thru the installation scripts. I have found two tools to help me with this procedure, alien (it msut be be installed, more details later, converts between rpm, debian and

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 14 other file formats), and rpm2cpio, which extracts cpio archive from rpm (cpio is a tool for creating and extracting archives, or copying files from one place to another). The goal is to copy all the files in place from the installer into the system folders structure just as the installer would do if rpm were supported. First, let s extract the files from the rpm and copy them in place. The following command will do this rpm2cpio aex-nsclt-6.2-1378.i386.rpm cpio vid We can see that this command extracted the contents of the RPM into the present working directory, so let s move the folder to the root Type mv opt/ / and make sure it has been done properly by listing /opt/ folder Type ls /opt/ you should see an altiris folder beneath it

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 15 Install alien by typing apt-get install alien y (this action asked me for the Ubuntu CD on the cdrom drive) Notes about alien: alien is (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations. Installing alien thru apt-get requires the Ubuntu CD in the drive, I ran into an issue here, some contents require access to the Ubuntu CD rather than downloading the files from the Internet.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 16 The fix is to disable installing updates from the CD-ROM and enabling the installation of updates from all Internet sources. This is done in the Preferences section of Add/Remove Applications. Afterwards, when installing alien, the patch is downloaded from the Internet and the installation is successful. Alternatively, edit /etc/apt/sources.list and put a # in front of the first line which must begin with deb cdrom:[ubuntu-. This will make apt-get to go directly to Internet to look up for sources. Now alien is installed and files have been extracted with rpm2cpio, let s try to mimic the rpm installation scripts with alien and see the results. Type alien -i aex-nsclt-6.2-1378.i386.rpm scripts Disregard the error about being unable to find aex-configure, as it will be solved manually a little later.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 17 Configuring and Testing the Agent Now I m going to try to configure the Altiris Agent by running aex-configure iconfigure Type cd /opt/altiris/notification/nsagent/bin Type./aex-configure iconfigure It will result in a missed library error This error is thrown as the system is unable to find the Altiris libraries. Let s add the Altiris Agent lib folder to the library path and try again Type export LD_LIBRARY_PATH=/opt/altiris/notification/nsagent/lib/:$LD_LIBRARY_PATH Type./aex-configure.bin iconfigure Now it works!

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 18 This variable will be lost at restart, we need to set it fixed somehow, so that it s present every time Ubuntu starts. There are several ways of doing this (a simple way could be just copying all the lib/* to /lib). I prefer the following method, create a file /etc/ld.so.conf.d/altiris.conf with the following content: # Altiris default configuration /opt/altiris/notification/nsagent/lib Save and run ldconfig. Then restart the system and try again to run aex-configure.bin iconfigure. If aex-configure complains about missing library, something is wrong with your lib path.

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 19 Altiris Agent Configuration Next step is to setup the altiris agent as follows: Type cd /opt/altiris/notification/nsagent/bin Type./aex-configure.bin iconfigure Each configuration item has an example and should not be a problem what the script is asking for. The first item is the most important one. Make sure the correct server name is entered (usually this is the Fully Qualified Domain Name). Then it s all next, next, next. With the only exception being I like to setup the logging (in testing systems) to debug. Say yes to final question if you want to start the agent (I guess you can t wait for!) But I have bad news for you Altiris Agent is not running yet, Type ps ef, you will find that there aren t any Altiris (aex*) processes running. Type /etc/init.d/altiris status, and you will get an error message saying that it can t open /etc/rc.d/init.d/functions Remember I told you Ubuntu has a different runlevel folders structure. This is the problem. The way of solving it is by creating some links, as the folder rc.d and init.d do not exist in Ubuntu. These folders are needed by the agent to run. Type mkdir /etc/rc.d Type mkdir /etc/rc.d/init.d Type ln -s /lib/lsb/init-functions /etc/rc.d/init.d/functions Type ln s /etc/init.d/altiris /etc/rc2.d/s99altiris (This line starts the altiris agent in runlevel 2)

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 20 (My Ubuntu system boots on runlevel 2) Type ln s /etc/init.d/altiris /etc/rc3.d/s99altiris (This line starts the altiris agent in runlevel 3) Type ln s /etc/init.d/altiris /etc/rc5.d/s99altiris (This line starts the altiris agent in runlevel 5) Start the altiris agent Type /etc/init.d/altiris start Do not worry about the message 101: success not found Check to see if the altiris agent is running by typing ps ef grep aex If you have the Inventory Tasks for Linux enabled, the Ubuntu system should run Inventory soon. Requesting Altiris Agent Configuration Type./aex-refreshpolicies while in the nsagent/bin directory

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 21 Send Basic Inventory Type./aex-sendbasicinv from th nsagent/bin directory Show Agent Tasks Type./aex-swdapm from the nsagent/bin directory

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 22 Monitor Agent Log Type tail f /opt/altiris/notification/nsagent/var/aex-client.log

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 23 Resource Manager

H o w t o I n s t a l l t h e A l t i r i s A g e n t o n U b u n t u L i n u x P a g e 24 Note: As Ubuntu does not use the RPM format (and as was mentioned previously Ubuntu is not officially supported by Altiris) some information could not be collected. These issues could be solved by creating custom inventories to collect those special items. DISCLAIMER: Altiris does not warrant that their software will run on Ubuntu using the Unix Agent 6.2, which as of publication is the latest release. The methods described in this article are provided as USE AT YOUR OWN RISK. If you should run into issues with the ideas and / or methods mentioned in this article, please do not call Altiris support for assistance, as they will not be able to help you.