06 Nov 2009

luxadm probe

Found Fibre Channel device(s):                                                                                                              
  Node WWN:50001fe1501114c0  Device Type:Disk device                                                                                        
    Logical Path:/dev/rdsk/c4t600508B4000901790000C00004AF0000d0s2  


 luxadm display /dev/rdsk/c4t600508B4000901790000C00004AF0000d0s2



Check mpxio setup.


Look in /kernel/drv/fp.conf

Enable snmp

Enabling snmp:

svcadm disable snmpdx

Edit and make what ever changes required.
vim /etc/sma/snmp/snmpd.conf

svcadm restart sma

To test.
snmpwalk -v 2c -c public hostname system

11 Sept 2009

NRPE failed ssl handshake

Can't get nrpe to work but config looks ok.

My remote host is behind a firewall and IP address is nated.

Run dmesg | tail

Get this message (Lots of them):

Sep 11 14:32:56 host nrpe[3321]: [ID 381997 daemon.error] Host 196.4.165.245 is not allowed to talk to us!

Add IP address in nrpe.cfg file:

allowed_hosts=127.0.0.1,xxx.xxx.xxx.xxx,196.4.165.245
 and restart nrpe daemon.

11 Aug 2009

18 Jun 2009

Installed memory

Quick check for memory size

prtconf | awk '/^Memory/ {print $0}'

03 Jun 2009

Setting ulimits in csh

Setting the ulimit nofiles in that cursed csh.

limit descriptors 1024

13 May 2009

Port number to PID

Print out all the PIDs and associated ports.

ps -ef | awk '!/PID/{print $2}' | xargs pfiles 2>/dev/null | awk -F":" '$1~/^[0-9]/{XPID=$1;XCMD=$2};
/port/{print XPID, " ", XCMD, " : \n\t",$0}'

04 May 2009

Zones: Change IP address

To change an IP address of an zone.

zonecfg:z> select net address=[old IP]
zonecfg:z:net> set address=[new IP]
zonecfg:z:net> end
zonecfg:z> commit


Reference: Sun Forums

02 Apr 2009

Contrl-M

Some settings to keep in mind when setting up control-m on Solaris 10

In /etc/profile. Add the following line.

ulimit -n 2048

Then Run these 2 commands.

projadd user.cms63prod
projmod -sK "project.max-shm-memory=(priv,16384MB,deny)" user.cms63prod

19 Mar 2009

HBAs

Querry HBAs.

fcinfo hba-port

fcinfo hba-port -l

fcinfo remote-port -slp WWN

luxadm -e port