Title: How do I recover the attributes of a symbolic link (Solaris)

I'm trying to fix a bug in HOST-RESOURCES-MIB.  I'm trying to pick up the symbolic links in /dev/dsk to compare them against entries in path_to_inst so I can compare them to stuff I'm retrieving from kstat.

My problem is, i don't know the good way to retrieve the symbolic link. I can probably cook up a messy way but that will resemble my spaghetti.

Typical entry in /dev/dsk

lrwxrwxrwx 1 root 43 Mar 16 2004 c5t3d0s4 -> ../../devices/[EMAIL PROTECTED],2000/[EMAIL PROTECTED],1/[EMAIL PROTECTED]:h

This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed.

Reply via email to