Category Archives: Solaris

XSCF cheat sheet

http://thegeekdiary.com/most-commonly-used-xscf-commands-cheat-sheet/ The eXtended System Control Facility Unit (XSCFU) is a service processor that operates and administrates both midrange servers. The XSCFU diagnoses and starts the entire server, configures domains, offers dynamic reconfiguration, as well as detects and notifies various failures. The XSCFU enables standard control and monitoring function through network. Using this function enables starts, […]

Read more

Sudoers syntax

http://unix.stackexchange.com/questions/18877/what-is-the-proper-sudoers-syntax-to-add-a-user In the following sudo entry: superadm ALL=(ALL) ALL there are four fields: The first one specifies a user that will be granted privileges for some command(s). The second one is rarely used. It’s a list of hostnames on which this sudo entry will be effective. On standard setups only one host is relevant (localhost) […]

Read more

Format command hangs

https://support.symantec.com/en_US/article.TECH225180.html Cause The ‘format’ utility has a new feature beginning in Solaris 10 6/06 Operating System called ‘in use checking’. This feature is enabled by default. Solution Any time the ‘format’ utility is run on the disk, it performs many verification/checks on the disk itself (does it contain a slice that is mounted, is it […]

Read more

vmstat output explained

Table 11-4 Output From the vmstat Command Category Field Name Description procs Reports on the following: r The number of kernel threads in the dispatch queue b The number of blocked kernel threads that are waiting for resources w The number of swapped out LWPs that are waiting for processing resources to finish memory Reports on usage of […]

Read more

Crach dumps and core dumps

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

Read more

Parallel and xargs commands

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

Read more

Static routing

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

Read more

Configuring IPMP

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

Read more

Solaris multihoming

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

Read more

Tuning TCP/IP stack

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

Read more

Core dump analysis

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

Read more

Patching DST for Solaris and Oracle

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

Read more

NTP client troubleshooting

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

Read more

SSH forwarding where to look

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

Read more

Multihost ssh tools

http://www.fabfile.org/   Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. It provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running […]

Read more

Add or change swap partition

SOLARIS: Add a SWAP partition https://sites.google.com/site/syscookbook/solaris/solaris-swap-add # Tested on Solaris 10 x86 32bit # Display configured swap: swap -l No swap devices configured # Configure a disk partition to add to swap format […] partition> p Current partition table (original): Total disk cylinders available: 19454 + 2 (reserved cylinders) Part      Tag    Flag     Cylinders         Size            Blocks […]

Read more

Solaris patching FAQ

http://www.oracle.com/technetwork/systems/articles/patch-faq-jsp-139997.html FAQ: Patching for the Solaris OS Lynne Thompson, February 2008 (Updated February 2009) This article provides answers to many questions regarding patching a system running the Solaris Operating System. General Patching Questions   Question: What are patches? Answer:The Solaris Operating System (OS) software is delivered and installed with SVR4 packages. Packages contain one or […]

Read more

RSC commands quick reference

http://175.193.126.47/syshbk/collections/TECHNICALINSTRUCTIONSURE/1-71-1006030.1-1.html Goal Description: RSC Commands at the rsc> prompt and from within Solaris. To get from console to rsc shell one need to enter escape sequence: ~. (tilda dot)   Solution Here is a list of rsc commands that can be used either on the RSC board, or run from within Solaris. From RSC board: […]

Read more

Lights out manager on Solaris servers

Sun SPARC servers may contain the following types of lights-out manager on board: ILOM/ALOM4v/ALOM/LOM/ELOM/SP or RSC http://175.193.126.47/syshbk/Systems/SunFireV490/ht.html LOM Sun Netra[TM] X1 Sun Netra[TM] T1400/1405 Sun Netra[TM] T1 AC200 Sun Netra[TM] T1 DC200 Sun Fire[TM] V100 Sun Fire[TM] V120 Sun Netra[TM] 20 Sun Netra[TM] 1280 ** Sun Netra[TM] 1290 ** Sun Fire[TM] V1280 ** Sun Fire[TM] […]

Read more

Configuring BIND on Solaris 10

Find BIND service: # svcs -a | grep dns Start the service if not started #svcsadm enable /network/dns/server Create configuration files: /etc/named.conf and /etc/rndc.conf named.conf: options { directory “/var/named”; }; logging { channel simple_log { file “/var/log/named/bind.log” versions 3 size 5m; severity error; print-time yes; print-severity yes; print-category yes; }; category default { simple_log; }; […]

Read more