Pages

Thursday, July 19, 2012

Which port is used by a process in AIX?

Today I installed samba and tried to starting it but it refuses to start:

# /etc/inetd/samba start
Starting SMB services
# ps -ef | grep smb
    root 811496 860488   0 14:15:39  pts/0  0:00 grep smb

Battery state of a LSI MegaSAS 9260

A few days ago a collegue asked me to check the battery status of a raid controller. He gave me the login to his machine and I found this raid controller: 

Friday, July 13, 2012

Measure network traffic with Linux

To measure your network traffic for a specific interface use netstat:

# netstat -i
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0   1500 0   7758072      0      0 0       3305512      0      0      0 BMRU
lo    16436 0     79946      0      0 0         79946      0      0      0 LRU

Monday, July 9, 2012

SWAP size and usage in Solaris

If you want to know how large your SWAP area is and how much space currently is consumed then you need to use the command swap:

# swap -l
swapfile                 dev        swaplo blocks   free
/dev/zvol/dsk/rpool/swap 256,2      16     8388592  8388592

Identifying hardware architecture in Solaris

If you ever need to identify your current hardware architecture in Solaris then isainfo may be the right tool:

# isainfo
sparcv9 sparc