Quick and dirty ndd for Solaris 5.10 Generic_148888-05
For APR parameters:
# ndd -get /dev/arp ? ? (read only) arp_cleanup_interval (read and write) arp_publish_interval (read and write) arp_publish_count (read and write) arp_probe_delay (read and write) arp_probe_interval (read and write) arp_probe_count (read and write) arp_fastprobe_delay (read and write) arp_fastprobe_interval (read and write) arp_fastprobe_count (read and write) arp_defend_interval (read and write) arp_defend_rate (read and write) arp_broadcast_interval (read and write) arp_defend_period (read and write)
Get a value for a specific parameter
# ndd -get /dev/arp arp_cleanup_interval 300000
Set the value
# ndd -set /dev/arp arp_cleanup_interval 60000
Confirm the value
# ndd -get /dev/arp arp_cleanup_interval 60000
Same thing for other parameters just use the the correct device:
# ndd -get /dev/tcp ? tcp_time_wait_interval (read and write) tcp_conn_req_max_q (read and write) tcp_conn_req_max_q0 (read and write) tcp_conn_req_min (read and write) tcp_conn_grace_period (read and write) ... ... ...
All ndd values:
# ndd /dev/arp \? # ndd /dev/ip \? # ndd /dev/tcp \? # ndd /dev/udp \?
Need to make sure your parameters are set upon boot up?
Create a file /etc/init.d/netconfig with your ndd settings:
# cat /etc/init.d/netconfig #!/sbin/sh # Disable IP Forwarding /usr/sbin/ndd -set /dev/ip ip_forwarding 0 /usr/sbin/ndd -set /dev/ip ip_strict_dst_multihoming 1
Create a sym link to rc2.d:
# ln -s /etc/init.d/netconfig /etc/rc2.d/S69netconfig
Now this is not a standard the files may be named differently based on the system and may already be there. Just find the right file.
# cd /etc/rc2.d # grep ndd * S69netconfig:/usr/sbin/ndd -set /dev/ip ip_forwarding 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_strict_dst_multihoming 1 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_respond_to_address_mask_broadcast 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_respond_to_echo_broadcast 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_forward_directed_broadcasts 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_respond_to_timestamp 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_respond_to_timestamp_broadcast 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_send_redirects 0 S69netconfig:/usr/sbin/ndd -set /dev/ip ip_ignore_redirect 1 # ls -l S69netconfig lrwxrwxrwx 1 root root 21 Aug 30 2010 S69netconfig -> /etc/init.d/netconfig