01-16-2008
Quote:
Originally Posted by
DukeNuke2
Hi DukeNuke2
Thanks for the info, but i cannot find the net-tune under /etc/init.2.From the script, it need to create a link to net-tune file as below
ln /etc/rc2.d/S68net-tune /etc/init.d/net-tune
Do i need to touch it myself?
My device is eri. So the script i should modify as below?
#!/sbin/sh
# /etc/rc2.d/S68net-tune /etc/init.d/net-tune
PATH=/usr/bin:/usr/sbin
case "$1" in
'start')
echo "Implementing Solaris Network Tuning."
# eri-Interfaces
eri0
ndd -set /dev/eri instance 0
ndd -set /dev/eri adv_100T4_cap 0
ndd -set /dev/eri adv_100fdx_cap 1
ndd -set /dev/eri adv_100hdx_cap 0
ndd -set /dev/eri adv_10fdx_cap 0
ndd -set /dev/eri adv_10hdx_cap 0
ndd -set /dev/eri adv_autoneg_cap 0
;;
'stop')
echo "No kernel parameters changed."
;;
*)
echo "Usage: $0 {start|stop}"
;;
esac
exit 0
9 More Discussions You Might Find Interesting
1. Programming
what is meant by full duplex and half duplex?
b'coz in differences b\w hub and switch ,i heard lot this duplex word
so please help me (1 Reply)
Discussion started by: parvathy
1 Replies
2. Solaris
Hi all,
I tried to use this command
ndd -set /dev/eri adv_1000fdx_cap 1
but i get a "operation failed, Invalid argument"
anyone can help ? Thanks (5 Replies)
Discussion started by: DarReNz
5 Replies
3. Solaris
Hi there
We have a bit of a debate going here over what the prefered method is for setting 1000/Full on e1000g or nge interfaces is.
As you aware the Solaris configration files for nge and e1000g dont allow you to "fix" 1000/Full but instead allow you to set auto-negotiate to ON but only... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
4. Infrastructure Monitoring
Hi,
In UNIX, it's very easy to find the duplex speed. But in Windows, is there a easy way to find the duplex speed? I can't go to over 100 servers to find this out, I was wondering if I run one command to do this?
Please advice. (2 Replies)
Discussion started by: samnyc
2 Replies
5. Solaris
Evening,
I am attempting to change the speed and duplex settings on a single interface on a bge card on an m3000 SPARC server. Currently the settings are as follows:
bge0 link: up speed: 1000 Mbps duplex: full
bge1 link: up speed: 100 Mbps ... (13 Replies)
Discussion started by: brialt1
13 Replies
6. Solaris
Hi,
How to find whether the server is running with half duplex or full duplex. I tried with the following command ndd -get /dev/ but am not getting any output,. Is the command correct?
Also let me know how to change from half to full duplex. (1 Reply)
Discussion started by: rogerben
1 Replies
7. AIX
How to change Speed Duplex !
How to change Speed Duplex by command
chdev -P -l ent1 -a media_speed=1000_Full_Duplex
How to change Speed Duplex by Smitty .
smitty chgenet -> select adapter -> change Media speed etc. -> set "Apply change to DATABASE only" to yes -> Enter -> ... (0 Replies)
Discussion started by: ITHelper
0 Replies
8. AIX
VIO Server connected to switch port and running with half duplex speed on one of the shared ethernet adapter. We have verified at switch end and everythings looks good.
Other ethernet adapter in the VIO server are connected and running in Full duplex speed.
Please help me find why this shared... (4 Replies)
Discussion started by: mugunthanvh
4 Replies
9. Solaris
Hi All
I would need to do hard code of nxge0 nic to full duplex & 1000mbps. So that whenever solaris server come up after reboot. it will show full duplex & 1000mbps setting only.
Please also let me know how to do it online through command.
regards (0 Replies)
Discussion started by: amity
0 Replies
ndd(1M) System Administration Commands ndd(1M)
NAME
ndd - get and set driver configuration parameters
SYNOPSIS
ndd [-set] driver parameter [value]
DESCRIPTION
ndd gets and sets selected configuration parameters in some kernel drivers. Currently, ndd only supports the drivers that implement the
TCP/IP Internet protocol family. Each driver chooses which parameters to make visible using ndd. Since these parameters are usually
tightly coupled to the implementation, they are likely to change from release to release. Some parameters may be read-only.
If the -set option is omitted, ndd queries the named driver, retrieves the value associated with the specified parameter, and prints it. If
the -set option is given, ndd passes value, which must be specified, down to the named driver which assigns it to the named parameter.
By convention, drivers that support ndd also support a special read-only parameter named ``?'' which can be used to list the parameters
supported by the driver.
EXAMPLES
Example 1: Getting Parameters Supported By The TCP Driver
To see which parameters are supported by the TCP driver, use the following command:
example% ndd /dev/tcp ?
The parameter name ``?'' may need to be escaped with a backslash to prevent its being interpreted as a shell meta character.
The following command sets the value of the parameter ip_forwarding in the dual stack IP driver to zero. This disables IPv4 packet forward-
ing.
example% ndd -set /dev/ip ip_forwarding 0
Similarly, in order to disable IPv6 packet forwarding, the value of parameter ip6_forwarding
example% ndd -set /dev/ip ip6_forwarding 0
To view the current IPv4 forwarding table, use the following command:
example% ndd /dev/ip ipv4_ire_status
To view the current IPv6 forwarding table, use the following command:
example% ndd /dev/ip ipv6_ire_status
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
nca(1), ioctl(2), attributes(5), arp(7P), ip(7P), ip6(7P), tcp(7P), udp(7P)
NOTES
The parameters supported by each driver may change from release to release. Like programs that read /dev/kmem, user programs or shell
scripts that execute ndd should be prepared for parameter names to change.
The ioctl() command that ndd uses to communicate with drivers is likely to change in a future release. User programs should avoid making
dependencies on it.
The meanings of many ndd parameters make sense only if you understand how the driver is implemented.
SunOS 5.10 8 Nov 1999 ndd(1M)