HP-UX
1748282 회원
4022 온라인
108761 솔루션
새 메시지

telnet 세션수 MAX 값을 수정

 
천종웅
비정기 조언자

telnet 세션수 MAX 값을 수정

telnet의 세션수를 제한 할려면 건드려야할



커널 값이 먼가요?
3 응답 3
Joseph
초등학생

telnet 세션수 MAX 값을 수정

npty 값입니다.^^



-itrc문서에 자세히 나와있네요..^^

telnet 세션:

연결이 거부되는 서버에서 사용 가능한 telnet 세션 수를 확인하려면 다음을

실행합니다.



ls /dev/pty |wc -w

ls /dev/ptym | wc -w

60이 기본값이며, 응답에 60이 나타나면 telnet 세션 값을 증가시키지 않아

고갈된 것입니다.



telnet 세션 수를 증가시키려면 npty 매개변수를 증가시켜야 합니다. 이것은

커널 매개변수이므로 시스템을 재부팅해야 합니다. 다음의 두 단계를

수행하십시오.



1. SAM --> Kernel --> Configurable Parameters를 사용합니다.

npty (10.20 and 11.0)

nstrpty (11.0 only)

NPTY와 NSTRPTY를 512로 설정하고 저장한 다음 재부팅합니다. NPTY와

NSTRPTY는 원하는 telnet 세션 수입니다.



2. 명령 프롬프트에서 다음과 같은 특수 장치 파일을 다시 작성합니다.



insf -d ptys -n 512 # 512는 SAM에서 NTPY를 설정한 수(10.20 및 11.0)



insf -d ptym -n 512 (10.20 및 11.0)



insf -d pts -s 512 -e -v (11.0만 해당)



이제 세션 수가 512로 증가되었습니다.



주: 512는 예제 값일 뿐입니다. 서버에 로그인하는 평균 사용자 수를 살펴보고

필요한 PTY 양을 결정해야 합니다.





Good day~~
김병수
본과생

telnet 세션수 MAX 값을 수정

아래의 내용처럼 해당 kernel parameter를 수정하시면 됩니다.



1. Change directories to /stand/build.

cd /stand/build

2. Create a new system file from the running kernel.

/usr/lbin/sysadm/system_prep -s system

3. Edit the kernel:

vi system



so that these parameters have these values:

npty 400

nstrpty 400

nstrtels 400

4. Build the new kernel.

/usr/sbin/mk_kernel -s system

5. Move the old system and vmunix files so if anything goes

wrong, the system can be booted from the old kernel.

mv /stand/system /stand/system.prev

mv /stand/vmunix /stand/vmunix.prev

mv /stand/dlkm /stand/dlkm.vmunix.prev

6. Move the new system file and new kernel into place, ready

to be used when rebooting the system:



mv /stand/build/system /stand/system

kmupdate /stand/build/vmunix_test

7. Reboot the system off the new kernel.

shutdown -r



해당 kernel parameter를 수정한뒤 sysdef 를 이용하여 확인하시기 바랍니다.

# sysdef |more
? ? ?
비정기 조언자

telnet 세션수 MAX 값을 수정

# sam



-> Kernel Configuration



-> Configurable Parameters



-> npty 값 수정하시면 됩니다...