Application Delivery Management
Application Modernization & Connectivity
CyberRes
IT Operations Management
Preface:
I asked myself, how to get our appliances into ZENworks Service Desk, while I wanted to configure outages. Creating them manually wasn’t an option. So getting the Linux Inventory Agent installed on an appliance was the idea. Then I found an article from ethanspoelstra, who described installing the full agent on linux. I took some parts from his appnote.
Get ZENworks Inventory Only Agent
Installing the ZENworks Inventory Only Agent on a Linux server through SSH
Log into the appliance through SSH. I use Putty, while doing it through a Windows box. This requires an appliance to have SSH activated through the admin interface.
Now change directory ‘cd’ to the /tmp folder.
zsd:/# cd /tmp
Use ‘wget’ to download the ZIOA 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 ZIOA example links to use with ‘wget’ for x86 and x86_64 in ZCM 20.1.0.
zsd:/tmp # wget --no-check-certificate https://your.servername.here:port:443/zenworks-downloads/inventory/Linux/ZENworks_Inventory_Only_Agent_Linux_x86_64.tar.gz
--2021-07-01 13:36:47-- https://your.servername.here:port/zenworks-downloads/inventory/Linux/ZENworks_Inventory_Only_Agent_Linux_x86_64.tar.gz
Resolving your.servername.here:port (your.servername.here:port)... 127.0.0.2, 172.17.2.50
Connecting to your.servername.here:port (your.servername.here:port)|127.0.0.2|:443... connected.
WARNING: cannot verify your.servername.here:port's certificate, issued by ‘/O=Internal Certificate Authority/OU=ZENworks/CN=UTOPIA_ZONE’:
Self-signed certificate encountered.
HTTP request sent, awaiting response... 200
Length: 88075007 (84M) [application/x-gzip]
Saving to: ‘ZENworks_Inventory_Only_Agent_Linux_x86_64.tar.gz’
100%[======================================>] 88,075,007 53.6MB/s in 1.6s
2021-07-01 13:36:49 (53.6 MB/s) - ‘ZENworks_Inventory_Only_Agent_Linux_x86_64.tar.gz’ saved [88075007/88075007]
Get lsb-release RPM
The install script tries to determine the operating system, but this rpm isn’t provided on the appliances. In this example I will download the generic rpm for SLES12 boxes
zsd:/tmp # wget --no-check-certificate https://download.opensuse.org/repositories/home:/efagra:/SLE12/SLE_12/noarch/lsb-release-2.0-24.1.1.noarch.rpm
--2021-07-01 13:41:47-- https://download.opensuse.org/repositories/home:/efagra:/SLE12/SLE_12/noarch/lsb-release-2.0-24.1.1.noarch.rpm
Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 2001:67c:2178:8::13
Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://ftp.gwdg.de/pub/opensuse/repositories/home:/efagra:/SLE12/SLE_12/noarch/lsb-release-2.0-24.1.1.noarch.rpm [following]
--2021-07-01 13:41:47-- https://ftp.gwdg.de/pub/opensuse/repositories/home:/efagra:/SLE12/SLE_12/noarch/lsb-release-2.0-24.1.1.noarch.rpm
Resolving ftp.gwdg.de (ftp.gwdg.de)... 134.76.12.6, 2001:638:60f:110::1:2
Connecting to ftp.gwdg.de (ftp.gwdg.de)|134.76.12.6|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9317 (9.1K) [application/x-redhat-package-manager]
Saving to: ‘lsb-release-2.0-24.1.1.noarch.rpm’
100%[======================================>] 9,317 --.-K/s in 0s
2021-07-01 13:41:48 (223 MB/s) - ‘lsb-release-2.0-24.1.1.noarch.rpm’ saved [9317/9317]
Install lsb-release
zsd:/tmp # rpm -i lsb-release-2.0-24.1.1.noarch.rpm
warning: lsb-release-2.0-24.1.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 725caf93: NOKEY
Extract ZENworks Inventory Only Agent
zsd:/tmp# tar -xopf ZENworks_Inventory_Only_Agent_Linux_x86_64.tar.gz
Switch to the directory
Zsd:/tmp# cd ZENworks_Inventory_Only_Agent_Linux_x86_64
And run the script
zsd:/tmp/ZENworks_Inventory_Only_Agent_Linux_x86_64 # ./install.sh
Checking linux version..
Finding whether root user
Installing ZENworks Inventory Only Agent..
0
Installing agent RPMs ..
warning: user buildmgr does not exist - using root
Created symlink from /etc/systemd/system/multi-user.target.wants/novell-zenworks-xplatzmd.service to /usr/lib/systemd/system/novell-zenworks-xplatzmd.service.
Creating the profile /etc/profile.d/novell-zenworks-ioa.sh
Creating the profile /etc/profile.d/novell-zenworks-ioa.csh
Installation complete
Installation log is at /var/log/ZENworks_Inventory_Only_Agent_Install_01_Jul_2021-13.56.08.log
Register Agent with the ZENworks Server
zsd:/tmp/ZENworks_Inventory_Only_Agent_Linux_x86_64 #zac ioa cfg your.servername.here:port
Processing Command: ioa
First scan completed.
ioa cfg completed.
Successfully executed ioa command
Verify Registered Appliances in ZCC
Got to to Devices - Inventoried - Servers
Import Device(s) into Service Desk
Log into you service desk appliance as admin and add the inventoried servers into the hardware import page
Worked with following Appliances in my environment:
- Advanced Authentication 6.3
- Filr 4.2 and Content Editor
- ZENworks Reporting Server
- ZENworks Service Desk
Appendix A:
Agent Linux 32bit
Agent Linux 64bit