Archive for the ‘UNIX’ Category.

Proliant Support Pack CLI on Linux

A Cheat sheet for PSP tools on Linux - specifically hpasmcli & hpacucli.

Continue reading ‘Proliant Support Pack CLI on Linux’ »

VMWare Tips

VMWare ESX Server, by default, does not allow outgoing SSH connections.

You must be very careful where you place your memory.  On  a dual proc HP 385, as an example, you have two processors and 8 slots for memory.  Each processor must have access to the same size of memory.  For example, proc A has slots 1 & 2 full of 1GB DIMMs, then proc B must have slots 5 & 6 with 1GB DIMMs.  You will pull a lot of hair with the errors you’ll see if you make this mistake.

Quick dig tips

Quick Answer

dig cainmanor.com +short <- returns only IP
dig @ns28.1and1.com cainmanor.com in any <- lot’s of information
dig docs +search <- use /etc/resolv.conf search order
dig -x 74.208.27.139 +short <- reverse lookup
dig cainmanor.com +trace <- traceroute for DNS
dig cainmanor.com +nssearch <- find your SOA serial number to see if your records are updated.

Long Answer

Miscellaneous Linux Tips

kickstart files live on dot — cdlc

mkfs.ext3 /dev/cciss/c0d0p1

ip addr list

smbclient \\\\10.0.0.1\\m$ -U administrator

up2date -u
up2date -if
yum update

rlog redirects.conf
rcsdiff -r<1> -r<2> redirects.conf

“set paste” to have vi not word wrap when pasting

Enable new NIC cards in Linux - vi /etc/modules.conf

Calendar webDAV settings

#
# Settings for WebDAV Server
# Must go before Document Directory
DAVLockDB /Library/WebServer/DAVLock/DAVLock
DAVMinTimeout 600
DAVDepthInfinity On

<Directory /Library/WebServer/Documents/DAVdocs>
DAV On
AllowOverride AuthConfig
AuthName “DAV Restricted”
AuthType Basic
AuthUserFile /Library/WebServer/users
Allow from all
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
</Limit>
</Directory>

RPM Cheat Sheet

To see what you have installed:

rpm -qa | less
rpm -qa --qf "%{NAME}\n" | less  # will skip package version numbers -- useful for diffing installed rpms on different systems

To see what files a package has installed, try this:

rpm -q -l foo

foo is the name of the package as reported by rpm -qa.

If you have a .rpm file and want to see what is inside, try this:

rpm -q -lp file.rpm

To extract files from a .rpm file into current directory:

rpm2cpio file.rpm | cpio -idv

To install a package:

rpm -ihv file.rpm

To see what package a file belongs to:

rpm -q -f /some/path/to/file

To uninstall (”erase”) a package named foo:

rpm -e foo

To see disk packages by disk usage, try:

rpm -qia|awk '$1=="Name" { n=$3} $1=="Size" {s=$3} $1=="Description" {print s  " " n }' |sort -n +0|less

Infrant memory and disk list

Memory and Disk for the ReadyNAS NV/NV+

Continue reading ‘Infrant memory and disk list’ »