DevTech101

DevTech101

Month: December 2014

Creating, Adding Additional SCAN Addresses in Oracle Database 11g

srvctl add network -netnum 2 -subnet 10.10.10.0/255.255.255.0/aggrpub1 -nettype static srvctl add scan -scanname 12cdb1-pub-scan.domain.com -netnum 2 srvctl start scan -netnum 2 srvctl status scan -netnum 2 srvctl add scan_listener -netnum 2 -endpoints TCP:1521 -listener listener2 srvctl start scan_listener -netnum 2 srvctl add vip -node 12cdb1 -address 10.10.10.111/255.255.255.0 -netnum 2 srvctl add vip -node 12cdb2 -address …

Creating, Adding Additional SCAN Addresses in Oracle Database 11g 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

Solaris SPARC SAN Boot

After mirroring the device or zfs send install the bootblock installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0 First we need to get the lun paths, just run the below to get that {0} ok show-disks a) /pci@500/pci@0/pci@c/SUNW,qlc@0,1/fp@0,0/disk b) /pci@500/pci@0/pci@c/SUNW,qlc@0/fp@0,0/disk c) /iscsi-hba/disk q) NO SELECTION Next get the disk id’s, just run the below to get that. …

Solaris SPARC SAN Boot Read More »

How to measure network Bandwidth in Linux

Usage as below from same folder: To check packer per interface: ./netpps.sh eth0 To check speed per interface: ./netspeed.sh eth0 Measure Packets per Second on an Interface netpps.sh as file name #!/bin/bash INTERVAL="1" # update interval in seconds if [ -z "$1" ]; then echo echo usage: $0 [network-interface] echo echo e.g. $0 eth0 echo …

How to measure network Bandwidth in Linux Read More »