The nc command

To test a connection use nc # nc -vz myhost 22 -w 15 > /dev/null 2>&1 -w 15 is the timeout Will return 0 if the host connects on ssh port 22 or 1 if it does not connect. Updated: 03/29/2016 The new update to the nc command takes this option away. Instead the following […]

crontab -e hangs

I have only seen this on solaris # crontab -e 446 simple fix # export EDITOR=vi

Host key verification failed ssh scp using cron

I was getting the following error when a script was being executed via cron. Host key verification failed. lost connection But when the script was executed manually from the command line it worked without any issues. * This worked for me in my particular case. This may not work in every case. I added the […]

Hung Solaris Zone : shutting_down state

I had a zone stuck in shutting_down state. No matter what I did I was not able to shut it down. But this worked. # ps -fz myzone UID PID PPID C STIME TTY TIME CMD root 2850 1 0 Jul 22 ? 0:00 zsched 0040620 18081 1 0 – ? 2529:10 defunct The problem […]

Yum Commands

list packages yum list install package yum install Yum Cheat Sheet

Solaris 10_Recommended bundle link

Direct Links to the Solaris Bundles. It will prompt you for your oracle support login credentials.

Sticky Bit

The “s” is a “sticky bit” which sets that property for all subsequently created subdirs and/or files. Depending on where the “s” is dictates if it’s “suid” or “sgid” ‘man chmod’ will give more info 1755 = drwxr-xr-t 2755 = drwxr-sr-x 3755 = drwxr-sr-t 4755 = drwsr-xr-x 5755 = drwsr-xr-t 6755 = drwsr-sr-x 7755 = […]

chown symbolic link

To update the ownership of a symbolic link. You need to use the -h option. # chown -h user:group mylink