Thanks for the suggestion Keruskerfuerst, but that wasn't it. Even though I haven't gotten so much response here, I thought I would update the thread with what I did figure out.
The problem with the syntax error was caused by an "incorrect" shebang at the beginning of the file:
Code:
sandman@Pegasus:~/serverview_agents_install$ srvmagt
/usr/sbin/srvmagt: 16: /etc/srvmagt/functions: Syntax error: "(" unexpected
This was caused by
/usr/sbin/srvmagt being written for bash, but the shebang specifies
#!/bin/sh. In newer versions of Ubuntu, this shebang calls a dash shell, not bash. Changing this line to
#!/bin/bash allows the script to run without the syntax error.
But running the script with the command
still caused a lot of errors:
Code:
sandman@Pegasus:~/serverview_agents_install$ sudo srvmagt
Installation script for ServerView Agents Linux v7.00-10
(c) Fujitsu Technology Solutions 2014
/usr/sbin/srvmagt: line 299: rpm: command not found
/usr/sbin/srvmagt: line 299: rpm: command not found
/usr/sbin/srvmagt: line 299: rpm: command not found
/usr/sbin/srvmagt: line 299: rpm: command not found
/usr/sbin/srvmagt: line 299: rpm: command not found
Getting status of ServerView Agents Linux ...
More of the same.......
However, RPM can be installed in Ubuntu using apt-get, so that was the next step. After installing RPM, I want to run the command
Code:
sudo srvmagt install
to install the missing components of the Serverview Agent. But this will not work:
Code:
sandman@Pegasus:~/serverview_agents_install$ sudo srvmagt install
Installation script for ServerView Agents Linux v7.00-10
(c) Fujitsu Technology Solutions 2014
Software License Agreement for End Users and Third Party License, see
/usr/share/doc/packages/srvmagt-agents,
/usr/share/doc/packages/srvmagt-eecd and
/usr/share/srv-cimprovider/doc
There is probably no matching kernel source for kernel version 4.4.0-98-generic installed. For details see /var/log/messages.
So that is a s far as I have gotten, and I would very much appreciate any help moving forward from here.
SandMan874