Couple of issues

Couple of issues

Post by Kumar » Wed, 19 Sep 2001 21:20:49



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?

TIA

Arv

 
 
 

Couple of issues

Post by Robin Hur » Wed, 19 Sep 2001 21:58:41



> 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?

> TIA

> Arv

Answering question 2, I can quote from the man page for 'ndd'...
---
SYNOPSIS
     ndd  [ -set ] driver parameter  [ value ]

DESCRIPTION
     ...
     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
0
# ndd /dev/hme link_mode
0
---
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
driver....
---
# 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
full duplex....
---
set hme:hme_adv_autoneg_cap=0
set hme:hme_adv_100T4_cap=0
set hme:hme_adv_100fdx_cap=1
set hme:hme_adv_100hdx_cap=0
set hme:hme_adv_10fdx_cap=0
set hme:hme_adv_10hdx_cap=0
---

Note that the format for setting these parameters using 'ndd' is
different...
---
# 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...
http://www.sean.de/Solaris/tune.html

Good luck,

Robin
--
Robin Hurd
EUnet Systems
KPN Belgium

 
 
 

1. A couple of issues

First and foremost is that I am unable to get my sound to work. I'm
using a TBS Montego card, and have included the appropriate lines in my
kernel (pcm and sbc), but it doesn't detect the device.
In addition, I would like to make full use of the TNT video card I have
by using NVIDIA's drivers. I'm running XF86 4.0.1 now and would like to
know if such a thing is possible.
Any help you can render would be greatly appreciated.

Ed Ryan

2. minumum hardware for firewall

3. A couple of KDE UI issues (font/color)

4. NIC Installation

5. a couple of minor issues

6. Novell, Internet and Linux

7. couple of questions (well, more than a couple)

8. glib and gtk installation problems

9. 4500 issue with veritas/clarrion issue

10. The "NT vs. Linux" thread not the issue...real issue elsewhere

11. Changing 'issue' & 'issue.net' with Mandrake?

12. KDE3/RH 7.2 paths issue - icons for apps issues etc.

13. The issue file issue