Installing the ZENworks Adaptive Agent on a Linux machine through SSH

0 Likes
By ethanspoelstra

Preface:
Linux system administrators frequently find they need to log into many servers to manage all the services they provide. Keeping up with updates across all these machines can be challenging, with few reporting solutions offering the ability to install the patches as well. ZENworks Configuration Management with Patch Management can do this for you. In this AppNote I'll show you how to remotely (or locally through the command line) install the ZENworks Adaptive Agent so you can take advantage of these benefits.

Installing the ZENworks Adaptive Agent
Installing the ZENworks Adaptive Agent on a Linux server through SSH
Log into the server through SSH. One of the first things I do is launch a resumable session through the program ‘screen’, this allows me to get disconnected and still get back to where I was without the program aborting.
OESLIN10:/# screen

Now change directory ‘cd’ to the /tmp folder.
OESLIN10:/# cd /tmp

Use ‘wget’ to download the ZAA installer. The syntax varies based on whether you are using a self signed certificate or not. If you have a self signed certificate you will need to use --no-check-certificate as an option. For example: ‘wget --no-check-certificate https://path-to-agent’ Otherwise you can simply wget the file without the --no-check option. See appendix A for the ZAA example links to use with ‘wget’ for x86 and x86_64 in ZCM 11.2.0.
OESLIN10:/tmp # wget --no-check-certificate https://your.servername.here:port/zenworks-downloads/setup/x86_64/PreAgentPkg_AgentLinuxComplete.bin
--16:26:47-- https://your.servername.here:port/zenworks-downloads/setup/x86_64/PreAgentPkg_AgentLinuxComplete.bin
=> `PreAgentPkg_AgentLinuxComplete.bin'
Resolving oeslin10.domain.com... YOUR.IP.HE.RE
Connecting to oeslin10.domain.com|YOUR.IP.HE.RE|:PORT... connected.
WARNING: Certificate verification error for oeslin10.domain.com: self signed certificate in certificate chain
HTTP request sent, awaiting response... 200 OK
Length: 127,141,575 (121M) [application/octet-stream]

2% [> ] 3,779,723 311.04K/s ETA 06:28

After the download completes, you will need to ‘chmod x PreAgentPkg_AgentLinuxComplete.bin’
OESLIN10:/tmp # ll PreAgentPkg_AgentLinuxComplete.bin
-rw-r--r-- 1 root root 127141575 Oct 18 2012 PreAgentPkg_AgentLinuxComplete.bin

OESLIN10:/tmp # chmod x PreAgentPkg_AgentLinuxComplete.bin

OESLIN10:/tmp # ll PreAgentPkg_AgentLinuxComplete.bin
-rwxr-xr-x 1 root root 127141575 Oct 18 2012 PreAgentPkg_AgentLinuxComplete.bin

Run the installer with ‘./PreAgentPkg_AgentLinuxComplete.bin’ Wait for the install to complete.
OESLIN10:/tmp # ./PreAgentPkg_AgentLinuxComplete.bin

Cmd: '/bin/sh /opt/novell/zenworks/stage/installJava.sh INSTALL_JRE'

Starting the installation...
Checking pre-requisites...
Opening the TCP and UDP port 7628 on the firewall...
ZLM agent is installed on this device. Migrating the bundle list, bundle and package locks..
Warning :Failed to migrate the package locks
Uninstalling the ZLM agent...
Installing the packages...
Installing novell-zenworks-version-11.2.0-16117.noarch.rpm (1 of 42)
Info :Successfully installed the package novell-zenworks-version-11.2.0-16117.noarch.rpm.
Installing novell-zenworks-xplat-jsvc-1.0.2-1.x86_64.rpm (2 of 42)
Info :Successfully installed the package novell-zenworks-xplat-jsvc-1.0.2-1.x86_64.rpm.
Installing novell-zenworks-xplat-equinox-runtime-11.2.0-15997.noarch.rpm (3 of 42)
Info :Successfully installed the package novell-zenworks-xplat-equinox-runtime-11.2.0-15997.noarch.rpm.
Installing novell-zenworks-xplat-zmd-runtime-deps-11.2.0-15997.noarch.rpm (4 of 42)
Info :Successfully installed the package novell-zenworks-xplat-zmd-runtime-deps-11.2.0-15997.noarch.rpm.
Installing novell-zenworks-zmglibs-11.2.0-16071.x86_64.rpm (5 of 42)
Info :Successfully installed the package novell-zenworks-zmglibs-11.2.0-16071.x86_64.rpm.
Installing novell-zenworks-zmgweb-11.2.0-16071.x86_64.rpm (6 of 42)
Info :Successfully installed the package novell-zenworks-zmgweb-11.2.0-16071.x86_64.rpm.
Installing novell-zenworks-zislnx-11.2.0-16071.x86_64.rpm (7 of 42)
Info :Successfully installed the package novell-zenworks-zislnx-11.2.0-16071.x86_64.rpm.
Installing novell-zenworks-xplat-primary-agent-11.2.0-15997.noarch.rpm (8 of 42)
Info :Successfully installed the package novell-zenworks-xplat-primary-agent-11.2.0-15997.noarch.rpm.
Installing novell-zenworks-xplat-zencore-agent-11.2.0-15997.noarch.rpm (9 of 42)
Info :Successfully installed the package novell-zenworks-xplat-zencore-agent-11.2.0-15997.noarch.rpm.
Installing novell-zenworks-xplat-ss-configuration-11.2.0-16054.noarch.rpm (10 of 42)
Info :Successfully installed the package novell-zenworks-xplat-ss-configuration-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-satellite-server-langs-11.2.0-16054.noarch.rpm (11 of 42)
Info :Successfully installed the package novell-zenworks-xplat-satellite-server-langs-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-status-collection-11.2.0-16054.noarch.rpm (12 of 42)
Info :Successfully installed the package novell-zenworks-xplat-status-collection-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-status-collection-langs-11.2.0-16054.noarch.rpm (13 of 42)
Info :Successfully installed the package novell-zenworks-xplat-status-collection-langs-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-content-distribution-11.2.0-16054.noarch.rpm (14 of 42)
Info :Successfully installed the package novell-zenworks-xplat-content-distribution-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-content-distribution-langs-11.2.0-16054.noarch.rpm (15 of 42)
Info :Successfully installed the package novell-zenworks-xplat-content-distribution-langs-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-nal-11.2.0-16054.noarch.rpm (16 of 42)
Info :Successfully installed the package novell-zenworks-xplat-nal-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-imaging-server-11.2.0-16054.noarch.rpm (17 of 42)
Info :Successfully installed the package novell-zenworks-xplat-imaging-server-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-image-management-11.2.0-16054.noarch.rpm (18 of 42)
Info :Successfully installed the package novell-zenworks-xplat-image-management-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-imaging-native-11.2.0-16054.x86_64.rpm (19 of 42)
Info :Successfully installed the package novell-zenworks-xplat-imaging-native-11.2.0-16054.x86_64.rpm.
Installing novell-zenworks-xplat-uninstall-11.2.0-16054.noarch.rpm (20 of 42)
Info :Successfully installed the package novell-zenworks-xplat-uninstall-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-system-update-11.2.0-15997.noarch.rpm (21 of 42)
Info :Successfully installed the package novell-zenworks-xplat-system-update-11.2.0-15997.noarch.rpm.
Installing novell-zenworks-xplat-zennotifyicon-11.2.0-15997.x86_64.rpm (22 of 42)
Info :Successfully installed the package novell-zenworks-xplat-zennotifyicon-11.2.0-15997.x86_64.rpm.
Installing novell-zenworks-xplat-bundle-11.2.0-16054.noarch.rpm (23 of 42)
Info :Successfully installed the package novell-zenworks-xplat-bundle-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-inventory-11.2.0-16054.noarch.rpm (24 of 42)
Info :Successfully installed the package novell-zenworks-xplat-inventory-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-policy-11.2.0-16054.noarch.rpm (25 of 42)
Info :Successfully installed the package novell-zenworks-xplat-policy-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-dnd-proxy-11.2.0-16054.noarch.rpm (26 of 42)
Info :Successfully installed the package novell-zenworks-xplat-dnd-proxy-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-inventory-handler-11.2.0-16054.noarch.rpm (27 of 42)
Info :Successfully installed the package novell-zenworks-xplat-inventory-handler-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-inventory-linux-collector-11.2.0-16054.noarch.rpm (28 of 42)
Info :Successfully installed the package novell-zenworks-xplat-inventory-linux-collector-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-linux-pkgmgmt-11.2.0-16054.noarch.rpm (29 of 42)
Info :Successfully installed the package novell-zenworks-xplat-linux-pkgmgmt-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-action-handlers-11.2.0-16054.noarch.rpm (30 of 42)
Info :Successfully installed the package novell-zenworks-xplat-action-handlers-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-authentication-satellite-11.2.0-16054.noarch.rpm (31 of 42)
Info :Successfully installed the package novell-zenworks-xplat-authentication-satellite-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-patch-management-agent-11.2.0-42.noarch.rpm (32 of 42)
Info :Successfully installed the package novell-zenworks-patch-management-agent-11.2.0-42.noarch.rpm.
Installing novell-zenworks-lpm-satsolver-helpers-11.2.0_0.16.2-1.2.x86_64.rpm (33 of 42)
Info :Successfully installed the package novell-zenworks-lpm-satsolver-helpers-11.2.0_0.16.2-1.2.x86_64.rpm.
Installing novell-zenworks-ruby-1.8.7.p72-22.1.x86_64.rpm (34 of 42)
Info :Successfully installed the package novell-zenworks-ruby-1.8.7.p72-22.1.x86_64.rpm.
Installing novell-zenworks-facter-1.5.7-3.1.x86_64.rpm (35 of 42)
Info :Successfully installed the package novell-zenworks-facter-1.5.7-3.1.x86_64.rpm.
Installing novell-zenworks-puppet-0.24.8-16.1.x86_64.rpm (36 of 42)
Info :Successfully installed the package novell-zenworks-puppet-0.24.8-16.1.x86_64.rpm.
Installing novell-zenworks-xplat-puppethandler-11.2.0-16054.noarch.rpm (37 of 42)
Info :Successfully installed the package novell-zenworks-xplat-puppethandler-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-x11vnc-0.9.8-2.1.x86_64.rpm (38 of 42)
Info :Successfully installed the package novell-zenworks-xplat-x11vnc-0.9.8-2.1.x86_64.rpm.
Installing novell-zenworks-tightvnc-1.2.9-6.novell.0.7.rpm (39 of 42)
Info :Successfully installed the package novell-zenworks-tightvnc-1.2.9-6.novell.0.7.rpm.
Installing novell-zenworks-xplat-zmd-rmagent-native-11.2.0-0.x86_64.rpm (40 of 42)
Info :Successfully installed the package novell-zenworks-xplat-zmd-rmagent-native-11.2.0-0.x86_64.rpm.
Installing novell-zenworks-xplat-zmd-rmagent-11.2.0-16054.noarch.rpm (41 of 42)
Info :Successfully installed the package novell-zenworks-xplat-zmd-rmagent-11.2.0-16054.noarch.rpm.
Installing novell-zenworks-xplat-extservice-11.2.0-16054.noarch.rpm (42 of 42)
Info :Successfully installed the package novell-zenworks-xplat-extservice-11.2.0-16054.noarch.rpm.
Adding zone CA certificate to the trust store..
Creating the configuration files...
Cleaning up the installation files...
Starting the agent service /etc/init.d/novell-zenworks-xplatzmd...
The ZENworks Adaptive Agent has been successfully installed.

Appendix A

Default Agent (x86_Network) Linux x86 Architecture (32 bit)
Network (JRE required) 1.6 MB
https://your.servername.here:port/zenworks-downloads/setup/x86/PreAgentPkg_AgentLinux.bin
Default Agent (x86_Complete) Linux x86 Architecture (32 bit)
Standalone 119.3 MB
https://your.servername.here:port/zenworks-downloads/setup/x86/PreAgentPkg_AgentLinuxComplete.bin
Default Agent (x86_64_Network) Linux x86_64 Architecture (64 bit)
Network (JRE required) 1.6 MB
https://your.servername.here:port/zenworks-downloads/setup/x86_64/PreAgentPkg_AgentLinux.bin
Default Agent (x86_64_Complete) Linux x86_64 Architecture (64 bit)
Standalone 121.3 MB
https://your.servername.here:port/zenworks-downloads/setup/x86_64/PreAgentPkg_AgentLinuxComplete.bin

Tags:

Labels:

How To-Best Practice
Comment List
Related
Recommended