Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot run TOP command

Status
Not open for further replies.

volcano

Programmer
Aug 29, 2000
136
HK
Hi all, I have 2 Solaris machines. Machine A has TOP tool while machine B doesn't. I FTP the TOP binary to machine B and run it. It returns "top: cannot find/execute 'top' in ISA subdirectories". So what have I missed to config?

THX
 
You would probably be better installing from the CD media, so that all the necessary bits and pieces are put where they should be.
 
If you haven't kept it anywhere you can download it from sunfreeware. As an aside with Solaris 8 onwards there is the prstat command that does much the same thing as top.

Hope this helps.

Ray

Even a bad day at the races is better than a good day at the office.
 
the package contains the following files:
/usr/local/bin d none 0755 bin bin SMCtop SMCgcc SMCwget
/usr/local/bin/sparcv7 d none 0755 bin bin SMCtop
/usr/local/bin/sparcv7/top f none 2711 root bin 68508 32121 1057659451 SMCtop
/usr/local/bin/sparcv9 d none 0755 bin bin SMCtop
/usr/local/bin/sparcv9/top f none 2711 root bin 76128 62233 1057659377 SMCtop
/usr/local/bin/top f none 0555 root bin 5416 21979 1057659507 SMCtop
/usr/local/doc d none 0755 bin bin SMCtop SMCgcc SMCwget
/usr/local/doc/top d none 0755 bin bin SMCtop
/usr/local/doc/top/ADVERTISEMENT f none 0644 bin bin 892 13349 1057659415 SMCtop
/usr/local/doc/top/Changes f none 0644 bin bin 31478 28675 1057659415 SMCtop
/usr/local/doc/top/DISCLAIMER f none 0644 bin bin 1535 42898 1057659415 SMCtop
/usr/local/doc/top/FAQ f none 0644 bin bin 11645 32951 1057659415 SMCtop
/usr/local/doc/top/INSTALL f none 0644 bin bin 7460 472 1057659415 SMCtop
/usr/local/doc/top/Porting f none 0644 bin bin 7058 38204 1057659415 SMCtop
/usr/local/doc/top/README f none 0644 bin bin 7958 47937 1057659415 SMCtop
/usr/local/doc/top/README.colour f none 0644 bin bin 1961 28996 1057659415 SMCtop
/usr/local/doc/top/SYNOPSIS f none 0644 bin bin 2137 46845 1057659415 SMCtop
/usr/local/doc/top/Y2K f none 0644 bin bin 1211 40036 1057659415 SMCtop
/usr/local/man d none 0755 bin bin SMCtop SMCgcc
/usr/local/man/man1 d none 0755 bin bin SMCtop SMCgcc
/usr/local/man/man1/top.1 f none 0644 bin bin 13846 28862 1057659403 SMCtop

guessing you just copied /usr/local/bin/top

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
hi all, thank you for your replies. For daFranze, do u mean i should put all TOPs to your described directories?
 
The best thing to do is download the SUNWtop package from (as someone already mentioned) and install it properly, using pkgadd. Otherwise you just end up with files all over your system which don't belong to any package.

Annihilannic.
 
hi Anni, thanks for your update. I just guess Unix programs can be simply used by copy-paste-execute... :)
 
@volcano

the package SMCtop contains the above listed files, I suggest to pkgadd SMCtop or any other top package for Solaris, just as Annihilannic and others suggested. I just wanted to show you, why your copy of /usr/local/bin/top does not work. You CAN copy the files
/usr/local/bin/sparcv7 d none 0755 bin bin SMCtop
/usr/local/bin/sparcv7/top f none 2711 root bin 68508 32121 1057659451 SMCtop
/usr/local/bin/sparcv9 d none 0755 bin bin SMCtop
/usr/local/bin/sparcv9/top f none 2711 root bin 76128 62233 1057659377 SMCtop
/usr/local/bin/top f none 0555 root bin 5416 21979 1057659507 SMCtop
and I guess this will work fine, but as Anni... says: you just end up with files all over your system which don't belong to any package.

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
hi, nice to meet you all! I am so lucky that I can have you experienced guys' professional suggestions to me a green system admin here
:)
 
well, I guess there are some packages out there, maybe there's a SUNWtop, too? :)

@vulcano

You are Welcome! Everybody is starting green...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top