> I've got a couple of rather simple (?) questions
> 1) How can you set the coredump size to 0 globally irrespective of user/shell?
> I also want to set the file descriptors to maximum (1024?) globally.
> I know 'limit' and 'ulimit' can be used to set these, but as I understand
> that is shell and user specific.
> 2) How can I find out if a interface, say hme0, is running in full-duplex
> or half-duplex and 100Mb or auto-neg mode?
> Again I know I can use 'ndd' to set these values but I need to know what
> they are presently set to.
> Also, should these be set in /etc/system or elsewhere?
Answering question 2, I can quote from the man page for 'ndd'...
ndd [ -set ] driver parameter [ value ]
If the -set option is omitted, ndd queries the named
driver, retrieves the value associated with the specified
parameter, and prints it.
Try using the following...
# ndd /dev/hme link_speed
# ndd /dev/hme link_mode
This means that my workstation HME interface is set to 10Mbps half
duplex. If it was configured as 100Mbps, the number returned for
'link_speed' would be "1", and similarly if my interface was configured
as full duplex, the number returned for 'link_mode' would also be "1".
The following command shows the parameters available for a particular
# ndd /dev/hme \?
Using 'ndd' to set interface configuration can be performed either in a
start up script or in the </etc/system>. For example, put the following
lines in </etc/system> to explicitly set your HME interface to 100Mbps
Note that the format for setting these parameters using 'ndd' is
# ndd -set /dev/hme adv_autoneg_cap 0
# ndd -set /dev/hme adv_100T4_cap 0
# ndd -set /dev/hme adv_100fdx_cap 1
# ndd -set /dev/hme adv_100hdx_cap 0
# ndd -set /dev/hme adv_10fdx_cap 0
# ndd -set /dev/hme adv_10hdx_cap 0
See also the Solaris Answerbooks and the following link...