03-06-2009
try "dladm show-dev" on solaris 10.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am looking for a cpu usage data (%usr, %iowait, %idle, %kernel) using kstat. The output of kstat is below. How do I interpret those numeric values? In other words, how do I calculate the percentage value using the values below?
Thanks a lot!
Ozvena
module: cpu_stat ... (4 Replies)
Discussion started by: ozvena
4 Replies
2. Solaris
Hi all,
I am working on the symbEL to get some specific value from the kernel recently. But I am not sure whether kvm and kstat have such specific value. i checked the examples included with the RICHPse but didn't get the answer. also the "kstat" seems not have any description.
Is there a... (2 Replies)
Discussion started by: sleepy_11
2 Replies
3. Solaris
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
4. Solaris
I 've 2 different T5220 and both are showing different prompts when i ssh to the console.
1. Shows sc> ALOM
2. Shows -> ILOM
as far as i know the T5220 comes with ILOM , so why i 'm seeing 2 different type of console for same tyep of hardware ?
and i found that we... (6 Replies)
Discussion started by: fugitive
6 Replies
5. Solaris
Hi,
SC on one of my T5220 is not responding .. it does not show not let me type anything .. what could be the reason for it ? though when i powercycle the box from sc it shows me the system coming up but after that does not let me login thru sc
sc> console -f
Enter #. to return to ALOM. (2 Replies)
Discussion started by: fugitive
2 Replies
6. Solaris
We're just about to migrate a large application from an Enterprise 6900 to a pair of T5220s utilising LDOMs. Does anyone have any experience of LDOMs on this kit and can provide any recommendations or pitfalls to avoid?
I've heard that use of LDOMs can have an impact on I/O speeds as it's all... (9 Replies)
Discussion started by: JerryHone
9 Replies
7. Solaris
I'm having a little trouble understanding the output I'm seeing from kstat for the "net" class. I'm seeing a lot of entries with "mac" as the name, like this.
module: bge instance: 3
name: mac class: net
... (3 Replies)
Discussion started by: Midcain
3 Replies
8. Solaris
Hi Guys and Gals,
Wondering if anyone could help me, tricky one this.
Got a T5220 with a graphics card. When you power it on, it outputs its output to the screen and you can type commands with the keyboard etc.
But no matter what version of Solaris 10 you use, when you do a boot cdrom... (1 Reply)
Discussion started by: callmebob
1 Replies
9. Solaris
Hello guys,
can anyone give me some advice on how to perform
clean installation of Solaris 10 on T5220 ?
I am connected with serial management port on the machine,
i have the ok promt and now i should eject the dvdrom to insert
Solaris dvd into and start the clean install.
So how to do that... (3 Replies)
Discussion started by: tonijel
3 Replies
10. Solaris
Hi,
I got a (used) server to install Solaris 11 and wipe out every information on existing disks. There are 6 disks of 300GB and two disks of 146GB. I am not able to figure out, how to find out RAID (if there is any) and break it. Can anybody help me with that ? Below is configuration. I have... (18 Replies)
Discussion started by: solaris_1977
18 Replies
LEARN ABOUT OPENSOLARIS
kstat_data_lookup
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)