Sunday, June 20, 2010

See server utilisation in IBM AIX




To see your server utilisation in IBM AIX including top processes, cpu usage, memory, virtual memory, paging space, I/O and load:

# topas

Type for help

Type to quit
Example

topas

List all the available logs in IBM AIX

alog - list all the available logs in IBM AIX
Description

To list all the available logs that can be dumped with the alog command in IBM AIX

# alog -L

Then to seea particular logfile:

# alog -f logfile -o
Example

alog -L

via

Find number of active processors in IBM AIX

# bindprocessor -q
The available processors are: 0 1 2

To find the number of processors installed (but not necessarily available):

# lscfg -v | grep proc
proc0 00-00 Processor
proc2 00-02 Processor
proc4 00-04 Processor
proc6 00-06 Processor
Example

bindprocessor -q

via

Query installation packages installed in IBM AIX;

So, how in heavens do you query packages on IBM AIX, if this questions came to your mind, here it is:

To get long listing of LPPs installed:

# lslpp -L

# lslpp -l

To get information about a specific LPP:

# lslpp -L freeware.sudo.rte

To get listing of files in an LPP:

# lslpp -f freeware.sudo.rte

To see which LPP owns a file:
# lslpp -w /path/to/file





via

Monday, June 14, 2010

Rainy day

Ill stay at bed today as long as I can, no bash or csh for me today. :]


Sunday, June 13, 2010

Fix location services on iPad after installing OpenSSH PERMANENTLY

When you jailbreak your ipad and install openSSH for your geeky needs it makes locationd to stop working, well here is my permanent fix. enjoy

Login to the iPad as root and run:

#plutil -convert xml1 /System/Library/LaunchDeamons/com.apple.locationd.plist

Then edit using VIM

vim /System/Library/LaunchDeamons/com.apple.locationd.plist

Replace False with True for the tag: OnDemand, save, exit and run

#plutil -convert binary1 /System/Library/LaunchDeamons/com.apple.locationd.plist

reboot your iPad and location services should be working fine


-Posted from my iPad

Refresh CD/DVD on Solaris

So it comes that sometimes is dificult to handle CDs/DVDs on solaris via console, so here are the steps to refresh the contents

$ iostat -En
c0t0d0 Soft Errors: 9 Hard Errors: 0 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No:
Size: 2.14GB <2144518144 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

2. make sure that vold is not running.
# pgrep vold && pkill vold
If you attempt to mount the CD/DVD manually with vold running, you may receive the following error:
mount: /dev/dsk/c0t0d0s2 is already mounted, /cdrom is busy,
or allowable number of mount points exceeded

3. Create the mount point. In this example, the mount point will be /cdrom.
# [ ! -d /cdrom ] && mkdir /cdrom

4. Mount the CD/DVD.
# mount -F hsfs -o ro /dev/dsk/c0t0d0s2 /cdrom
If you do not specify the appropriate file system type, you may receive the following error:
mount: /dev/dsk/c0t0d0s2 is not this fstype.
If you do not mount the media read-only, you may receive the following message:
mount: /dev/dsk/c0t0d0s2 write-protected
Back to brandonhutchinson.com.

Taken from brandonhutchinson.com



Note: also you can restart vold and run volcheck


# svcadm refresh volfs
# svcadm disable volfs
# svcadm enable volfs
# volcheck

Check your CD/DVD


-Posted from my iPad