DevTech101

DevTech101

solaris

Integrating Oracle Ops Center Alert Notifications With Nagios

Contents 1 This document address how to disable nagios notification’s with Ops Center 1.1 Nagios notification overview 1.2 Nagios notifications 1.2.1 Methods to disable Nagios notifications remotely 1.2.2 Center and Nagios 1.2.2.1 Ops Center configuration 1.3 Scripts used to disable/enable Nagios 1.4 Example to enable/disable nagios with curl This document address how to disable nagios …

Integrating Oracle Ops Center Alert Notifications With Nagios Read More »

Testing DNS performance – perl script

Use the perl script below to check your DNS performance. Make sure to replace the search string and your DNS provider IP address. #!/usr/bin/perl @ns = @ARGV; push(@ns,’8.8.8.8′, ‘4.2.2.1’) unless @ns; $domain = “www.devtech101.com”; use Net::DNS; use Time::HiRes; # high resolution timing required use Time::Stopwatch; use Number::Format qw(:subs); use Statistics::Descriptive; tie my $time, ‘Time::Stopwatch’; # …

Testing DNS performance – perl script Read More »

Solaris Dynamic Zone Resource Capping With Examples

Contents 1 To add/remove CPU on a ruining zone (dedicated-cpu) 1.1 First get the pset name 1.2 Before the change just 4 cpu are configured 1.3 To add/modify the numbers of CPU to 8 1.4 After the change 2 To add/modify CPU on a ruining zone (capped-cpu) 2.1 Before the change 2.2 To make the …

Solaris Dynamic Zone Resource Capping With Examples Read More »

Oracle Solaris ZFS health / scrubbing check script

The ZFS script will check ZFS pool health and do scheduled scrubbing. Get ZFS script Modify the below values in the script to your mail admin and mail address. my $mydomain = $hostname; my $mailfrom = “sysadmin\@$hostname.domain.com”; my $mailto = “admin\@domain.com”; my $mailhost = “10.10.10.10”; # switch to ip or real mail host

Performance Tuning For Solaris Zones

Contents 1 Solaris global and non zones performance tuning 1.1 Configuring the global zone to use FSS 1.1.1 First enable & set FSS in the global zone 1.1.2 Next configure a global zone CPU/Memory Cap 1.1.2.1 Example after the configuration change 1.2 Configure /tmp(tmpfs) system cap 1.3 reboot the system for changes to take effect …

Performance Tuning For Solaris Zones Read More »

Modifying Solaris Zone Properties With a Loop.

Modifying Solaris Zone Properties With a Loop. To modify many Solaris Zone Properties, you can run a loop something like the below. Example 1 for i in `zoneadm list -cv |grep wapp1|awk ‘{print $2}’`;do ipaddr=`zonecfg -z $i info anet |grep “allowed-address: 10″|awk ‘{print $2}’|sed ‘s,10.20.19,10.20.41,’`; zonecfg -z $i “add anet;set lower-link=webpriv0;set allowed-address=$ipaddr;end;commit” ;done Example 2 …

Modifying Solaris Zone Properties With a Loop. Read More »

Solaris Dynamic Pool Resource Capping With Examples

Contents 1 Resource Capping available now 1.1 CPU capping for zones 1.2 Memory capping for zones 1.3 Memory capping settings coming soon 1.4 Resource capping Helpful Tips Resource Capping available now Note: It is now much simpler to configure caps in the most recent Solaris versions click here for an example This document assumes your …

Solaris Dynamic Pool Resource Capping With Examples Read More »