www.mamboteam.com
Debian Linux (on HP)  
Home arrow Forum
Friday, 30 July 2010
 
 
HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?

gfx* Home Help Search Calendar Login Registergfx
Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ? « previous next »
Pages: [1] Print
Author Topic: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?  (Read 4067 times)
Fabian Rodriguez
Newbie
*
Offline Offline

Posts: 2


View Profile
HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« on: September 18, 2006, 11:19:52 pm »

Hello,

I recently got a cheap Proliant ML370 and would like to use it as a small desktop + server machine. I'd also like to learn more about reading its health info and setting up things like the fan, which is particularly noisy for desktop use.

I tried the HPasm utilities with a Sarge install on this machine and they work fine. However the same script doesn't work for Ubuntu Dapper (6.06) or Eft (the upcomgin 6.10). I only get an error when trying to invoke hpasm:
exec: 1: 10: not found

Has anyone had much luck in hacking these scripts for use with Ubuntu ?

I've posted on Ubuntu Forums too, here's some references:
http://www.ubuntuforums.org/showthread.php?t=18062&highlight=ml370
http://www.ubuntuforums.org/showthread.php?t=218909&highlight=ml370
http://www.ubuntuforums.org/showthread.php?t=247165&highlight=ml370

Thanks for any help or info on this.

Cheers,

Fabian
Logged
Trond Maehlum
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #1 on: October 05, 2006, 08:54:10 pm »

I am also getting this error, but I try to install this in Debian Sarge. Can anyone help?
Logged
stoffell
Administrator
Sr. Member
*****
Offline Offline

Posts: 74

Carpe Diem


View Profile WWW
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #2 on: October 10, 2006, 06:25:31 pm »

I am also getting this error, but I try to install this in Debian Sarge. Can anyone help?

Installing on Sarge should be pretty straight forward. Please make sure "fakeroot", alien and wget are installed, then see if the script runs without errors. If you still have problems, please report..

Concerning Ubuntu, I can't comment on that, haven't installed Ubuntu on HP servers yet.

Cheers
Logged
reggierabbit
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #3 on: October 14, 2006, 09:54:33 am »

I have an ML370 running on the latest Kubuntu.
Ive just started to get into Kubuntu and i really want to install HPASM to reduce fan speed.

So, can someone please post a full instruction guide on how to install this prgram

Thanks
Logged
stoffell
Administrator
Sr. Member
*****
Offline Offline

Posts: 74

Carpe Diem


View Profile WWW
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #4 on: October 15, 2006, 07:24:55 pm »

reggie, running the install should be almost the same on (k)ubuntu as on debian sarge..
just try it, and report back if you run into problems..

make sure you've got fakeroot, wget and alien..

cheers
Logged
Ferry
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #5 on: March 17, 2007, 03:39:20 pm »

Hi!

Any news on this one ?
I have the same problem ..
I tried to play a little with the hpasm script and added this line:

 [ "$FD" = "0" ] && continue
 [ "$FD" = "1" ] && continue
 [ "$FD" = "2" ] && continue
 [ "$FD" = "10" ] && continue
  # this is a file to the script at hand
  [ "$FD" = "255" ] && continue
  LINKTO=`ls -o $FILE 2> /dev/null | awk '{print $10}'`


When i try to start hpasm now it get with this error:
/opt/compaq/hpasm/etc/foundation.functions: 438: Syntax error: Bad substitution

Anyone got an idea ?
Logged
Pixxa
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #6 on: April 19, 2007, 10:04:42 pm »

old thread bump, got this error as well. Anyone knows how to solve this?
Logged
Aleksandr
Newbie
*
Offline Offline

Posts: 1


View Profile
Re: HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ?
« Reply #7 on: May 30, 2007, 07:03:51 pm »

Hello

After spending some hours on this, the problems on ubuntu are now solved (installation wise at least).

The root cause of the problem is that a lot of the scripts that come with hpasm and hpsmh assume that sh and /bin/sh are bash. The scripts contain a lot of bashishms. On ubuntu (starting from edgy), /bin/sh is a symlink to dash, which is a very fast bourne compatible shell. Needless to say, it doesn't know how to handle bash extensions, and hence, a lot of the scripts will break.

Installing hpmsh is for example impossible since the installation script it self will break and will loop forever.

The correct solution to this problem:
- replace #!/bin/sh into #!/bin/bash for all the scripts that contain bash (probably just safer to replace all)
- replace all 'sh /path/to/script' -invocations with 'bash /path/to/script'. since the scripts themselves are "spaghetti", this will take ages.

The incorrect solution to this problem:
Code:
sudo su -
cd /bin
rm sh; ln -s bash sh
exit

All the above reported forum entries stem from the same root cause. dash is not bash.

Some people have reported this as a bug against dash here: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463

The bug report contains a lot of useful background information for the interested.

Hope this helps.

ak.
Logged
Debian on HP, Linux  |  Debian on HP (HP software: agents, drivers and such)  |  HP System Management  |  HPasm on Ubuntu Dapper (6.06) or Eft (6.10) ? « previous next »
Pages: [1] Print 
Jump to:  
Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media
Joomla Bridge by JoomlaHacks.com

Apollo design by Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.051 seconds with 18 queries.
 
Top! Top!