Monday, June 13, 2011

UNIX95


################################################################################

UNIX95

UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|tail -20  (it will sort according to third field i.e sz)

UNIX95= ps -ef -o pid,ruser,vsz,args|sort -nrk3
UNIX95= ps -eo pid,user,sz,vsz,pcpu,args|sort -nbk5 | tail -10  (for cpu)
UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|tail -20
UNIX95= ps -eo pid,user,sz,vsz,args|sort -nbk3|grep -i 'LOCAL=NO'|wc -l

 #################################################################

GBL_MI_LOST_PROC is greater than zero.



#view /var/opt/perf/status.scope
GBL_MI_LOST_PROC is greater than zero:
**** 06/11/11 00:35:00 ****
Server collector startup completed, beginning data collection.
Collection intervals: Process = 60   Global = 300
Warning: GBL_MI_LOST_PROC is greater than zero.
**** /opt/perf/bin/scopeux : 06/11/11 23:30:00 ****
Start of /var/opt/perf/datafiles/logproc file roll
**** /opt/perf/bin/scopeux : 06/11/11 23:30:24 ****
Successfully rolled /var/opt/perf/datafiles/logproc.
@@@@@@@@@@@
ref:
GBL_MI_LOST_PROC:-
The number of processes the measurement layer has lost the ability to update during the interval. This is an indication the
system activity might require the midaemon be restarted with a larger process count. See the midaemon man page for additional
information on the -pids parameter.
man midaemon
18:root [/var/opt/perf] file status.mi
status.mi:      ascii text
18:root [/var/opt/perf] cat status.mi|tail -30

Friday, June 10, 2011

BCV(Business Continuity Volume)


EMC for DBA's

Symmetrix refers to the EMC disk devices, disks within thid symmetix can be divided into various sized logical volumes, these logical volumes can be logicaly joined together and presented to a server.

There are 2 types of logical volume:

Hypervolumes - range of continuos space on a single disk. A single disk can be divided into 128 parts or hypervolumes this is refered to as slicing or splitting. These now form the basis to create metavolumes.

Metavolumes - A group of hypervolumes of the same size grouped together, this is then presented to a server. Once part of a metavolume, only the whole meta can be presented to the server not single disks.

Meta Head and Tail
When hypervolumes are added to a metavolume they are given a sequence, the first hyper being the head and last being the tail. Data is written to Meta from head to tail.


Priner issues .. trouble shooting



#cd /etc/lp/interface  

#ll|grep -i printname
#lpstat -vprintname  (printer details)
#lpstat -oprintname (printer queue status)
#lpstat -pprintname (printer status)

#w
#cd

#telnet ip portno
#echo "TEST PRINT"|lp -d printname (sending a test print)
#echo "TEST PRINT"|lp -d printname
#lpstat -ojprintname (cheking weather it got fired from the queue)

LP printer Creation:

lpadmin -p -orm -orp -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel

lpadmin -p143_zb1 -ormAUABGN-PRN2 -orp143_zb1 -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel