월요일, 7월 10, 2006

MES1 서버의 m3_01 파일시스템 임계치 도달의 경우

나노트랙 로그가 쌓이고 있는중이다
실제관리는 SE 쪽에서 하므로 우리는 임시적으로 조치를 취해 주어야 한다.

압축을 하자.

/c3m3_01/app/ccstest/log 이러한 경로에 들어가면
로그 파일이 무수히 쌓여 있다

이들 중에 nanoTrack20060621_00.LOG 이런파일들 중에서
가장 오래 된 녀석들 몇 놈 골라서 압축을 해준다.
덩치가 워낙 크기 때문에 2~3개만 해도 디스크 사용률을 많이 떨어뜨릴 수 있다

토요일, 7월 08, 2006

solaris shutdown

Unix



코드:

// Shutdown
# shutdown -hy 0

Solaris

코드:

// Shutdown
# shutdown -y -g1 -i5

// reboot
# shutdown -y -g1 -i6


Oracle Shutdown (tb)

코드:

// shutdown
$ sqlplus internal
sql> shutdown immediate
sql> exit

solaris .profile 설정

paswd -e 명령으로 ksh로 로그인 쉘을 변경

# passwd -e
old shell : /sbin/sh
new shell : /bin/ksh <= 변경

기본 profile 파일에서 .profile을 생성
# cp /etc/skel/local.profile $HOME/.profile

vi 에디터로 열고 아래 내용을 붙여넣는다
# vi .profile

================================================================

#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
#stty istrip
stty erase ^H
#stty kill ^U
#stty intr ^C
#stty eof ^D
ENV=/.kshrc
EDITOR=vi
PATH=/usr/local/bin:/usr/sadm/admin/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/sbin:/sbin:/bin:/usr/bin:/usr/ucb:/etc:.

MANPATH=/usr/share/man:/usr/dt/man:/usr/local/man/usr/openwin/share/man:/usr/man
export PATH ENV EDITOR DISPLAY MANPATH
#
# If possible, start the windows system
#
if [ "`tty`" = "/dev/console" ] ; then
if [ "$TERM" = "sun" -o "$TERM" = "sun-color" -o "$TERM" = "AT386" ]
then
if [ ${OPENWINHOME:-""} = "" ] ; then
OPENWINHOME=/usr/openwin
export OPENWINHOME
fi
echo ""
echo "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
sleep 5
echo ""
$OPENWINHOME/bin/openwin
clear # get rid of annoying cursor rectangle
exit # logout after leaving windows system
fi

/.kshrc 파일 내용

기본적으로 생성되어 있지 않으므로
vi .kshrc 명령으로 루트 디렉토리 밑에 생성한다



PS1=[$LOGNAME@`hostname`:'$PWD]# '
export PS1

set -o vi

alias ls='\ls -F'
alias ll='\ls -alF | more'
alias mv='\mv -i'
alias cp='\cp -i'
alias rm='\rm -i'

일요일, 7월 02, 2006

[solaris]root telnet 접근 허가 설정

/etc/default/login 파일에서



-----------------------------------------------------
# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
CONSOLE=/dev/console

-----------------------------------------------------


위에서 CONSOLE=/dev/console 이 부분을 주석 처리 하게 되면
root로 telnet 로그인이 가능해 집니다.

# CONSOLE=/dev/console <== root로 telnet 로그인 가능

주석 처리가 안되어 있는경우는 로그인이 안됩니다.

유닉스 머신 자체에서만 로그인이 가능합니다.




CONSOLE=

이렇게 CONSOLE 변수에 값이 지정되어 있지 않을경우는 root로

Remote이든 local이든 로그인하는 것 자체가 거부됩니다.

즉, 시스템에 root로 로그인할수 없게 됩니다.

다른 계정으로 로그인한 후 root로 사용자 변경해야 합니다.