Solaris

Crach dumps and core dumps

Posted on

Core files are just a process dump (image from physical memory) when the process terminates abnormally. These files are very important to find the root cause of process(application/DB) failure.  Normally , application/DB  need to send these core files to application vendor to fix this issue. Otherwise system administrator’s job will become hectic to perform the core file clean […]

Linux

Parallel and xargs commands

Posted on

1. Decypher gpg files find ./ -name “*.gpg” |  while read OUT; do echo ${OUT%.*}; done | /usr/local/bin/parallel -P 15 gpg –output {}  –decrypt {}.gpg 2. Unzip files find ./ -name “*.gz” |  /usr/local/bin/parallel -P 15 gunzip {} \; unzip into different directory: find ./ -name “*.gz” | while read OUT; do echo ${OUT%.*}; done […]

FreeBSD

Static routing

Posted on

Solaris: route add host 192.168.1.12 192.168.1.1 Solaris, route persistent between reboots: route -p add host 192.168.1.12 192.168.1.1 Linux RedHat: route add -host 192.168.1.12 gw 192.168.1.1 Linux persistent routes: /etc/sysconfig/network-scripts/route-XXX where XXX – name of interface http://www.softpanorama.org/Net/Netutils/route.shtml Q1. Which command manipulates the routing table ? A: route  Q2: Command to add a route to server1 via router1: […]

Solaris

Configuring IPMP

Posted on

How to configure Solaris 10 Probe based IPMP http://docs.oracle.com/cd/E19253-01/816-4554/emqul/index.html http://blog.verwilst.be/2008/04/09/active-passive-bonding-on-solaris-10/comment-page-1/ http://www.c0t0d0s0.org/archives/6300-Less-known-Solaris-features-IP-Multipathing-Part-8-Classic-IPMP.html Original docs 1. Place each interface into the group # ifconfig hme0 group testgroup1 # ifconfig hme1 group testgroup1 if active-standby configuration is needed than # ifconfig hme0 group testgroup1 deprecated -failover up # ifconfig hme1 group testgroup1 deprecated -failover standby up 2. Configure […]

Solaris

Solaris multihoming

Posted on

http://www.ctrlaltgeek.com/2008/11/12/solaris-multi-homed-hosts-on-separate-subnets/   Solaris like most UNIX type hosts can have multiple network cards on their system. It gets tricky when have 2 interfaces on different subnets since you can only have 1 default router. Consider this example: A Solaris server has 2 network interfaces, bge0 and bge2. bge0 has an IP of 192.168.1.1, the router […]

Solaris

Tuning TCP/IP stack

Posted on

http://www.sean.de/Solaris/soltune.html https://docs.oracle.com/cd/E23507_01/Platform.20073/ATGInstallGuide/html/s0604tcpwaitproblemonsolaris01.html https://docs.oracle.com/cd/E26576_01/doc.312/e24936/tuning-os.htm

Solaris

Core dump analysis

Posted on

Core Dump Management on the Solaris OS By Adam Zhang, Sun Microsystems, April 2007, Updated June 2007 Abstract: Abnormal termination of a process will trigger a core dump file. A core dump file is very helpful to programmers or support engineers for determining the root cause of abnormal termination, because it provides invaluable information about […]

Oracle DB administering

Patching DST for Solaris and Oracle

Posted on

Patching DST for Solaris and Oracle 1. Solaris: 1.1. copy last tzdata from http://www.iana.org/time-zones 1.2. unpack the archive into temporary directory 1.3. as root: #zic europe this command compiles and installs updated timezone database 1.4. check that tz update applied #! /usr/bin/perl use POSIX qw(mktime),qw(strftime); # Oct 26 02:00:00 MSD 2041 $t = mktime(0,10,1,26,9,2014-1900,-1,-1,1); print […]

FreeBSD

NTP client troubleshooting

Posted on

http://support.f5.com/kb/en-us/solutions/public/10000/200/sol10240.html   Observe the output with references on the fields presented in the previous table. Example of a successful NTP peer server query If the local ntpd process can communicate or attempts to communicate with a declared NTP peer server, the output from the ntpq command appears similar to the following example: # ntpq -np remote           […]

FreeBSD

SSH forwarding where to look

Posted on

Where to look if X11 forwarding does not work   1. In /etc/ssh/sshd_config should be the options: AddressFamily inet (if the host is ipv4 only) X11Forwarding yes 2. in /etc/hosts shold be 127.0.0.1 localhost (if the host is ipv4 only) 3. try debugging ssh session: /usr/sbin/sshd -d -p 222 4. DISPLAY environment variable should be […]