Questions tagged [kstat]

8 questions
3
votes
3 answers

Looking for kstat equivalents in Linux

I have a program that collects various kstat information on our Solaris systems and, now that we've introduced Linux into our data center, I'd like to do the same for Linux. I'm having trouble, however, finding equivalents for many of the kstats. I…
wsaxton
  • 1,030
  • 15
  • 34
2
votes
1 answer

Mapping a structure inside a union in JNA

I am attempting to map the kstat library in Solaris 11.3 to Java using JNA. While I've managed to get most of the structures working, I've spent the last 24 hours fighting with a particularly difficult union-within-a-structure-within-a-union. I am…
Daniel Widdis
  • 8,424
  • 13
  • 41
  • 63
1
vote
1 answer

kstat, getting the number of lightweight processes running in a zone

SmartOS zones have a cap or maximum number of lightweight processes defined in the zone package. To check if my current settings make sense I would like to collect the total number of lightweight processes over time (from within the zone). I already…
ITChap
  • 4,057
  • 1
  • 21
  • 46
1
vote
1 answer

print kstat when updated (multiple times in 1 second)

I am trying to gather statistics via kstat which I currently use dtrace to gather. It is not count based information but new data every single time. The minimum interval on kstat print is 1 second.However ,the data that I need changes several times…
Iceman
  • 365
  • 1
  • 3
  • 13
1
vote
2 answers

How to get port/socket information from kstat on Solaris

Is it possible to use kstat to get information about which processes have which ports open? I've looked into how lsof does it and apparently they read volatile kernel memory, which kstat seems to give access to (please correct me if I'm wrong). I…
0
votes
1 answer

Linking the kstat library error

Hi so I have been trying to link the kstat library on a solaris server for a project for class. to do this i have put this at the beginning of the header that will use it #ifdef HAVE_KSTAT #include #endif and my make file looks like…
Zooloo10
  • 45
  • 1
  • 8
0
votes
1 answer

How do I make a hash with the output of kstat -p using Perl?

I am working so some stuffs where I need to get some information using kstat -p. So I am thinking to create a hash variable with all output of kstat -p. Sample output from kstat -p cpu_stat:0:cpu_stat0:user 18804249 To access…
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
1 answer

How can I use Solaris::Kstat on Solaris 5.10?

I am looking to find the SunOS system details using Kstat. I have found Solaris::Kstat module in CPAN but this only supports Solaris 2.5.1, 2.6 & 2.7. The Sun developer's site mentions a Sun::Solaris::Kstat which I have not found in CPAN. Can anyone…
Space
  • 7,049
  • 6
  • 49
  • 68