Category: UNIX
Install packages into zone with alternative basedir
March 11th, 2010Recently I was on the task to install package into the zone. Those packages were from SFW, and where using /usr, which I inherited from global zone. To get past this, decision was made to install the package into another dir, which is called basedir. Le… more »
OK prompt and link on server NIC
March 4th, 2010I have received an Sun Fire 440 server to install, though only info I had for it was the ALOM password. To JumpStart/JET this server, I need to know what NIC`s have the link attached to them, and their corresponding MAC addresses. A little bit of black m… more »
SSH no kex alg
February 27th, 2010Having recently JumpStarted an new server, I found it unable to login via ssh
root@chiscadm01~# ssh 10.23.3.103
no kex alg
Solution was to regenerate the SSH keys on that server
# /lib/svc/method/sshd -c
# svcadm refresh ssh
and voi… more »
Shell useful tricks (basic stuff)
February 26th, 2010Nice tricks with shell, I discovered in internet darkest corners :)Brace expansion takes a list of strings separated by commas and expands those strings into separate arguments for you. The list should be enclosed by braces.# echo {1,2,3,4,5}… more »
Shell snooping with DTrace
February 24th, 2010Lurking around the inet, getting info about Solaris Audit - I stumbled upon this wonderful DTrace script. What it basically do - is to snoop all activity around shells, such as keystrokes and command outputs. Very handy indeed, smth like BSA for cheap :)… more »
vSphere 4 implementation videos
February 5th, 2010Lurking around internet, I found this wonderful free videos about VMWare ESX 4. Nicely shown, thanks!
Link to the videos more »
Attach disk to the ZFS root mirror pool
January 28th, 2010Having broke root mirror pool, trying to migrate it to RAID-Z to boot from (until I figured out, that booting from RAID-Z is not yet supported in Solaris, but works in Free-BSD - WTF!!?!?), I was forced to put disk back into root mirror pool...but failed… more »
Solaris Infrequently Asked and Obscure Questions
January 14th, 2010Perfect information for unix admin to read through, absolutely worth reading! Get it here.
more »
When user has last changed his password in Solaris
December 24th, 2009Title says it all. Since, the date of last change of password is in /etc/shadow:
root:x:14602::::::
That means, that root has last changed his password 14602 days after beginning of unix epoch, i.e. 1 Jan 1970.
But we need to convert this into… more »
Zones related commands
December 16th, 2009Digging through internet while deep-diving into Solaris zones, I have found few interesting commands, that related to the zones. Worth checking out:
zonename - prints the name of the current zone
ifconfig e1000g0:1 -zone zone01 - get the IP for this… more »
IPMP configuration on Solaris
November 21st, 2009Take a read through this wonderful article on IPMP configuration in Solaris! Highly recommended. http://saifulaziz.wordpress.com/2009/05/08/configuring-ip-network-multipathing-on-solaris/ more »
Solaris Volume Manager recovery of metdb on Solaris 9
November 12th, 2009We had an sad issue, when someone was patching v240 with Solaris 9 with some patch cluster, and accidently everything went nuts. Maybe not making reconfigure reboot, but just ordinary one cause this, I don`t know - we were seeing this horror after reboot… more »