Solaris – useful commands.

## /usr/platform/`uname -i`/sbin/scadm help (can reset console) prtdiag prtconf ## to find cdrom on solaris: ls -al /dev/sr* |awk ‘{print “/” $11}’ ##————————————————- ## ## FIND commands ## To find a specific file: find / -name -type f ## To find files of a certain size and list them, with sizes: find `directory’ -size +1024k […]

Read More »

Solaris – NFS Mounts

Edit /etc/hosts and /etc/vfstab on the machine which needs the filesystem mounted. Hosts file should have servername and IP of the host server. Your vfstab is for automounting the filesystem. Edit the /etc/hosts and /etc/dfs/dfstab files on the server which hosts the filesystem. Hosts file should have the servername and IP of the client system. […]

Read More »

Solaris – D – Shell snooping

#!/usr/bin/sh # # shellsnoop – A program to print read/write details from shells, # such as keystrokes and command outputs. # Written using DTrace (Solaris 10 build 69). # # 21-Jan-2005, ver 0.80 (check for newer versions) # # # USAGE: shellsnoop [-hqsv] [-p PID] [-u UID] # # shellsnoop # default output # # […]

Read More »

Perl – Basic Solaris Zone Config

#!/usr/bin/perl # — Written by Blane Craft — # — 11/03/06 — # ## – Basic Zone Config – ## print ‘##–Basic Zone Configuration–##’; print”\n”; print”\n”; print ‘Zone Name? ‘; $name = ; chomp ($name); print ‘Set Dir? ‘; $setdir = ; chomp ($setdir); print ‘Special Dir? ‘; $spcdir = ; chomp ($spcdir); print ‘Filesystem […]

Read More »

Perl – password encryption

#!/usr/bin/perl print “### Password encryption utility ###\n”; print “\n”; print “What password would you like to encrypt?\n”; $pass=; chomp ($pass); print “Your encrypted password is..\n”; $xx = (“xx”); $enc=crypt ($pass, $xx); print “$enc\n”; print “\n”;

Read More »

Sparc Ultra10 boot cdrom problem.

This is a picture of the Sparc machine I have at my desk at work. I was having problems getting the system to boot off of the cdrom, even after modifying the nvaliases at the ok prompt. After a little research I cracked the shell and looked inside. The last person to do this was […]

Read More »

Solaris Tip of the Week.

I have to be semi-vague here because of the nature of the post. If you’re using Cisco Security Agent as a SOX compliance tool, stop. There is a very high chance that once you upgrade to the latest RPC that your system will crash. The only way to remedy this is to upgrade the CSA […]

Read More »

Running X applications over SSH

Today I tried something I haven’t really done before and it works great. Modifying my /etc/ssh/sshd_config file to say: X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no I was able to run X applications on my slackware server and view them on my local linux pc. The syntax for this command is: ssh -X you@yourserver.com Here’s a […]

Read More »

Installing Oracle on Solaris 8

Here are some modifications to /etc/system that you might need if you want to install OAS on S8. * For OAS set msgsys:msginfo_msgmax=32768 set msgsys:msginfo_msgmnb=65535 set msgsys:msginfo_msgmni=1024 set msgsys:msginfo_msgtql=1024 set semsys:seminfo_semmni=2000 set semsys:seminfo_semmnu=2000 set semsys:seminfo_semmns=2000 set semsys:seminfo_semmsl=256 set semsys:seminfo_semopm=250 set semsys:seminfo_semume=300 set semsys:seminfo_semvmx=32767 set semsys:seminfo_semaem=16384 set shmsys:shminfo_shmmax=4294967295 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=512 set shmsys:shminfo_shmseg=35 Don’t ask […]

Read More »

Zones and containers

Last week I created my first few zones in Solaris 10. While this process was fairly simple, I decided to create a script to do most of the work for me. This is a really simple perl script and anyone can use/modify it as they see fit. If you’re interested in using it, please let […]

Read More »