Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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-linux/ubuntu-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(at)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 Attached Files

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •