DevTech101

DevTech101

solaris11

Best Practices – Top Ten Tuning Tips Updated for LDOMs

Best Practices – Top Ten Tuning Tips Updated By jsavit on Mar 28, 2014 This post is one of a series of "best practices" notes for Oracle VM Server for SPARC (formerly called Logical Domains). This is an update to a previous entry on the same topic. Top Ten Tuning Tips – Updated Oracle VM …

Best Practices – Top Ten Tuning Tips Updated for LDOMs Read More »

How To Measure Network Latency With Ping And Dtrace in Solaris.

Measuring Network Latency In Solaris Use the below dtrace script (SuperPing.d) to measuring Network Latency. #!/usr/sbin/dtrace -s #pragma D option quiet #pragma D option switchrate=10hz mib:::rawipOutDatagrams /pid == $target/ { start = timestamp; } mib:::icmpInEchoReps /start/ { this->delta = (timestamp – start) / 1000; printf(“dtrace measured: %d us\n”, this->delta); @a[“\n ICMP packet delta average (us):”] …

How To Measure Network Latency With Ping And Dtrace in Solaris. Read More »

Solaris privlges

To find out what privileges are stopping you from running a command, you should run it under ppriv -eD command. For example: You can then use usermod -K … to assign the necessary privileges to a user. For example: $ usermod -K defaultpriv=basic,sys_resource,cpc_cpu username

Protecting Files From Getting Overwritten Mistakenly

Protecting Files From Overwriting Mistakenly To set protection on, run the below. set -o noclobber To make it permanent just add to your .bashrc echo ‘set -o noclobber’ >> ~/.bashrc An example how things will work after noclobber is set. $ echo test > testfile1 bash: testfile1: cannot overwrite existing file To forcibly overwrite the …

Protecting Files From Getting Overwritten Mistakenly Read More »

Solaris 11, Korn Shell 93 COMPATIBILITY

In Oracle Solaris 11, Korn Shell 93 (/usr/bin/ksh/ or usr/bin/ksh93) replaces both the Bourne Shell (/usr/bin/sh or /sbin/sh) and Korn Shell 88 (/usr/bin/ksh). There are some incompatibilities between the shells. They are described in: /usr/share/doc/ksh/COMPATIBILITY If a script has compatibility problems you can use the legacy shell by changing the she-bang line: If this doesn't …

Solaris 11, Korn Shell 93 COMPATIBILITY Read More »