KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

RMA for Sparc Solaris
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX
View previous topic :: View next topic  
Author Message
eviltommy69



Joined: 25 Mar 2004
Posts: 5

PostPosted: Fri Mar 26, 2004 9:35 am    Post subject: RMA for Sparc Solaris Reply with quote

I'm testing the RMA for SPARC and I've found some issues already. First, the cpu.sh is using SAR, which doesn't run unless you setup your systems for performance statistics. I changed the script to use vmstat like the other Unix OS's, and it works great.

SunOS) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';;

Also, I have some large UFS filesystems (connected to a Clariion) that are showing UNC percentages wrong. One of them indicates 189% available. It should be showing 12%. I have another indicating 49% available, when it should be 6%. How does the RMA calculate free space?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Mar 26, 2004 1:42 pm    Post subject: Reply with quote

Quote:
SunOS) vmstat 1 2 | tail -1 | awk '{print 100-$NF}';;


Thank you for correction

Quote:
Also, I have some large UFS filesystems (connected to a Clariion) that are showing UNC percentages wrong. One of them indicates 189% available. It should be showing 12%. I have another indicating 49% available, when it should be 6%. How does the RMA calculate free space?


RMA for SunOs uses code like
Code:
struct statvfs statbuf;
  if (statvfs(path, &statbuf)==0)
  {
     long int blocksize = (statbuf.f_frsize>0)?(statbuf.f_frsize):(statbuf.f_bsize);
     total = statbuf.f_blocks * blocksize;
     free  = statbuf.f_bfree  * blocksize;
     freeforuser = statbuf.f_bavail * blocksize;
     return True;
  }
  else return False;


total, free, freeforuser defined as "double" (because some C compilers does not support "long long" type)
How big is your filesystem?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
eviltommy69



Joined: 25 Mar 2004
Posts: 5

PostPosted: Fri Mar 26, 2004 1:57 pm    Post subject: Reply with quote

The two filesystems are 24GB and 47GB.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Mar 26, 2004 5:52 pm    Post subject: Reply with quote

What if you configure UNC test to show absolute size (Mg, Gb)? What values will be displayed by HostMonitor?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
eviltommy69



Joined: 25 Mar 2004
Posts: 5

PostPosted: Mon Mar 29, 2004 8:26 am    Post subject: Reply with quote

Filesystem#1 (24GB):
HM indicates 49% available, or 1831mb
SunOS indicates 6% available, or 1628mb

Filesystem#2 (48GB):
HM indicates 188% available, or 2470mb
SunOS indicates 22% available, or 10444mb

This is a Solaris 9 OS, and both of the filesystems are UFS.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Mar 30, 2004 5:25 pm    Post subject: Reply with quote

Looks like problem in statbuf.f_frsize and statbuf.f_bsize variables.
Sun documentation doesn't really describe difference. RMA uses code that was recommended in several newsgroups, but how it should really work...
Could you provide telnet access to your system?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
eviltommy69



Joined: 25 Mar 2004
Posts: 5

PostPosted: Tue Mar 30, 2004 8:20 pm    Post subject: Reply with quote

Unfortunately, no...sorry.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Apr 01, 2004 1:18 am    Post subject: Reply with quote

Probably we can make small test program to check what is going on...
Will you compile it?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
eviltommy69



Joined: 25 Mar 2004
Posts: 5

PostPosted: Tue Apr 06, 2004 11:40 am    Post subject: Reply with quote

Yep, I can do that.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Apr 06, 2004 12:43 pm    Post subject: Reply with quote

Great, please give me some time to create that test program

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
oliverdesouza



Joined: 23 Jan 2005
Posts: 2

PostPosted: Sun Jan 23, 2005 9:28 am    Post subject: Any updates? Reply with quote

Hi
I am really interested to know the outcome of this thread.
I just setup the RMA 0.80 for Solaris agent to run on my solaris 9 box. However hostmon is reporting different disk capacity results than the solaris.

Filesystem (8GB):
HM indicates 71% available, or 2851MB
SunOS indicates 86% available, or 6866MB
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Sun Jan 23, 2005 4:57 pm    Post subject: Reply with quote

I think we fixed that issue but we do not have SPARC system to recompile agent. Could you provide telnet/ftp access to some SPARC system?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
oliverdesouza



Joined: 23 Jan 2005
Posts: 2

PostPosted: Sun Jan 23, 2005 9:23 pm    Post subject: Reply with quote

Hi thanks for the prompt reply!

i'm very sorry but telnet/ftp access is not allowed. However , if u'd like me to compile the RMA code on the sparc server (or any code relating to this issue), i'd be more than willing. I've also sent an email to support@ks-soft.net about that possibility..
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Jan 24, 2005 3:36 pm    Post subject: Reply with quote

Ok. I have sent source codes to your e-mail address.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
vidyagana



Joined: 25 Mar 2005
Posts: 106

PostPosted: Fri Sep 22, 2006 1:01 pm    Post subject: Reply with quote

I am having a similar problem where my disk space is reported wrongly. What was the solution ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index