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 »

Removing a primary filesystem to create new logical filesystems

Okay, so sometimes you need a refresher on how to do something. Let’s say, for example, that you have some filesystems that look something like this /dev/hda1 –> /boot /dev/hda2 –> / /dev/hda3 –> swap /dev/hda4 –> /logs You’ve noticed that your / partition is filling up rather quickly as you didn’t allocate enough space […]

Read More »

I’m not good at SQL…

… according to a company I interviewed with on Friday, so I didn’t get a job. The job was for someone who knows Linux, UNIX, *BSD, Windows, EMC, some networking, troubleshooting and basic help with application development (RoR, MySQL). Erm, good luck finding an all-in-one with real world experience in SWVA. If you do, please […]

Read More »