TCP/IP Tunable Parameters
The TCP send and receive spaces directly effect the TCP window size parameter. An increased window size will allow for more efficient transfers, particularly bulk transfers such as FTP and HTTP. The default for each is not optimal, and should be increased to 32768 bytes. This value should not be increased above 64K bytes unless the implications of RFC1323 and RFC2018 are fully understood and support for both is enabled.
/usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 65534
/usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 65534
Turn off replies to broadcast pings
ndd -set /dev/ip ip_respond_to_echo_broadcast 0
ndd -set /dev/ip ip_icmp_err_interval 99999
Recreate /dev/null
To recreate the soft link "/dev/null"
To recreate the original device in /devices/
mknod /devices/pseudo/mm@0:null c 13 2
chown root:sys /devices/pseudo/mm@0:null
chmod 666 /devices/pseudo/mm@0:null
cd /dev
ln -s ../devices/pseudo/mm@0:null null
Solaris One Liners
- Fast alternative to cp -pr
find . -depth | cpio -pdmv /path/to/be/copied/to
mkfile 256m /var/swap && swap -a /var/newswap # Create a 256 Megabyte file and enable it to be used as swap space
- Determine the run level of a Solaris system
- Get actual model name of machine
prtconf -pv grep banner-name awk -F\' ' { print $2 } ' | head -1
- Restart syslogd on Solaris 10
svcadm restart svc:/system/system-log
mount -F hsfs -o ro `lofiadm -a /opt/image.iso` /mnt/iso
- Find which package a file belongs to
grep /path/to/file /var/sadm/install/contents | awk '$2 ~ /^f$/ {print $NF}'
- Display IPv4 information.
netstat -s -f inet -P tcp 5
- Set the ethernet interface speed
To manually set the interface speed and duplex, add the following into /etc/system (Lines that begin with a "*" are commented out) With the values below, after a reboot bge type interfaces will be set to to 10 Mbits/s Half-Duplex:
*set bge:bge_adv_100T4_cap = 0
*set bge:bge_adv_100fdx_cap = 1
*set bge:bge_adv_100hdx_cap = 0
*set bge:bge_adv_10fdx_cap = 0
set bge:bge_adv_10hdx_cap = 1
set bge:bge_adv_autoneg_cap = 0
OpenBoot Configuration Variables
Determines whether the operating system automatically starts up. Default is true.
* true - Operating system automatically starts once firmware tests finish.
* false - System remains at ok prompt until you type boot.
Determines the level or type of diagnostics executed. Default is min.
* off - No testing.
* min - Only basic tests are run.
* max - More extensive tests may be run, depending on the device.
Determines which devices are tested by OpenBoot Diagnostics. Default is none.
* none - No devices are tested.
* normal - On-board (centerplane-based) devices that have self-tests are tested.
* all - All devices that have self-tests are tested.
Toggles the system in and out of diagnostic mode. Default is false.
* true - Diagnostic mode: POST diagnostics and OpenBoot Diagnostics tests may run.
* false - Default mode: Do not run POST or OpenBoot Diagnostics tests.
Specifies the class of reset event that causes Power-On Self-Test and OpenBoot Diagnostics to run. These variables can accept single keywords as well as combinations of the first three keywords separated by spaces. For details, see To View and Set OpenBoot Configuration Variables.
* error-reset - A reset caused by certain non-recoverable hardware error conditions. In general, an error reset occurs when a hardware problem corrupts system data. Examples include CPU and system watchdog resets, fatal errors, and certain CPU reset events (default).
* power-on-reset - A reset caused by pressing the Power button (default).
* user-reset - A reset initiated by the user or the operating system.
* all-resets - Any kind of system reset.
* none - No Power-On Self-Tests or OpenBoot Diagnostics tests run.
Selects where console input is taken from. Default is TTYA.
* TTYA - From built-in SERIAL MGT port.
* TTYB - From built-in general purpose serial port (10101)
* keyboard - From attached keyboard that is part of a graphics terminal.
Selects where diagnostic and other console output is displayed. Default is TTYA.
* TTYA - To built-in SERIAL MGT port.
* TTYB - To built-in general purpose serial port (10101)
* screen - To attached screen that is part of a graphics terminal.1
Device Aliases
Device aliases are useful in the BootPROM environment because they simplify the unwieldly device paths into simple terms like disk and net. There may be cause to create a new device alias on a system as when adding a new or alternate boot device.
Device aliases are created only in the BootPROM. If you want to add an alias for a disk with a path of /pci@1f,0/pci@1,1/ide@3/disk@0,0 use the nvalias command like this:
ok nvalias newdisk /pci@1f,0/pci@1,1/ide@3/disk@0,0
BootPROM versions 3.25 and later support booting from the network. Creating a network device alias is similar:
ok nvalias net /pci@1f,4000/network@2,1:dhcp
If change to the system invalidate a device alias, leaving it may complicate matters during panic times when things need to be clear.
To delete the device alias newdisk use the following command from the BootPROM:
Recommended /etc/system parameters for Sun Fire T2000 systems
Cut the following parameters and paste them into /etc/system
set ip:ip_squeue_bind = 0
set ip:ip_squeue_fanout = 1
set ipge:ipge_tx_syncq=1
set ipge:ipge_taskq_disable = 0
set ipge:ipge_tx_ring_size = 2048
set ipge:ipge_srv_fifo_depth = 2048
set ipge:ipge_bcopy_thresh = 512
set ipge:ipge_dvma_thresh = 1
set segkmem_lpsize=0x400000
set consistent_coloring=2
set pcie:pcie_aer_ce_mask=0x1
Comments (0)
You don't have permission to comment on this page.