Solaris

XSCF cheat sheet

Posted on

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

Linux

Sudoers syntax

Posted on

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

Solaris

Format command hangs

Posted on

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

Linux

vmstat output explained

Posted on

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

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