DevTech101

DevTech101

Month: December 2012

Script to get the Solaris ZFS ARC Size

This script will list the ZFS adaptive replacement cache (ARC)statistics and usages To get the script click here Another great ZFS ARC summery script is available here Output will look something like this. [root@server] /tmp # ./arc_summary.pl System Memory: Physical RAM: 64128 MB Free Memory : 58808 MB LotsFree: 999 MB ZFS Tunables (/etc/system): ARC Size: …

Script to get the Solaris ZFS ARC Size Read More »

Speeding up SSH SCP data transfers on Niagara machines

Speeding up SCP data transfers on the Sun SPARC T+ server line I found the fowling Sun blog talking about SSH/SCP speed runing with the T1000/T2000 servers. When using ssh or scp to transfer files to another server on the Niagara T1/2 boxes it will use only one virtual CPU which could be slow, as …

Speeding up SSH SCP data transfers on Niagara machines Read More »

Installing Configuring a Drupal Blog on Solaris Zones

Contents 1 Drupal blog & MySQL server list 2 Mysql and Drupal Layout 3 Install Sun One Webserver 7U5 in /opt/webserver7 4 Download & Install from sunfreeware.com all needed packages 5 PHP 5.2.1 installation and configuration 5.1 Install Sun coolstack 1.3.1 5.2 Modify and add to the php.ini 5.3 How to install Imagick 5.3.1 Download …

Installing Configuring a Drupal Blog on Solaris Zones Read More »

Using Solaris10 CDE with a remote X11 and ssh

The tip below is for accessing CDE or Gnome from a remote server, the solution uses SSH protocol as the connection layer for security reasons. If you are using cygwin on Windows to access CDE or Gnome, First you connect with the below commend from one window, this will activate the ssh forwarding. ssh username@remote_host …

Using Solaris10 CDE with a remote X11 and ssh Read More »

Oracle ODSEE perl Ldap logparser

Perl Script to parse ODSEE ldap logs. #!/usr/bin/perl use Tie::IxHash; tie %db, Tie::IxHash; ($file) = @ARGV if @ARGV; $file = ‘access’ unless -f $file; open(IN, “$file”) or die; while () { ## for raw ldap log # [20/Nov/2007:20:55:43 -0500] conn=251299755 op=491 msgId=571 – RESULT err=0 tag=101 nentries=967 etime=0 notes=U #if (/conn=(\d+).*?notes=U/) { $db{“$1”} ++; } …

Oracle ODSEE perl Ldap logparser Read More »

Script to get Solaris HBA WWN

The attached script will show you the Solaris Fiber Chanel (FC) available WWN. Script to show Solaris Fiber Chanel HBA port WWN Example output is below ./Get_HBA_wwn.sh c3: 210000e08b0e9848 c4: 210000e08b0e9747 To lookup WWNN/WWPN for Xsigo devices, just run the below. prtconf -Dv |grep Path|grep xstn|awk -F\/ ‘{print $(NF-2)}’|awk -F\@ ‘{print $2}’|sort |uniq 500139700052e1ba 500139700052e1bb …

Script to get Solaris HBA WWN Read More »