~$ sudo apt-get

Archive for May, 2009

Display SAN information with powermt

by on May.28, 2009, under Linux, Server

powermt display dev=all

This will display all information relevant to connected SAN devices.

# powermt
powermt [class=all|clariion|ess|hitachi|hphsx|hpxp|invista|symm]

powermt check [force] [hba=|all] [dev=|all]
powermt check_registration
powermt config
powermt disable hba=
powermt display nonvirtual {dev=|all} [every=<#seconds>] [class=invista|all]
powermt display [ports] [dev=|all] [every=<#seconds>]
powermt display hba_mode
powermt display latency [dev=|all] [every=<#seconds>]
powermt display options
powermt display paths [every=<#seconds>] [width=<#col>]
powermt display port_mode
powermt display unmanaged
powermt enable hba=
powermt load [file=]
powermt manage {dev= | class=}
powermt release
powermt remove [force] hba=|all | dev=|all
powermt restore [hba=|all] [dev=|all]
powermt save [file=]
powermt set mode=active|standby [hba=|all] [dev=|all]
powermt set path_latency_monitor=on|off
powermt set path_latency_threshold=
powermt set periodic_autorestore=on|off
powermt set policy={ad|bf|co|lb|li|nr|re|rr|so} [dev=|all]
powermt set port_disable={true|false} dev=
powermt set priority= [dev=|all]
powermt unmanage {dev= | class=}
powermt update lun_names
powermt version

Leave a Comment more...

Delete Sendmail Queue

by on May.13, 2009, under Linux, Mail, Sendmail

When rm -rf /var/spool/mqueue gives you ‘bash: /bin/rm: Argument list too long’, you can use the following.

find /var/spool/mqueue/. -type f -exec rm -f {} ;
Leave a Comment more...

Total memory usage by Apache processes

by on May.13, 2009, under Apache, Linux, Server

ps ax | grep httpd | awk '{ print $1 }' | xargs pmap -x | awk '{ SUM += $2 } END { print SUM }'
Leave a Comment more...

Fixing Urchin – Urchin: Unable to open database for writing since it has been archived

by on May.04, 2009, under Linux

mkdir tmp; for i in `find ./*archive.zip`; do unzip $i; mv $i tmp; done; chown urchin:urchin *

Must be in the report directory for the profile.

/usr/local/urchin/data/reports/[profile name]

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...