top package not working sometimes


 
Thread Tools Search this Thread
Operating Systems Solaris top package not working sometimes
# 8  
Old 07-14-2008
@incredible

This is the installation part:
bash-3.00# pkgadd -d top-3.6.1-sol10-sparc-local

The following packages are available:
1 SMCtop top
(sparc) 3.6.1

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCtop> from </Documents/top-3.6.1-sol10-sparc-loca l>

top(sparc) 3.6.1
LeFebvre et al
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
1 package pathname is already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing top as <SMCtop>

## Installing part 1 of 1.
/usr/local/bin/sparcv7/top
/usr/local/bin/sparcv9/top
/usr/local/bin/top
/usr/local/doc/top/Changes
/usr/local/doc/top/FAQ
/usr/local/doc/top/INSTALL
/usr/local/doc/top/LICENSE
/usr/local/doc/top/README
/usr/local/doc/top/Y2K
/usr/local/man/man1/top.1
[ verifying class <none> ]

Installation of <SMCtop> was successful.

Now when I invoke the top command:

bash-3.00# /usr/local/bin/top
bash: /usr/local/bin/top: Invalid argument

This is what I get.

Any ideas?Smilie
# 9  
Old 07-14-2008
ls -l /usr/local/bin/top
do this.. Thx.

remove any SUID bits if its created, since it'll be only executed by root
chmod ug-s /usr/local/bin/top

If top DID need to read /dev/kmem, you'd just make it setgid kmem and
it would work fine
# 10  
Old 07-14-2008
Your package is obviously designed for SPARC and won't work with x86 based hardware.

Download top-3.6.1-sol10-x86-local.gz or simply use prstat which is standard and supported.
# 11  
Old 07-15-2008
top package not working sometimes

@incredible

Another thing that I noticed is that, the size of the /usr/local/bin/top is less where it is working than the one where it is not working.

non-working:
==========
bash-3.00# ls -l /usr/local/bin/top
-rwxr-xr-x 1 bin bin 10044 May 28 2007 /usr/local/bin/top

working:
======
bash-3.00# ls -l /usr/local/bin/top
-rwxr-xr-x 1 bin bin 5816 May 28 2007 /usr/local/bin/top

@jilliagre
It is working on some x86 blades, dont know how that happened. So i went ahead with all of them.Smilie
# 12  
Old 07-15-2008
change the ownership to root:sys instead of using bin:bin and try
chown root:sys /usr/local/bin/top

Or you can remove the package and try re-installing. At its worst, use the package recommended by Jilliagre
# 13  
Old 07-15-2008
jlliagre has given the correct answer. There is no amount of tinkering that is going to make the Sparc package work on x86. Uninstall the version you have installed and replace it with the x86 version.
# 14  
Old 07-16-2008
top package not working sometimes

Hello Guys,

Thanks a lot. I downloaded the x86 version and it is working fine. I downloaded it from GDS - http://gd.tuwien.ac.at/platform/sun/solaris/freeware/intel/5.11/ ... Googling in a generic way never took me to this site. When jilliagre suggested this, i googled with that name and now it is working fine. Although am stumped that the sparc versions are running fine on some x86 machines.

Anyway thanks a lot guys. Smilie Hope this thread helps others too Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Top output to textfile not working in cronjob

Hello, If i run the following script from the cmdline it works just fine however if i run it via root cronjob it doesn't write to the file at all. It is chmod 777 now so shouldnt be any right issues. Shellscript looks like this: /usr/bin/top -b -n 1 -u nagios >> /var/log/test.log Cronjob... (7 Replies)
Discussion started by: heady89
7 Replies

2. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

3. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

4. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

5. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

6. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

7. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

8. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies

9. UNIX for Advanced & Expert Users

TOP not working

Hi, I am using solaris 5.8. When I am using top command with my UNIX userid it says "ksh: top: not found". Its working fine with the oracle id. What should I do if I need to user TOP and SAR utilities with my UNIX id? What are the prerequisites for this? Please explain. Regards,... (1 Reply)
Discussion started by: malaymaru
1 Replies
Login or Register to Ask a Question