Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kstat(7d) [sunos man page]

kstat(7D)							      Devices								 kstat(7D)

NAME
kstat - kernel statistics driver DESCRIPTION
The kstat driver is the mechanism used by the kstat(3KSTAT) library to extract kernel statistics. This is NOT a public interface. FILES
/dev/kstat kernel statistics driver SEE ALSO
kstat(3KSTAT), kstat(9S) SunOS 5.10 26 May 1994 kstat(7D)

Check Out this Related Man Page

kstat_lookup(3KSTAT)					Kernel Statistics Library Functions				      kstat_lookup(3KSTAT)

NAME
kstat_lookup, kstat_data_lookup - find a kstat by name SYNOPSIS
cc [ flag... ] file... -lkstat [ library...] #include <kstat.h> kstat_t *kstat_lookup(kstat_ctl_t *kc, char *ks_module, int ks_instance, char *ks_name); void *kstat_data_lookup(kstat_t *ksp, char *name); DESCRIPTION
The kstat_lookup() function traverses the kstat chain, kc->kc_chain, searching for a kstat with the same ks_module, ks_instance, and ks_name fields; this triplet uniquely identifies a kstat. If ks_module is NULL, ks_instance is -1, or ks_name is NULL, those fields will be ignored in the search. For example, kstat_lookup(kc, NULL, -1, "foo") will find the first kstat with name "foo". The kstat_data_lookup() function searches the kstat's data section for the record with the specified name. This operation is valid only for those kstat types that have named data records: KSTAT_TYPE_NAMED and KSTAT_TYPE_TIMER. RETURN VALUES
The kstat_lookup() function returns a pointer to the requested kstat if it is found. Otherwise it returns NULL and sets errno to indicate the error. The kstat_data_lookup() function returns a pointer to the requested data record if it is found. Otherwise it returns NULL and sets errno to indicate the error . ERRORS
The kstat_lookup() and kstat_data_lookup() functions will fail if: EINVAL An attempt was made to look up data for a kstat that was not of type KSTAT_TYPE_NAMED or KSTAT_TYPE_TIMER. ENOENT The requested kstat could not be found. FILES
/dev/kstat kernel statistics driver ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
kstat(3KSTAT), kstat_chain_update(3KSTAT), kstat_open(3KSTAT), kstat_read(3KSTAT), attributes(5) SunOS 5.11 3 Aug 2004 kstat_lookup(3KSTAT)
Man Page

13 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Loading JDK1.3 on Sparc2.6

I have followed instructions to get the jdk for sparc, 1.3 loaded on this sparc workstation machine. I used a tar file and everything seemed to go fine. The usr/j2se directory was created with all the subdirectories and java files. However, attempting to run Java commands fails with a file not... (18 Replies)
Discussion started by: jamestthomas
18 Replies

2. UNIX for Dummies Questions & Answers

please help with openbsd 2.9

Please help. I have downloaded the openbsd 2.9 snapshot from ftp.openbsd.org. the following files were downloaded from the snapshot dir. ( the whole dir. was downloaded ) base29,bsd,bsd.rd,cdrom29.fs,cksum,comp29,etc29,all three floppy images,game29,index,install.ata,install.chs... (11 Replies)
Discussion started by: Blunt_Killer
11 Replies

3. UNIX for Advanced & Expert Users

I like to mount a remote/local diskette...!

Hi...! I have to connect a remote machine (solaris server) from a workstation, and I want to access the local diskette. I like mount the local diskette in the workstation, not the remote diskette (in the server). The server is a Solaris 2.7 in a Sun Ultra 450. The workstations are Sun Ultra... (6 Replies)
Discussion started by: Kayron
6 Replies

4. UNIX for Dummies Questions & Answers

How to backup a Sun Ultra 60 workstation?

Hi, I'm currently an CS intern working at a small biotech company that has just opened a new office. We are working on a new project, but we were given an older Sun workstation with just a SCSI interface in the back. We don't have a systems administrator, so a couple of us have been working hard... (7 Replies)
Discussion started by: PSC
7 Replies

5. Solaris

sun ultra or sun sparkstation

am wonder wich sun computer is better, a sun ultra or sun sparkstation, and what is the difference (7 Replies)
Discussion started by: nobody
7 Replies

6. Shell Programming and Scripting

Using RSH to delete workstation directory with a fault tolerence

I'm using a UNIX server to RSH into a Windows 2000 workstation... I want to run a script that deletes two directories and then go to the next workstation. This is what I have now, but if for some reason the file is in use or not responding; the 'script' hangs. I'm wondering if anyone knows of... (7 Replies)
Discussion started by: search66
7 Replies

7. UNIX for Dummies Questions & Answers

Please help to configure Sun Blade 150 workstation

Hi, I am new to UNIX. I have a Sun Blade 150 worksation. I used a Dell monitor and Dell keyboard as input and output devices. However, workstation always told me that keyboard couldn't be found. I used Dell keyboard with USB and Dell keyboard with series connector. It all didn't work. Please help... (10 Replies)
Discussion started by: duke0001
10 Replies

8. Shell Programming and Scripting

logging into a workstation from the internet

i have a sun solaris workstation that want to be able to access when i'm not home. is there way to do this? like say i have the workstation turned on at the house but say i'm in a hotel several miles away, i want to be able to access this workstation using the internet on my laptop (7 Replies)
Discussion started by: Terrible
7 Replies

9. Solaris

Issue with kstat

I have a server on Solaris 8 who had a sudden reboot once and now the messages log is filled with these errors: Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('unix', 0, 'icmp_minor_1'): cannot create kstat before kstat_init() Mar 23 02:14:42 srt-hlr-b unix: NOTICE: kstat_create('vmem',... (10 Replies)
Discussion started by: StarSol
10 Replies

10. IP Networking

Automated FTP task

Every day i ftp tar.gz a file from the production server to a back up machine.. This task creates way to much traffic on the network at the end of the day and puts and undo load on the production machine during operation hours. i would like to create a script that would automatically fire off the... (36 Replies)
Discussion started by: LowOrderBit
36 Replies

11. Solaris

NIS on vmware workstation

Hi Admins, I just have a doubt on NIS that, is it possible to run NIS on vmware workstation running more than 1 solaris instances. i.e. can we setup one solaris instance as master and others as slaves...?? I have vista on my laptop. I am concern about the domain name it will ask while... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

12. HP-UX

How to clone a 382-workstations hdd?

Hi there, I got a pretty old HP 382 workstation, and the hdd is pretty LOUD ... ;) So I thought I clone it to an much quiter one. I tried this: - removed the loud hdd - connected it to an system running knoppix 7.0.4 (hdd is recognized with UFS filesystem; Clonezilla couldn't handle the... (9 Replies)
Discussion started by: pelegrine
9 Replies

13. Solaris

Copy via samba on vmware workstation with Solaris taking much longer than usual

i have a vmware workstation with solaris 10 installed on this. i copying 2 gb data via samba from windows to this vmware workstation. copy speed is 24 kb/sec. how i can speed up this copy process ? (7 Replies)
Discussion started by: rehantayyab82
7 Replies