Posts Categorized: solaris

Solaris 11 – Getting Started HowTo

Installing LAMP on Solaris 11

I’m writing this from the perspective of a naive Linux admin so I may not be doing everything right and I certainly don’t address issues such as Zones, ZFS … I just spent a few hours to get some basic services running on an old T2000 box. Installation Downloaded Solaris 11 from Oracle – Text… Read more »

Solaris: Service Console Commands

Fault finding and clearing at the Service Console the following commands may be useful: To gather info for a service request: sc> showfru sc> showsc sc> showhost sc> showlogs -v sc> showfaults -v sc> consolehistory -v sc> showenvironment To clear faults try the following commands: sc> showfaults -v sc> clearfault [uuid] sc> clearasrdb sc> setsc diag_level min sc> setsc diag_mode normal sc> setsc sc_servicemode true sc> clearereports -y… Read more »

Solaris: Change IP Address

When changing the IP address on a Solaris 10 box edit the hostname and IP address settings in the following files (if present): /etc/hosts /etc/defaultdomain /etc/defaultrouter /etc/hostname.[interface] /etc/inet/hosts /etc/inet/netmasks /etc/inet/ipnodes /etc/nodename After making changes to these files restart networking with: svcadm restart network/physical

Shutting Down Solaris 8

I was trying to shutdown an old solaris box with: shutdown now Obviously not the right thing to do as I got output similar to this: Shutdown started.    Mon Oct 19 11:58:55 BST 2009Broadcast Message from root (pts/1) on apu Mon Oct 19 11:58:55…The system myhostname will be shut down in 1 minutenowrwall: Can’t send… Read more »

Killing Memory Hogs

On an old server I temporarily added the following script as a cron job to find and kill processes using too much memory. This is just a stop gap until we get to the root of the problem. #!/bin/bashfor i in `ps -efl | grep “httpd” | awk ‘{ if ($10 > 16000) {print $4″… Read more »

Crontab -e returns a number

On a solaris system I sometimes try to edit the crontab file with crontab -e and all I get in return is a number (signifying the number of characters by the ed editor I believe). # crontab -e4025^C?The crontab file was not changed. I need to Ctrl-D to exit.To get the ball rolling again: EDITOR=vi;export… Read more »