Proliant Support Pack CLI on Linux
A Cheat sheet for PSP tools on Linux - specifically hpasmcli & hpacucli.
All Things Cain
Archive for the ‘UNIX’ Category.
A Cheat sheet for PSP tools on Linux - specifically hpasmcli & hpacucli.
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 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…
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
#
# 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>
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.rpmTo see what package a file belongs to:
rpm -q -f /some/path/to/file
To uninstall (”erase”) a package named foo:
rpm -e fooTo 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
Memory and Disk for the ReadyNAS NV/NV+