<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
	<channel>
		<title>ANGELBEAT</title>
		<link>https://angelbeat.kr</link>
		<description>내 생에 아름다운 날들</description>
		
				<item>
			<title><![CDATA[no matching host key type found. Their offer: ssh-rsa,ssh-dss 로 표시 되면서 접속이 안될 경우 해결 방법]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=575]]></link>
			<description><![CDATA[<div class="post_content_holder">
<div class="post_text">
<div class="post_text_inner">
<p>No matching host key type found. Their offer: ssh-rsa,ssh-dss 은 클라이언트(OpenSSH)가</p>
<p>서버에서 제공하는 호스트 키 타입(ssh-rsa, ssh-dss)을 보안상 더 이상 기본 허용하지 않아서 생기는 문제입니다.</p>
<p> </p>
<p>A. 해결 방법<br />ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa 사용자명@서버주소</p>
<p><br /># 옵션 설명<br />-o HostKeyAlgorithms=+ssh-rsa : 서버가 제공하는 호스트 키 허용<br />-o PubkeyAcceptedAlgorithms=+ssh-rsa : 서버 인증 키 허용</p>
<p> </p>
</div>
</div>
</div>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Mon, 01 Dec 2025 20:25:16 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[윈도우11 '더 많은 옵션 표시' 없애고, 윈도우10 처럼 모든 메뉴가 나오게 하는 방법]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=574]]></link>
			<description><![CDATA[<p>1. 키보드에서 Win 키(윈도우 로고 키)를 누르고 cmd (명령 프롬프트) 검색 후 실행</p>
<p>2. 아래 명령어를 복사해서 붙여넣고 엔터</p>
<p>reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve</p>
<p>적용을 위해 아래 명령어를 입력하여 탐색기를 재시작 (화면이 깜빡일 수 있음)</p>
<p>taskkill /f /im explorer.exe &amp; start explorer.exe</p>
<p>※ 원상복구 방법</p>
<p>1. 키보드에서 Win 키(윈도우 로고 키)를 누르고 cmd (명령 프롬프트) 검색 후 실행</p>
<p>2. 아래 명령어를 복사해서 붙여넣고 엔터</p>
<p>reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f</p>
<p>적용을 위해 아래 명령어를 입력하여 탐색기를 재시작 (화면이 깜빡일 수 있음)</p>
<p>taskkill /f /im explorer.exe &amp; start explorer.exe</p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Mon, 01 Dec 2025 20:22:43 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[CLOUD &amp; LINUX 기술지원]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=573]]></link>
			<description><![CDATA[<p>회원 가입 없이도 누구나 편하게 상담을 요청해 주시면, 성실히 답변 드립니다. <br /><br />상담을 원하실 경우 아래  (주)에스유소프트 상담요청 게시판 이용을 부탁 드립니다. <br /><br />.<br />.<br /><br />(주)에스유소프트 상담요청<br /><a href="https://www.linux.kr/g5/index?catePd=customer" target="_blank" rel="noopener">https://www.linux.kr/g5/index?catePd=customer</a><br /><br /><br /></p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Sat, 01 Nov 2025 08:02:29 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[레이드 카드(raid card) 제조사별 상태 확인]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=550]]></link>
			<description><![CDATA[<p>[root@localhost ]# lspci -vv | grep LSI |grep  Logic<br /><br />01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS-3 3108 [Invader] (rev 02)<br />Subsystem: LSI Logic / Symbios Logic Device 9361<br /><br />pci 에서 인식을 해야 시스템 상에서 정상 적으로 확인 가능<br /><br />=======================================================================================<br /><br />#more /proc/scsi/scsi 정보로 레이드 카드 종류를 확인할수 있다<br /><br />3ware 레이드 카드<br />./tw_cli info c0<br />./tw_cli /c0/u0 show<br />./tw_cli /c0/u1 show<br />./tw_cli maint rescan c0 디스크 교체전 교체후 상태 다시 보기<br />./tw_cli maint deleteunit c0 u1 유닛제거하기<br />./tw_cli maint remove c0 p1 디스크 제거하기 (포트번호확인)<br />./tw_cli maint createunit c0 rspare p15 (스페어 디스크 지정)<br />areca 레이드카드<br />파일다운위치<br />wget ftp://60.248.88.208/RaidCards/AP_Drivers/Linux/CLI/v1.82_81103.zip<br /><br />./cli32 disk info<br />./cli32 vsf info<br />HP 레이드카드<br />wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p414707558/v59422/hpacucli-8.50-6.0.noarch.rpm</p>
<p>// 위 주소 다운로드 불가시 아래 링크에서 다운로드 주소 확인 (예:DL360)</p>
<p><a href="https://support.hpe.com/connect/s/product?language=en_US&amp;kmpmoid=1010007891&amp;tab=driversAndSoftware&amp;driversAndSoftwareFilter=8000113&amp;driversAndSoftwareSubtype=9000214&amp;environmentType=2200022">HPE ProLiant DL360 Gen10 server | Product Support</a><br /><br />hpacucli ctrl all show (장착된 슬롯 정보 보기)<br />hpacucli ctrl slot=2 pd all show status 물리적상태<br />hpacucli ctrl slot=2 ld all show status 논리적상태<br />hpacucli ctrl slot=2 show config 정보보기<br />hpacucli ctrl slot=2 show config detail 상세정보보기<br />hpacucli ctrl slot=2 show status<br />hpacucli ctrl all show status<br />hpacucli ctrl all show config<br />아답텍 레이드카드<br />wget http://www.andico.co.kr/files/adaptec/asm/650_2/asm_linux_x86_v6_50_18579.tgz<br /><br />./arcconf getconfig 1 ld 논리적상태<br />./arcconf getconfig 1 pd 물리적상태<br />./arcconf getconfig 1 ad 요약정보<br />MegaRAID<br />wget -O MegaCLI.zip http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=5661<br /><br />./MegaCli -pdlist -a0 | grep Count<br />./MegaCli -pdlist -a0  물리적 디스크 정보<br />./MegaCli -ldinfo -lall -all 논리적 디스크 정보<br />./MegaCli -AdpAllInfo -aall 레이드카드 정보</p>
<p><br />출처 : http://lamerced.tistory.com</p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Thu, 16 Jan 2025 10:49:41 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[LINUX | MegaCli 사용법]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=547]]></link>
			<description><![CDATA[<p><u><b>MegaCli란?<br /></b></u>Dell , IBM에서 디스크 관리 시에 LSI의 MegaRAID를 사용하고 있다.<br />MegaCLI는 MegaRAID의 명령어로 RAID 구성 및 디스크 상태 체크 및 정보를 확인할 수 있다.<br />**단, PercCli는 PERC 시리즈 8 이후부터 MegaCli로 교체되고 있다.</p>
<p><u><b>MegaCli 명령어 설명<br /></b></u>설치시 기본 디렉터리 위치 : /opt/MegaRAID/MegaCli/MegaCli64</p>
<p><br />- 디스크 정보 및 레이드 정보 확인 가능</p>
<pre id="code_1658968542790" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -showsummary -aALL</code></pre>
<p> </p>
<p>- 레이드 레벨 확인</p>
<pre id="code_1658968566350" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL | grep RAID | awk -F <span class="hljs-string">" "</span> <span class="hljs-string">'{print $4}'</span></code></pre>
<p> </p>
<p>- 레이드 사이즈 및 레벨</p>
<pre id="code_1658968578725" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL | egrep <span class="hljs-string">'Size|RAID'</span></code></pre>
<p> </p>
<p>- 디스크 상태 확인</p>
<pre id="code_1658968598107" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -PdList -aALL | grep Firmware
<span class="hljs-comment">## 기존에 설정되어있던 foreign을 삭제 및 Unconfigured(bad) -&gt; Unconfigured(good) 설정 변경을 해주어야 리빌딩, 레이드 설정이 가능합니다. ##</span></code></pre>
<p> </p>
<p><br />- 디스크 상태 bad -&gt; good 변경 방법</p>
<pre id="code_1658968657561" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -pdmakegood -physdrv [E:S] -a0</code></pre>
<p> </p>
<p> </p>
<p>- 디스크 Foreign 상태 확인</p>
<pre id="code_1658968679027" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -PdList -aALL | grep Foreign</code></pre>
<p> </p>
<p> </p>
<p>- 디스크 Foreign 상태 클리어</p>
<pre id="code_1658968690234" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Clear -a0</code></pre>
<p> </p>
<p> </p>
<p>- Enclosure 정보 확인</p>
<pre id="code_1658968701206" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -EncInfo -aALL</code></pre>
<p> </p>
<p>- 물리적 디스크 정보확인</p>
<pre id="code_1658968713965" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL</code></pre>
<p> </p>
<p> </p>
<p>- 논리적 디스크 정보 확인</p>
<pre id="code_1658968724001" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -LDinfo -Lall -aALL</code></pre>
<p> </p>
<p> </p>
<p>- 가상 드라이브 별로 상태정보와 가상드라이브 안에 포함된 물리디스크 상태를 보여줌, 가상드라이브 0번부터 차례대로 보여줌(디스크도 가상 디스크 안에 포함된 순으로 차례대로 보여준다.)</p>
<pre id="code_1658968736198" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -LDPDinfo -aALL</code></pre>
<p> </p>
<p> </p>
<p>- 어댑터(레이드 컨트롤러) 정보 확인</p>
<pre id="code_1658968746918" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL</code></pre>
<p> </p>
<p> </p>
<p>- battery backup unit(BBU) 정보 확인</p>
<pre id="code_1658968760016" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aALL</code></pre>
<p> </p>
<p> </p>
<p>- 레이드 삭제</p>
<pre id="code_1658968774293" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdDel -L0 -a0
<span class="hljs-comment">## -L = Virtual Dive ID , -a = Adapter Number ##</span></code></pre>
<p> </p>
<p>- 리빌딩 시작(보통은 자동으로 리빌딩이 되지만(안될 경우))</p>
<pre id="code_1658968807363" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -Start -PhysDrv [E:S] -a0
/opt/MegaRAID/MegaCli/MegaCli64 -PDhsp -Set -PhysDrv [E:S] -a0</code></pre>
<p> </p>
<p>- 리빌딩 진행상황 확인</p>
<pre id="code_1658968816579" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -pdrbld -showprog -physdrv[E:S] -a0</code></pre>
<p> </p>
<p> </p>
<p>- Raid 0 생성</p>
<pre id="code_1658968826741" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -cfgLdAdd -r0 [E:S,E:S,......] -a0
<span class="hljs-comment">## -r0 = Raid 0 , [E:S] = Enclosure(Dive ID):Slot Number ##</span></code></pre>
<p> </p>
<p><b><u>Raid 0일 때 Reboot 없이 디스크 교체하는 법</u></b></p>
<p>1. 기존에 Fail난 디스크 umount </p>
<p> </p>
<p>2. 디스크 교체</p>
<p> </p>
<p>3. 디스크 상태 확인</p>
<pre id="code_1658968845484" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -PdList -aALL | grep Firmware
/opt/MegaRAID/MegaCli/MegaCli64 -PdList -aALL | grep Foreign
/opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Clear -a0
/opt/MegaRAID/MegaCli/MegaCli64 -pdmakegood -physdrv [E:S] -a0
<span class="hljs-comment">## 기존에 설정되어있던 foreign을 삭제 및 Unconfigured(bad) -&gt; Unconfigured(good)  설정 변경을 해주어야 리빌딩, 레이드 설정이 가능합니다. ##</span></code></pre>
<p> </p>
<p>4. Raid 0 생성</p>
<pre id="code_1658968857087" class="bash"><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -cfgLdAdd -r0 [E:S] -a0
<span class="hljs-comment">## Raid 0 생성이 안될 시(컨트롤러 쪽 캐시 삭제가 필요한 경우) ##</span>
/opt/MegaRAID/MegaCli/MegaCli64 -GetPreservedCacheList -a0
/opt/MegaRAID/MegaCli/MegaCli64 -DiscardPreservedCache -L[레이드ID] -a0</code></pre>
<p>5. 디스크 및 레이드 정보 확인<br /><code class="hljs">/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aALL</code></p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Mon, 16 Dec 2024 09:31:18 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[리눅스 tar / tar.gz / zip 압축 및 압축 해제]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=543]]></link>
			<description><![CDATA[0. tar 명령어 옵션 (.zip 파일은 해당 되지 않음)
    tar [OPTION...] [FILE]...
        -f     : 대상 tar 아카이브 지정. (기본 옵션)
        -c     : tar 아카이브 생성. 기존 아카이브 덮어 쓰기. (파일 묶을 때 사용)
        -x     : tar 아카이브에서 파일 추출. (파일 풀 때 사용)
        -v     : 처리되는 과정(파일 정보)을 자세하게 나열.
        -z     : gzip 압축 적용 옵션.
        -j     : bzip2 압축 적용 옵션.
        -t     : tar 아카이브에 포함된 내용 확인.
        -C     : 대상 디렉토리 경로 지정.
        -A     : 지정된 파일을 tar 아카이브에 추가.
        -d     : tar 아카이브와 파일 시스템 간 차이점 검색.
        -r     : tar 아카이브의 마지막에 파일들 추가.
        -u     : tar 아카이브의 마지막에 파일들 추가.
        -k     : tar 아카이브 추출 시, 기존 파일 유지.
        -U     : tar 아카이브 추출 전, 기존 파일 삭제.
        -w     : 모든 진행 과정에 대해 확인 요청. (interactive)
        -e     : 첫 번째 에러 발생 시 중지.

1. 압축하기
- c : compress, tar 아카이브 생성 (기존 아카이브 덮어쓰기)

- v : 처리되는 과정을 나열

- f : 대상 tar 아카이브 지정 (기본 옵션)

 
tar 압축

$ tar -cvf [파일명.tar] [폴더명]
$ tar -cvf test.tar test_folder
 

tar.gz 압축

$ tar -zcvf [파일명.tar.gz] [폴더명]
$ tar -zcvf test.tar.gz test_folder
 

zip 압축

$ zip [파일명.zip] [폴더명]
현재 폴더의 전체를 압축

$ zip test.zip ./*
 

현재 폴더의 모든 것과 현재 폴더의 하위 폴더들까지 모두 압축

$ zip test.zip -r ./*
 

2. 압축 해제 하기
- x : extract, tar 아카이브에서 파일 추출 

- v : 처리 되는 과정을 나열

- f : 대상 tar 아카이브 지정 (기본 옵션)

 
tar 압축 해제

$ tar -xvf [파일명.tar]
 

tar.gz 압축 해제

$ tar -zxvf [파일명.tar.gz]
$ tar -zxvf test.tar.gz
 

zip 압축 해제

$ unzip [파일명.zip]
$ unzip test.zip
특정 폴더에 압축 해제

$ unzip test.zip -d ./target_folder
 

4. (참고) tar 명령어 사용 예시

현재 디렉토리의 모든 파일과 디렉토리를 tar로 묶기	tar cvf T.tar *
대상 디렉토리를 포함한 모든 파일과 디렉토리를 tar로 묶기	tar cvf T.tar [PATH]
파일을 지정하여 tar 아카이브로 묶기	tar cvf T.tar [FILE_1] [FILE_2]
tar 아카이브를 현재 디렉토리에 풀기	tar xvf T.tar
tar 아카이브를 지정된 디렉토리에 풀기	tar xvf T.tar -C [PATH]
tar 아카이브의 내용 확인하기	tar tvf T.tar
현재 디렉토리를 tar로 묶고 gzip으로 압축하기	tar zcvf T.tar.gz *
gzip으로 압축된 tar 아카이브를 현재 디렉토리에 풀기	tar zxvf T.tar.gz
현재 디렉토리를 tar로 묶고 bzip2로 압축하기	tar jcvf T.tar.bz2 *
bzip2로 압축된 tar 아카이브를 현재 디렉토리에 풀기	tar jxvf T.tar.bz2
tar 아카이브 묶거나 풀 때 파일 별 진행 여부 확인하기	tar cvfw T.tar *]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 07 Aug 2024 17:42:41 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[리눅스 서버 로그 확인 방법]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=542]]></link>
			<description><![CDATA[&lt; 로그 파일별 위치 및 내용 &gt;


1. /var/log/messages

시스템에 문제가 생겼을 때 가장 먼저 찾아보는 로그 파일 입니다.

syslog.conf 에서 로그를 남기지 않는 것으로 지정된 내용을 제외한 모든 항목이 기록 됩니다.

내용이 무지 많기 때문에 보통 grep 명령어와 함께 사용하여 문제를 파악 합니다.


2. /var/log/secure

사용자 접속 정보가 기록되는 파일 입니다.

ssh, 텔넷 등으로 시스템에 접속된 내용이 기록되며,

점속 일시, 사용자 명, 접속한 시스템의 IP 등이 기록되게 됩니다.

시스템 해킹이 의심 될 경우 꼭 찾아봐야 하는 로그 입니다.


3. /var/log/maillog

메일 송, 수신 내용이 기록되게 됩니다.


4. /var/log/cron

cron이 실행된 것들에 대한 정보가 기록 됩니다.

crontab에 저장된 작업들이 정상 수행 했는지 확인 해 보실 수 있습니다.


5. /var/log/boot.log

서비스 데몬들의 부트에 관련된 정보가 기록됩니다.

각 데몬들의 시작/종료/실패 내용이 기록 됩니다.

부팅과 관련된 내용 뿐만 아니라 종료 (shutdown) 시의 내용도 기록 됩니다.


6. /var/log/dmesg

부팅 시의 시스템 로그가 기록 됩니다.

dmesg 명령어를 통해 출력되는 내용이 위 파일에 기록되게 됩니다.

7. /var/log/wtmp

최근의 접속 사항이 기록되는 파일 입니다.

last 명령어를 통해 출력되는 내용이 기록 되어 있습니다.


8. /var/log/lastlog

각 사용자의 마지막 로그인 내용이 기록되어 있습니다.

직접 파일을 볼 수는 없고, lastlog 명령어를 통해 확인이 가능합니다.


9. xferlog

FTP 데몬으로 파일 전송 한 내용이 기록되게 됩니다.


10. /var/log/httpd/access_log

Apache 서비스 데몬의 로그 파일 입니다.

웹 서비스를 운영 할 경우 해당 내용이 기록되게 됩니다.


11. /var/log/httpd/error_log

Apache 서비스 데몬의 에러 사항에 대한 내용이 기록 되게 됩니다.]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 07 Aug 2024 09:10:42 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[윈도우11 파일탐색기 더 많은 옵션 표시 끄기/켜기]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=541]]></link>
			<description><![CDATA[<p>cmd (명령 프롬포트) 실행 후<br /><br />reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve<br />'더 많은 옵션 표시' 끄기<br /><br />reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f<br />'더 많은 옵션 표시' 켜기</p>
<p> </p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Tue, 30 Jul 2024 22:46:22 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[linux / rocky # history 조회 시 날짜 시간 표시하기]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=540]]></link>
			<description><![CDATA[<p>/etc/profile에 HISTTIMEFORMAT 변수를 추가해 주면 history 조회 시 해당 명령어를 입력한 날짜, 시간이 표시 됨<br /><br /><strong>1. /etc/profile에 아래 내용 추가</strong><br /># vi /wtc/profile<br /><br />HISTTIMEFORMAT="%F %T "<br />export HISTTIMEFORMAT<br /><br /><strong>2. 적용</strong><br /># source /etc/profile</p>
<p><br /><strong>3. 확인<br /></strong># history</p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 20 Mar 2024 18:36:18 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[geoip 국가 코드 (geoip country code)]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=539]]></link>
			<description><![CDATA[사용예
iptables -A INPUT -m geoip --src-cc CN,US,HK -j DROP 
iptables -A INPUT -m geoip --src-cc CN,US,HK,AT,AR,AS,AZ,BA,BD,BE,BJ,BM,BQ,BR,BY
국가 코드는 한 라인에 최대 15개 국가코드까지 명시 가능


국가코드

AD, "안도라"
AE, "아랍 에미리트"
AF, "아프가니스탄"
AG, "앤티가 바부 다"
AI, "앵 귈라"
AL, "알바니아"
AM, "아르메니아"
AO, "앙골라"
AP, "아시아 / 태평양 지역"
AQ, "남극"
AR "아르헨티나"
AS, "아메리칸 사모아"
AT, "오스트리아"
AU, "호주"
AW, "아루바"
AX, "올란드 제도"
AZ, "아제르바이잔"
BA, "보스니아 헤르체고비나"
BB, "바베이도스"
BD, "방글라데시"
BE "벨기에"
BF, "부르 키나 파소"
BG, "불가리아"
BH, "바레인"
BI, "부룬디"
BJ, "베냉"
BL, "세인트 Bartelemey"
BM, "버뮤다"
BN, "브루나이"
BO, "볼리비아"
BQ, "보네르, 세인트 유스 타티 우스 및 사바"
BR, "브라질"
BS, "바하마"
BT, "부탄"
BV, "부 베이 섬"
BW, "보츠와나"
BY "벨라루스"
BZ, "벨리즈"
CA, "캐나다"
CC, "코코스 제도"
CD, "콩고 민주 공화국"
CF, "중앙 아프리카 공화국"
CG, "콩고"
CH, "스위스"
CI, "코트 디부 아르"
CK, "쿡 제도"
CL, "칠레"
CM, "카메룬"
CN, "중국"
CO, "콜롬비아"
CR, "코스타리카"
CU, "쿠바"
CV, "카보 베르데"
CW, "카오"
CX, "크리스마스 섬"
CY, "키프로스"
CZ, "체코"
DE, "독일"
DJ, "지부티"
DK, "덴마크"
DM, "도미니카"
DO "도미니카 공화국"
DZ, "알제리"
EC, "에콰도르"
EE, "에스토니아"
EG "이집트"
EH, "서사하라"
ER, "에리트리아"
ES, "스페인"
ET, "에티오피아"
EU, "유럽"
FI, "핀란드"
FJ, "피지"
FK, "포클랜드 군도"
FM, "마이크로 네시아의 연방"
FO, "페로 제도"
FR, "프랑스"
GA, "가봉"
GB, "영국"
GD, "그레나다"
GE, "조지아"
GF, "프랑스어 령 기아나"
GG, "건지"
GH, "가나"
GI, "지브롤터"
GL, "그린란드"
GM, "감비아"
GN, "기니"
GP, "과들루프​​"
GQ, "적도 기니"
GR, "그리스"
GS, "사우스 조지아 및 사우스 샌드위치 제도"
GT, "과테말라"
GU, "괌"
GW, "기니 비사우"
GY, "가이아나"
HK, "홍콩"
HM, "허드 맥도널드 제도"
HN, "온두라스"
HR, "크로아티아"
HT, "아이티"
HU, "헝가리"
ID, "인도네시아"
IE, "아일랜드"
IL, "이스라엘"
IM, "아일 오브 맨"
IN "인도"
IO, "영국령 인도양 지역"
IQ, "이라크"
IR, "이란, 이슬람 공화국"
IS "아이슬란드"
IT, "이탈리아"
JE, "저지"
JM, "자메이카"
JO, "요르단"
JP, "일본"
KE, "케냐"
KG, "키르기스스탄"
KH, "캄보디아"
KI, "키리바시"
KM, "코모로"
KN, "세인트 키츠 네비스"
KP, "한국의 민주주의 인민 공화국"
KR, "한국의 공화국"
KW, "쿠웨이트"
KY, "케이맨 제도"
KZ, "카자흐스탄"
LA, "라오 인민 민주 공화국"
LB, "레바논"
LC, "세인트 루시아"
LI, "리히텐슈타인"
LK, "스리랑카"
LR, "라이베리아"
LS, "레소토"
LT, "리투아니아"
LU, "룩셈부르크"
LV, "라트비아"
LY, "리비아"
MC, "모로코"
MC, "모나코"
MD, "몰도바, 공화국"
ME, "몬테네그로"
MF, "세인트 마틴"
MG, "마다가스카르"
MH, "마샬 군도"
MK, "마케도니아"
ML, "말리"
MM, "미얀마"
MN, "몽골"
MO, "마카오"
MP, "북 마리아나 제도"
MQ, "마르티니크"
MR, "모리타니"
MS, "몬 세라"
MT, "몰타"
MU, "모리셔스"
MV, "몰디브"
MW, "말라위"
MX, "멕시코"
MY, "말레이시아"
MZ, "모잠비크"
NA, "나미비아"
NC, "뉴 칼레도니아"
NE, "니제르"
NF, "노 포크 섬"
NG, "나이지리아"
NI, "니카라과"
NL, "네덜란드"
NO, "노르웨이"
NP, "네팔"
NR, "나우루어"
NU, "니우에"
NZ, "뉴질랜드"
OM, "오만"
PA, "파나마"
PE, "페루"
PF, "프랑스 령 폴리네시아의"
PG, "파푸아 뉴기니"
PH, "필리핀"
PK, "파키스탄"
PL, "폴란드"
PM, "생 피에르 미 클롱"
PN, "핏 케언"
PR, "푸에르토 리코"
PS, "팔레스타인 영토"
PT, "포르투갈"
PW, "팔라우"
PY, "파라과이"
QA, "카타르"
RE, "재회"
RO, "루마니아"
RS, "세르비아"
RU, "러시아"
RW, "르완다"
SA, "사우디 아라비아"
SB, "솔로몬 제도"
SC, "세이셸"
SD, "수단"
SE, "스웨덴"
SG, "싱가포르"
SH, "세인트 헬레나"
SI, "슬로베니아"
SJ, "스발 바르 얀 마옌"
SK, "슬로바키아"
SL, "시에라 리온"
SM, "산 마리노"
SN, "세네갈"
SO, "소말리아"
SR, "수리남"
SS, "남 수단"
ST, "상투 메 프린시 페"
SV, "엘살바도르"
SX, "신트 마르텐"
SY, "시리아"
SZ, "스와질랜드"
TC, "터크 스 케이 커스 제도"
TD, "차드"
TF, "프랑스 남부 지방"
TG, "토고"
TH, "태국"
TJ, "타지키스탄"
TK, "토켈 라우"
TL, "동 티모르"
TM, "투르크 메니스탄"
TN, "튀니지"
TO, "통가어"
TR, "터키"
TT, "트리니다드 토바고"
TV, "투발루"
TW, "대만"
TZ, "탄자니아의 미국 공화국"
UA, "우크라이나"
UG, "우간다"
UM, "미국의 군도"
US, "미국"
UY, "우루과이"
UZ, "우즈베키스탄"
VA, "바티칸 시국"
VC, "세인트 빈센트 그레나딘"
VE, "베네수엘라"
VG, "영국령 버진 군도"
VI, "버진 아일랜드, 미국"
VN, "베트남"
VU, "바누아투"
WF, "월리스 푸 투나"
WS, "사모아"
YE, "예멘"
YT, "마 요트"
ZA, "남아프리카 공화국"
ZM, "잠비아"
ZW, "짐바브웨"]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 20 Mar 2024 14:51:46 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[linux / CentOS -&gt; Rocky8, Rocky9 네트워크 설정 변경 내용]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=538]]></link>
			<description><![CDATA[<p>CentOS7 | Rocky8, Rocky9 설정 변경 부분<br /><br />1. network service<br />CentOS7 # service network restart → 사용불가<br /># systemctl restart network → 사용불가<br />Rocky8 # systemctl restart NetworkManager.service<br /><br />2. 네트워크 연결 설정 파일 경로<br />CentOS7 /etc/sysconfig/network-scripts/ifcfg-ensxx<br />Rocky8 /etc/NetworkManager/system-connections/ 경로에 키파일 형식으로 저장<br />network-scripts 경로<br />/etc/sysconfig/network-scripts/<br /><br />3. Rocky8 네트워크 설정 방법<br />ⓐ 설정 파일 직접 수정<br />ⓑ nmtui 명령어로 수정<br />ⓒ nmcli 명령어로 수정<br /><br />4. RHEL9 네트워크 설정 파일<br />네트워크 설정 파일의 경로<br />/etc/NetworkManager/system-connections/ens125.nmconnection (파일 이름은 다를 수 있음)<br /><br />5. nmcli 사용 예<br /><br /># nmcli con mod ens250 ipv4.address 192.168.0.82/24<br /># nmcli con mod ens250 ipv4.gateway 192.168.0.1<br /># nmcli con mod ens250 ipv4.method manual<br /># nmcli con mod ens250 ipv4.dns "8.8.8.8"<br /># nmcli con up ens250</p>
<p> </p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Sat, 16 Mar 2024 23:31:21 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[linux / Rocky 남은 용량 확인 명령어]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=535]]></link>
			<description><![CDATA[<p>df : 디스크의 남은 용량을 확인<br /><br />---------------------------------------------------------------------<br /><br />df -k : kb 단위로 현재 남은 용량 확인<br /><br />df -m : mb 단위로 남은 용량확인<br /><br />df -h : 깔끔하게 보여줌<br /><br />df . : 현재 디렉토리가 포함된 파티션의 남은 용량을 확인<br /><br />du : 현재 디렉토리에서 서브 디렉토리까지의 사용량을 확인 <br /><br />---------------------------------------------------------------------<br /><br />du -a : 현재 디렉토리의 사용량을 파일 단위 출력<br /><br />du -s : 총 사용량을 확인<br /><br />du -h : 보기 좋게 바꿔줌 <br /><br />du -sh * : 한단계 서브 디렉토리 기준으로 보여줌</p>
<p> </p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Fri, 23 Feb 2024 10:10:12 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[linux / Rocky8 SSH접속 허용하기]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=534]]></link>
			<description><![CDATA[<p><strong>1. sshd 가 설치되어있는지 확인 (# which sshd)</strong><br />만약 설치가 되어 있지 않다면 yum을 이용해서 설치<br />yum install openssh-server</p>
<p><strong>2. yum update -y</strong></p>
<p><strong>3.</strong> 설치 완료 후 <strong>ssh config 파일 설정</strong> - vi 편집기 이용<br />vi /etc/ssh/sshd_config<br />#Port 22 주석(#)을 지워준 뒤, port 번호 수정</p>
<p><strong>4. sercives file의 port number도 수정</strong><br />vi /etc/services</p>
<p><strong>5. sshd service 재시작</strong><br />systemctl restart sshd</p>
<p>혹시 에러가 뜬다면 ssh port 확인 semanage port -l | grep ssh<br />22로 되어 있다면 [port number] 수정 semanage port -a -t ssh_port_t -p tcp [port number]<br /><br />semanage  명령어 실행이 안 될 경우 semanager 설치<br />sudo dnf install policycoreutils-python-utils</p>
<p><strong>6. 방화벽에 port number 추가</strong><br />firewall-cmd --permanent --zone=public --add-port=[port number]/tcp<br />방화벽 재가동<br />firewall-cmd –-reload</p>
<p>sshd 재시작<br />systemctl restart sshd.service</p>
<p><strong>7. 다른 컴퓨터에서 접속 확인</strong></p>
<p>ssh 계정명@ip –p포트번호</p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Fri, 23 Feb 2024 10:07:49 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[linux / Rocky 폴더 찾기, 파일 찾기, 문자열 찾기]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=531]]></link>
			<description><![CDATA[<h3>1. 폴더 찾기</h3>
<p>1) 전체 폴더에서 찾기 </p>
<p>find / -name 폴더명 -type d </p>
<p>2)현재폴더(하위 포함) 에서 찾기</p>
<p>find ./ -name 폴더명 -type d</p>
<p> </p>
<h3>2. 파일 찾기(ls)</h3>
<p>1) ls로 찾기</p>
<p>ls -Rhal | grep '.*[.]html'  &lt;---- 확장자가 html인것 찾음</p>
<p>R:하위폴더 포함</p>
<p>h: 사람이 보기쉽게 해줌</p>
<p>a: 숨겨진 파일,디렉토리 보여줌</p>
<p>l: 자세히 보여줌(퍼미션,소유자,그룹..)</p>
<p>-찾은 파일 삭제(주의!!!)</p>
<p>ls | grep '키워드' | xargs rm   &lt;---키워드 찾아서 삭제</p>
<p>2) find 로 찾기</p>
<p>find 경로(찾을범위) 경로옵션 ,옵션조건( ex 찾을값) <br />경로옵션: -name, -user(소유자), -newer -perm -size  -type<br />옵션조건:  -print(기본값) -exec(외부 명령실행) <br />find /etc -name "*.conf"   &lt;--  /etc 디렉토리 하위에 확장명이 .conf인 파일검색 </p>
<p>sudo find / -name "xxx" -type f     xxx 이름의 파일 찾기</p>
<p>에러나는거 날리고 찾기</p>
<p>ex) sudo  find / -name "xxx" -print 2&gt;/dev/null<br />ex) sudo find / -name "com.trendmicro*" -print 2&gt;/dev/null</p>
<p>-찾은 파일 삭제(주의!!!)</p>
<p>ex)</p>
<p>find /home -name "*.swp" -exec rm {} \;   /home 홈 디렉토리 하위에 확장명이 *.swp인 파일을 삭제 <br />-exec : 외부명령의 시작  ,  \; 외부 명령의 끝   , {}는 앞에서 find 명령의 실행결과물들어가는 곳 </p>
<p>find . -type f -name "*2017*" -exec rm {} \;   현재디렉토리에서 2017 들어간거 전부 삭제</p>
<p>cat /dev/null &gt; <a href="https://sigmasabjil.tistory.com/catalina.out">catalina.out</a> 카탈리나  빈파일로 만들기 </p>
<p> </p>
<h3>3. 내부 내용 찾기 </h3>
<p>1)파일 내부에 문자열을 검색함</p>
<p>grep 'meta' ./*.html  </p>
<p>내부에 meta라는 문자열이 들어있는 html파일 찾음</p>
<p>grep  -rn 'meta' ./* </p>
<p>하위 모든 디렉토리 파일대상으로 해당 문자열 찾음</p>
<p>-r은 하위 도 포함 <br />-n 라인넘버 표시 </p>
<p>tail -1000 /usr/local/tomcat/logs/<a href="https://sigmasabjil.tistory.com/catalina.out">catalina.out</a> | grep 'error' </p>
<p>2) 문자와 문자 사이의 내용 출력</p>
<p>sed -n -e '/Word A/,/Word D/ p' file <br />Word A<br />Word B<br />Word C<br />Word D<br />Word E<br />Word F<br />It seems that you want to print lines between 'Word A' and 'Word D' (inclusive). I suggest you to use sed instead of grep. It lets you to edit a range of input stream which starts and ends with patterns you want. You should just tell sed to print all lines in range and no other lines:</p>
<p>sed -n -e '/2019-06-14 04:07/,/2019-06-14 04:11/ p' <a href="https://sigmasabjil.tistory.com/catalina.out">catalina.out</a> <br />3) 내용 역순으로 출력</p>
<p>tail -500 /usr/local/tomcat/logs/<a href="https://sigmasabjil.tistory.com/catalina.out">catalina.out</a> | tac<br />카탈리나 거꾸로 보기 밑을 위로</p>
<p>4) 해당 문자열 찾은 후  위아래 몇줄 추가로 보여줌</p>
<p>tail -1000 /usr/local/tomcat/logs/<a href="https://sigmasabjil.tistory.com/catalina.out">catalina.out</a> | grep -A10 -B10 'error'</p>
<p>grep -A10 -B10 '찾을 단어'  </p>
<p>-B 숫자,  print NUM lines of leading context (찾은 라인의 위줄을 숫자만큼 추가로 보여줌)<br />-A 숫자,  print NUM lines of trailing context (찾은 라인의  아래줄을 숫자만큼 추가로 보여줌)</p>
<p> </p>
<p>출처 : <a href="https://sigmasabjil.tistory.com/22">리눅스 폴더 찾기, 파일 찾기, 문자열 찾기 (tistory.com)</a></p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Tue, 16 Jan 2024 10:23:04 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[AXGATE 네트워크 방화벽 기본 명령어]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=527]]></link>
			<description><![CDATA[AXGATE

- baud rate 115200

show version
show system info
show utm firewall
show os list
show link
show ha profile
show ip int brief
show ip route
show arp
show ntp status
show clock
show logging
show interface
show run


AXGATE VPN

show dcube tunnel dcb1
show sslvpn tunnel svpn0
show run int dcb1
show run int bridge1
show logging ipsec


AXGATE LINUX 모드

start-shell
# top
# free -m
# df -h
# fdisk -l
# smartctl -a /dev/sda
# uptime
# vmstat
# ssh -V
# bwm -d
 

패스워드 변경시 비슷한 암호로 변경이 안된다고 나올때

!
line vty
 no login server priority local
!
vty로 로그인할때 계정,비번 묻지 않도록 만든 후 계정 삭제, 이후 계정 새암호로 생성

패스워드 신규 생성후

!
line vty
 login local
!]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 11 Oct 2023 10:59:20 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[NirSoft 네트워크 점검 및 테스트 툴]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=526]]></link>
			<description><![CDATA[<div id="SE-615d7ee1-a797-409d-bd44-9b9637f4e989" class="se-component se-text se-l-default">
<div class="se-component-content">
<div class="se-section se-section-text se-l-default">
<div class="se-module se-module-text">
<p id="SE-a3d12a30-f204-436a-b161-381043dc163a" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-2302a6a9-9a5d-4292-b140-a1ec75605335" class="se-fs- se-ff-"><span class="__se-hash-tag">#NirSoft</span> 네트워크 점검 및 테스트 툴</span>​</p>
<p id="SE-fb4e9316-ce2e-4711-8a7d-191044f43945" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-ccf854d9-36b9-4883-aeb3-d7169ac262cc" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#password_utils" target="_blank" rel="noopener">Password Recovery Utilities</a></span></p>
<p id="SE-f16e6637-c337-4f71-913d-f864068f8fdb" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-1f5f6af5-f84d-4593-b7d4-1413e463cafa" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#network_utils" target="_blank" rel="noopener">Network Monitoring Tools</a></span></p>
<p id="SE-75830aea-6fa2-4ea7-b5a7-dc791ffaea07" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-f21abc1d-7d9d-4158-a709-fbe5e523e429" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#browser_tools" target="_blank" rel="noopener">Web Browser Tools</a></span></p>
<p id="SE-88d5398c-ff1f-460c-90cd-5855132edc01" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-be936878-3736-41b2-90dd-dc0e7f0cae74" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#audio_video_utils" target="_blank" rel="noopener">Video/Audio Related Utilities</a></span></p>
<p id="SE-810e39e7-38ff-4a9e-a204-a0f3bdc7ac17" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-d834f6aa-21eb-4be9-90f8-c5fd19c29d43" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#internet_utils" target="_blank" rel="noopener">Internet Related Utilities</a></span></p>
<p id="SE-ba676b53-c5cc-45be-921c-e955112f16fd" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-9551c973-358c-4529-80c4-c4ef12fc7ae8" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#desktop_utils" target="_blank" rel="noopener">Desktop Utilities</a></span></p>
<p id="SE-15e441ab-0f35-4cb4-8e9f-e1d0079801ee" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-a4975d99-c9d2-49ae-a7ab-7a21285326ee" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#outlook_utils" target="_blank" rel="noopener">Outlook/Office Utilities</a></span></p>
<p id="SE-190323d7-6b0f-49e0-9e70-d478fa51905e" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-6ba9c0ad-a4af-444b-b3a8-bd817dfc0a8e" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#programmer_tools" target="_blank" rel="noopener">Programmer Tools</a></span></p>
<p id="SE-a119f9fa-0a01-4da5-8585-d12aaee9f8d4" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-c36eef82-18fc-4e25-8c16-e9d80e41fdc8" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#disk_utils" target="_blank" rel="noopener">Disk Utilities</a></span></p>
<p id="SE-044ec593-597b-4ee4-a6b5-22e95bff9714" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-8e80116c-3603-4412-8f51-e1bc82a34d86" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#system_utils" target="_blank" rel="noopener">System Utilities</a></span></p>
<p id="SE-aa378c27-5885-46ba-9d4b-a540aae1254e" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-34d81602-e395-451b-9e34-3dff873faa38" class="se-fs-fs15 se-ff- se-style-unset"><a class="se-link" href="https://www.nirsoft.net/utils/index.html#other_utils" target="_blank" rel="noopener">Other Utilities</a></span></p>
<p id="SE-9671524e-909f-40d8-8545-10d57bdb2ab2" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-7a96c395-54c9-4aed-a116-d96f27ca00d0" class="se-fs- se-ff-">​</span></p>
<p id="SE-a4576551-30f9-4224-9bf5-e78e501cce39" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-5ee34846-9539-40b8-837c-201267405014" class="se-fs- se-ff-">​</span></p>
<p id="SE-74b1a48c-8d63-4d05-898f-f9d573b8aa2e" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-b5e964cf-4a5e-4c17-9361-f7e9b9f8edd5" class="se-fs- se-ff-">출처 : <a class="se-link" href="https://www.nirsoft.net/" target="_blank" rel="noopener">https://www.nirsoft.net/</a></span></p>
</div>
</div>
</div>
</div>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Tue, 03 Oct 2023 12:10:09 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[HP 스위치 명령어]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=525]]></link>
			<description><![CDATA[▶ 현재 설정 상태 확인

 1) 방법
 raonyn&gt; display current-configuration
#
 version 7.1.070, Release 6635
#
..................

▶ config 모드로 진입 하기
 raonyn&gt; system-view

▶ telnet 또는 ssh 활성화
 1) 방법
 raonyn&gt; system-view 
 raonyn] telnet server enable or ssh server enable
 raonyn] user-interface vty 0 4
 raonyn-line-vty0-4] authentication-mode schem
 raonyn] local-user admin
 raonyn-luser-manage-admin] service-type terminal ( or telnet or ssh)
 =&gt; mode none 을 하면 계정 및 패스워드를 안묻고 로그인 가능
 =&gt; mode schem 을 해줘야 계정으로 로그인 가능
 =&gt; local-user 계정에서 service-type에 telnet이나 ssh를 설정해야 로그인 가능

▶ 계정 생성
 1) 방법
 raonyn&gt; system-view 
 - 계정 생성
 raonyn] local-user raonyn
 - 패스워드 생성
 raonyn-luser-manage-raonyn] password simple password
  Updating user information. Please wait... …
 - 계정에 접근 서비스 결정
 raonyn-luser-manage-raonyn] service-type terminal ( or telnet or ssh)
 - 계정 롤 설정 (예: network-admin)
 raonyn-luser-manage-raonyn] authorization-attribute user-role network-admin 

▶ NTP 서버 연동
 1) 방법
 raonyn&gt; system-view 
 - ntp service enable
 raonyn] ntp-service enable
 - ntp service 동기화 서버 지정
 raonyn] ntp-service unicast-server 1.1.1.1
 raonyn]display ntp-service status
 Clock status: synchronized   &lt;== 동기화 상태
 Clock stratum: 4
 System peer: 1.1.1.1 &lt;== 동기화 대상 서버
 Local mode: client
 Reference clock ID: 1.1.1.1
 Leap indicator: 00
 Clock jitter: 0.000458 s
 Stability: 0.000 pps
 Clock precision: 2^-21
 Root delay: 6.31714 ms
 Root dispersion: 11.64246 ms
 Reference time: e6e7a612.fa350119  Wed, Oct  5 2022 15:43:30.977
 System poll interval: 64 s

▶ snmp 허용
 1) 방법
 raonyn&gt; system-view 
 - snmp 버전 지정
 raonyn] snmp-agent sys-info version v1 v2c
 - snmp 정보 획득을 위한 커뮤니티 값 설정
 raonyn] snmp-agent community read community 
 raonyn] display snmp-agent statistics
  249175 messages delivered to the SNMP entity.
  0 messages were for an unsupported version.
  0 messages used an unknown SNMP community name.
 2) ACL
 snmp-agent community read public acl ...2001 
 =&gt; acl은 명령어 마지막에 acl 2000~ 으로 해주면 됩니다. Acl number 2000 name SNMP
     rule 1 permit source X.X.X.X 0 (허용해줄 IP), 나머지 차단
 

▶ ssh 기본 acl 생

[HPE]acl basic 2000
[HPE-acl-ipv4-basic-2000]rule 10 deny ip source 20.20.20.11 0 destination 20.20.20.1 0 counting
[HPE-acl-ipv4-basic-2000]rule 70 permit source 192.168.120.51 0


▶ password-recovery
 1) 방법
  - 부팅시 Ctrl+B 클릭
    8. Skip Authentication for Console Login Clear Image Password Success!
  - 샤시 장비와, 일반 스위치와 조금 다를 수 있으며, 샤시 장비는 MPU 모듈 하나를 제거 한 상태에서만 리커버리가 됨.
 

■ SNMPv1/SNMPv2c configuration example

Configuring the SNMP agent.

Configure the IP address of the agent and make sure that the agent and the NMS can reach each other.

Specify SNMPv1 and SNMPv2c, create a read-only community public , and a read and write community private.

 system-view 
[Agent] snmp-agent sys-info version v1 v2c 
[Agent] snmp-agent community read public 
[Agent] snmp-agent community write private
Configure contact and physical location information for the agent.

[Agent] snmp-agent sys-info contact Mr.Wang-Tel:3306 
[Agent] snmp-agent sys-info location telephone-closet,3rd-floor 
Enable SNMP traps, set the NMS at 1.1.1.2/24 as an SNMP trap destination, and use public as the community name. (To be sure that the NMS can receive traps, specify the same SNMP version in the snmp-agent target-host command as on the NMS.)

[Agent] snmp-agent trap enable 
[Agent] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname 
public v1 
[Agent] quit 
Configure the SNMP NMS.

The SNMP settings on the agent and the NMS must match. Specify the read-only community, the read and write community, the timeout time, and the number of retries.

Verify the configuration.

Try to get the count of sent traps from the agent, and the attempt succeeds.

Send request to 1.1.1.1/161 ... 
Protocol version: SNMPv1 
Operation: Get 
Request binding:  
1: 1.3.6.1.2.1.11.29.0 
Response binding: 
1: Oid=snmpOutTraps.0 Syntax=CNTR32 Value=18 
Get finished
Use a wrong community name to get the value of a MIB node from the agent, and see an authentication failure trap on the NMS.

1.1.1.1/2934 V1 Trap = authenticationFailure 
SNMP Version = V1 
Community = public 
Command = Trap 
Enterprise = 1.3.6.1.4.1.43.1.16.4.3.50 
GenericID = 4 
SpecificID = 0 
Time Stamp = 8:35:25.68



HP 네트워크 점검 기본 명령

display current-configuration
display saved-configuration
display version
display brief interface
display ip routing-table
display ip interface
display interface
display memory
display clock
display ntp-service status
display device
display controller
display ip statistics
display users
_display memory
display exception 10 verbose from-device
display logbuffer
_display history all
display environment
display port-mapping
display snmp-agent community
display info-center
vlan
status

HP와 Cisco 명령어 비교

HP		vs  	  Cisco
display			  show
undo			  no
quit			  exit
save			  write
sysname			  hostname
delete			  erase
rip			  router rip
ospf			  router ospf
bgp			  router bgp
acl			  access-list
system view               configure terminal
display current-config    sh run
display interface brief   show ip int b
display version           show version
display ip routing-table  show ip route
display info-center       show logging
user-interface vty 0 63   line vty 0 4
port link-mode route      no switchport
undo shutdown             no shutdown
Cisco는 한번에  inbound/outbound 트래픽을 볼수 있으나
HP는 개별적으로 inbound/outbound 트래픽을 볼수 있다.

display counters inbound interface
display counters outbound interface
telnet 명령어
system view 모드에서는 telnet enable 설정만 가능
quit 명령으로 나와서 진행해야함

Softcar 기능 적용
기본적으로 Cisco에서 확장핑을 치면 DDoS 방지용 동작(Ping Loss 인것처럼 보임)

Link Aggregation
- HP(구.3Com 장비)  : Link-aggregation (LACP / manual)
                      link-aggregation mode dynamic | none
- HP                : Trunk (LACP / manual)
                      Dynamic active | passive , static lacp | trunk
- Cisco             : Etherchannel (LACP / PAgP / manual)
                      channel-group 1 mode active | passive | auto | desire | on

display link-aggregation summary
display link-aggregation verbose
trunk 구성할때 인터페이스에 설정 하지 않는다.(Cisco는 physical 인터페이스에 설정함)

interface bridge-aggregation 1
port link-type trunk
port trunk permit vlan 100 200 or all



HP스위치는 user view   /   system view 모드로 나뉘어 짐 // CISCO와 유사함

 

Systme view 모드로 접속해야 스위치 설정이 가능함

 

User view 는   /  system view 는 [host name] 으로 표기됨 

 

HP L스위치 셋팅

1. Vlan 생성

 System-view
[hostname] Vlan 10               ---&gt; vlan 10 생성
 

2. Interface에 vlan 설정

[hostname] Vlan 10
[hostname -vlan 10] port Ethernet 1/0/5 to Ethernet 1/0/10      --&gt; 1~10번까지 vlan 10 access로 할당
 

3. Vlan에 ip설정

 system-view
[hostname] interface vlan 10     --&gt; interface 모드 진입
[hostname-vlan-interface10] ip address 192.168.0.100 255.255.255.0
*삭제하는 방법* undo ip address 192.168.0.100 255.255.255.0
4. Gateway 설정

 system-view
[hostname] ip route-static 0.0.0.0 0.0.0.0 192.168.0.1
 

5. Ip route 설정

 system-view
[hostname] ip route-static 0.0.0.0 0.0.0.0 192.168.0.1
*삭제하는 방법* undo ip route 0.0.0.0 0.0.0.0 192.168.0.1
 

6. Hostname 설정

 system-view
[hostname] system HP_Switch
[HP_Switch]
 

7.User 생성

 system-view
[hostname] local-user 계정이름
[hostname-luser-manage-계정이름] password [hash / simple] 패스워드
[hostname-luser-manage-계정이름] service-type [ftp, http, https, pad, ssh, telnet, terminal]
예시 - service-type ssh telnet terminal
 

8. Line Vty 설정

 system-view
[hostname] user-interface vty 0 4
[hostname-line-vty0-4] authentication-mode scheme  --&gt; cisco login local 과 똑같음
[hostname-line-vty0-4] quit
[hostname]
[hostname] telnet server enable --&gt; telnet 활성화
===================================================================

1. 컨피그 저장

Save
2. Cisco sh run

[hostname] display current-configuration --&gt; 현재 동작중인 컨피그 전체 확인
[hostname] display saved-configuration --&gt; 현재 저장된 컨피그 전체 확인
3. 시간설정

[hostname] clock timezone GMT add 9 --&gt; korea timezone 설정]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Thu, 31 Aug 2023 15:37:56 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[주니퍼 명령어 (Juniper Command) 정리]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=522]]></link>
			<description><![CDATA[<p><span style="font-size:14pt;"><span style="color:#0000ff;">1. 모드 변경</span><br /></span>UNIX shell : cli -&gt; operational mode</p>
<p>                 configure -&gt;configuration mode</p>
<p> </p>
<p><span style="font-size:14pt;color:#0000ff;">2. configuration 명령어</span><br />show<br />설정된 값 확인<br /><br />show | display set<br />설정된 명령어 상태로 보여준다<br /><br />run<br />Configuration mode에서 operation mode 명령어 사용시 사용<br /><br />rollback<br />명령어 취소<br /><br />commit<br />명령어 적용<br /><br />set system service ssh root-login allow<br />관리자 ssh 를 통해 원격접속 허용<br /><br />load factory-default<br />장치 초기화<br /><br />set system root-authentication plain-text password<br />비밀번호 지정(비밀번호가 만들어지지 않으면 commit 시 에러)<br /><br />set system host-name SRX300<br />hostname SRX300으로 변경<br /><br />set system service telnet<br />telnet 활성화<br /><br />show system service<br />system service 확인<br /><br />set interfaces ge-0/0/0/ unit 0 family inet address 192.168.1.1/24<br />L3장치의 port를 192.168.1.1 주소 등록<br /><br />show interface<br />interface 확인<br /><br />edit routing-options static<br />라우팅 테이블 정적할당<br /><br />set route 0/0 next-hop 10.10.10.10<br />0.0.0.0/0(디폴트 라우터) 의 다음 주소를 10.10.10.10으로 보낸다<br />*디폴트 라우터 : 경로를 지정해주지 않는 주소는 모두 이 주소로 가라는 뜻<br /><br />run show route<br />라우팅 테이블 보기<br /><br />set interfaces ge-0/0/0 disable<br />ge-0/0/0 인터페이스 끄기<br /><br />delete interfaces ge-0/0/0 disable<br />ge-0/0/0 인터페이스 켜기<br /><br />run show interfaces terse ge-0/0/0<br />ge-0/0/0 인터페이스 확인</p>
<p> </p>
<p><span style="font-size:14pt;"><span style="color:#0000ff;">3. show 명령어</span><br /></span></p>
<p><span style="font-size:14pt;"><span style="font-size:12pt;">&gt;show configuration<br />실행중인 컨피크 내용</span><br /></span></p>
<p>&gt;show ethernet-switching table<br /> MAC 테이블 보기 (맥주소 확인)</p>
<p>&gt;show ethernet-switching interfaces<br />L2인터페이스 확인 (STP Block 확인)</p>
<p>&gt;show route<br />라우팅 테이블 보기</p>
<p>&gt;show arp<br />arp 테이블 보기</p>
<p>&gt;show version<br />버전, 모델명, 호스트네임, OS 보기</p>
<p>&gt;show system uptime<br />업타임</p>
<p>&gt;show system alarms<br />알람보기</p>
<p>&gt;show system license <br />라이센스 확인</p>
<p>&gt;show system memory<br />메모리 정보 확인</p>
<p>&gt;show system process<br />실행중인 프로세서 확인</p>
<p>&gt;show system software<br />설치된 패키지 확인</p>
<p>&gt;show system boot-messages<br />마지막 부팅시 표시 메시지 확인</p>
<p>&gt;show system process extensive/summary<br />내부 프로세스 동작상태 확인</p>
<p>&gt;show system users<br />현재 시스템에 접속한 계정정보 <br />(request system logout user xxx : 강제 logout가능)<br />#show users <br />clear line (username) -유저 세션 지우기</p>
<p><strong>&gt;show chassis routing-engine</strong><br /><strong> 라우팅 엔진 정보</strong></p>
<p><strong><span style="font-size:12pt;">&gt;monitor interface traffic<br />장비 트래픽 모니터링</span></strong></p>
<p>&gt;show chassis hardware detail<br />하드웨어 상태, 시리얼, 장비명</p>
<p>&gt;show chassis environment<br />온도 , 팬 상태 확인</p>
<p>&gt;show interfaces terse<br />interface ip 및 접속상태 확인<br />show interfaces [인터페이스명]<br />개별 인터페이스 상태 보기<br />show interface [인터페이스명] extensive<br />개별 인터페이스 세부 정보 보기</p>
<p>&gt;show interfaces descriptions<br />interface 상태 확인</p>
<p>&gt;show interfaces extensive<br />인터페이스에 대한 전반적인 모니터링</p>
<p>&gt;show configuration<br />active configuration 확인<br />&gt;show configuration | display set active configuration<br />set 상태로 보는 방법<br />&gt;show configuration | display detail<br />set 세부 정보로 보는 방법<br /><br />&gt;show nto status<br />ntp 서버 동기화 정보</p>
<p>&gt;show log messages<br />log 확인 <br /># run show log messages | last 50<br />마지막 50줄 로그 확인<br /><br /></p>
<p>&gt; show ethernet-switching table<br />포워딩(next-hop) 테이블 확인</p>
<p>&gt;show chassis routing-engine</p>
<p> </p>
<p id="SE-e6123471-6fab-43a0-8196-e05d2c9452d1" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-e5682fe7-3807-455c-bbea-993c88dc4d91" class="se-fs- se-ff-">대역폭별로 인터페이스 용어가 다름</span></p>
<p id="SE-97a4aea1-6758-4d84-8bfc-2c368bc59fed" class="se-text-paragraph se-text-paragraph-align-"><span id="SE-cb4673b7-d69c-4463-9047-c8362ad972ab" class="se-fs- se-ff-">✓ ge : 1Gbps<br /></span><span id="SE-2f24acfe-f8a3-48cf-8090-5f2cbca7f25a" class="se-fs- se-ff-">✓ xe : 10Gbps<br /></span><span class="se-fs- se-ff-">✓ et : 40/100Gbps</span></p>
<p> </p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Mon, 21 Aug 2023 17:26:03 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[윈도우/리눅스 취약점 진단 스크립트 사용 관련 링크]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=521]]></link>
			<description><![CDATA[<p>리눅스 취약점 진단 쉘 스크립트  <a href="https://bob3rdnewbie.tistory.com/332" target="_blank" rel="noopener">https://bob3rdnewbie.tistory.com/332</a></p>
<p> </p>
<p>윈도우 취약점 체크 리스트 &amp; 안전진단 스크립트 제작  <a href="https://hyess.tistory.com/367" target="_blank" rel="noopener">https://hyess.tistory.com/36</a>7</p>
<p> </p>
<p>윈도우 진단 스크립트-Everyone 사용 권한을 익명 사용자에 적용 해제  <a href="https://hagsig.tistory.com/18" target="_blank" rel="noopener">https://hagsig.tistory.com/18</a></p>
<p> </p>
<p>윈도우 진단 스크립트-불필요한 계정 제거  <a href="https://hagsig.tistory.com/10" target="_blank" rel="noopener">https://hagsig.tistory.com/10</a></p>
<p> </p>
<p>윈도 우 Vista/7/2008  진단 스크립트  <a href="https://chosik.com/259" target="_blank" rel="noopener">https://chosik.com/259</a></p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Wed, 26 Jul 2023 12:30:28 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
				<item>
			<title><![CDATA[[ABKO 키보드 FAQ] 한/영 키가 변환되지 않습니다.]]></title>
			<link><![CDATA[https://angelbeat.kr/?kboard_content_redirect=518]]></link>
			<description><![CDATA[<p>- Alt 한영전환 [한영전환 안될경우 설치 해주세요]<br />키보드 우측 Alt, Ctrl 버튼을 각각 한/영, 한자로 사용해주는 레지스트리 입니다. 우측 Alt, Ctrl 로 각각 한/영, 한자 변환이 가능합니다.<br />설치 후 우측 Alt, Ctrl의 기능은 동작하지 않습니다.</p>
<p>- 설치방법 1. 압축파일 풀어서 폴더안에 있는 프로그램을 설치 해주신 후 재부팅을 하시면 한/영 전환 사용이 가능 합니다</p>
<p>다운로드 링크 : <a href="http://gofile.me/5HRbA/tOaj1Tj8k" rel="nofollow">http://gofile.me/5HRbA/tOaj1Tj8k</a></p>
<p> </p>
<p>출처 :  <a href="https://www.abko.co.kr/bbs/board.php?bo_table=faq&amp;wr_id=1&amp;sca=%ED%82%A4%EB%B3%B4%EB%93%9C&amp;device=pc">[키보드] 한/영 키가 변환되지 않습니다. &gt; 자주 묻는 질문 | ABKO</a></p>]]></description>
			<author><![CDATA[Ethan]]></author>
			<pubDate>Fri, 26 May 2023 22:33:03 +0000</pubDate>
			<category domain="https://angelbeat.kr/?kboard_redirect=13"><![CDATA[STUDY]]></category>
		</item>
			</channel>
</rss>