Script to get the Solaris ZFS ARC Size

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

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: […]

Read More

Oracle ODSEE perl Ldap logparser

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

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”} ++; } […]

Read More