LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-09-2017, 02:13 PM   #1
SandMan874
LQ Newbie
 
Registered: Oct 2017
Location: Norway
Posts: 5

Rep: Reputation: Disabled
Fujitsu Serverview on Ubuntu 16.04.3 LTS


Hello,

I've been installing a new Ubuntu Server 16.04.3 LTS, and as the final step, I'm now working on installing the Serverview software from Fujitsu.

I'm using the debian packages found here:

ftp://ftp.ts.fujitsu.com/community-l...ntu-lts/16.04/

Which should be compatible with Ubuntu 16.04.

However, when I try to check the status, I get the following:
Code:
sandman@Pegasus:~$ srvmagt status
/usr/sbin/srvmagt: 16: /etc/srvmagt/functions: Syntax error: "(" unexpected
According to my limited coding abilities, there is a syntax error on line 16 of the functions file. Both files are attached to this post.

Is there anyone with better coding abilities than me who can spot any obvious errors here?

Thanks

SandMan874
Attached Files
File Type: txt functions.txt (28.2 KB, 25 views)
File Type: txt srvmagt.txt (77.9 KB, 24 views)
 
Old 11-10-2017, 03:15 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I think

function toUpper() {

should be changed to

function toUpper () {
 
Old 11-11-2017, 02:24 PM   #3
SandMan874
LQ Newbie
 
Registered: Oct 2017
Location: Norway
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
Code:
sudo srvmagt
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Canonical Patches OpenSSL Regression in Ubuntu 16.04 LTS, 14.04 LTS and 12.04 LTS LXer Syndicated Linux News 0 09-27-2016 12:32 PM
LXer: Ubuntu 16.04 LTS (Xenial Xerus) Will be Powered by Linux Kernel 4.4 LTS LXer Syndicated Linux News 0 11-26-2015 02:00 AM
LXer: How to Update a Ubuntu LTS release to the next LTS Version (dist upgrade) LXer Syndicated Linux News 0 02-19-2015 08:00 AM
LXer: Ubuntu 12.04.5 LTS (Precise Pangolin) Released with Linux Kernel from Ubuntu 14.04 LTS LXer Syndicated Linux News 0 08-08-2014 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration