반응형

정보보안기사 접수완료


준비할 것이 정말 많음...


계속 업데이트 할 예정


최종 업데이트 일 : 2014.03.05



1. /etc/fstab의 옵션 및 설정 방법


2. find 명령어 옵션 (특히 setuid, setgid, stickey bit 등)


3. Linux iptables 사용방법  / 윈도우 ipsec


4. lastlog, wtmp, last, lastb(btmp)


5. nessus(www.nessus.org), SARA(www-arc.com/sara), nikto2(www.cirt.net/nikto2)


6. 리눅스 시스템 무결성 점검 도구 : tripwire(www.tripwire.org), Fcheck


7. 접근 통제 및 로깅도구 : TCP_Wrapper


8. 스캔 탐지도구 : portsentry (www.rpmfind.net)


9. syslog 서버 : syslog-ng(리눅스), Datagram SyslogAgent 3.6(Syslogserver.com/download.html)


10. webalizer(www.webalizer.org)


11. 라우팅 에뮬레이터 

      참고 사이트 : http://sola99.tistory.com/151

반응형

'자격증 > 정보보안기사' 카테고리의 다른 글

Windows IPSEC 설정 방법  (0) 2014.03.21
리눅스 방화벽 프로그램 iptables 설정  (0) 2014.03.21
find 명령어 옵션  (0) 2014.03.21
/etc/fstab 설정 및 옵션  (1) 2014.03.05
라우터 시뮬레이터 프로그램  (0) 2014.03.05
반응형


SSH Java client GUI for Unix, Linux administration and monitoring


리눅스 시스템 관리 및 모니터링 툴

총론.... (아... 세시간동안 캡쳐 뜨고 설치 및 사용 해봤으나.... 초보를 위한 툴임...)

시험기간 5년 동안 무료 (http://sshadmincontrol.com/download-admin-tool)
(사용자 등록을 하면 등록된 메일로 

** 전제조건 jre 1.6 이상 설치 필요(monkey 1.2.0 설치하고 난 뒤 JRE가 미설치 되어 있으면 안내페이지가 뜸)



특징

  • Remote Desktop Win (RDP)
  • PuTTY(포함)
  • WinSCP (포함)
  • Wireshark (별도 다운로드)
  • 당신의 서버들을 원격으로 제어 및 통제
  • 자동 방화벽 규칙 체크 : 엑셀로 결과 출력 
  • 여러서버들에게 동시에 유닉스 명령어를 다양하게 실행 
  • 당신의 서버들의 CPU와 메모리 대시보드 화면을 실시간으로 원격 모니터링 
  • 구글 대화 
  • NC Test
  • 네트워크 대역폭과 시스템 모니터링

화면(기능 특징 나열)








출처 : http://sshadmincontrol.com/

http://sourceforge.net/projects/sshadmincontrol/?source=directory




** 인터넷을 통한 매뉴얼 검색 : http://sshadmincontrol.com/documentation


1. 사용자 등록하기


    - 웹 사이트 : http://sshadmincontrol.com/download-admin-tool


    - 아래에 보듯이 붉은 별 ( * ) 표시를 모두 입력해야 하나 크롬 or IE에서도 아래와 같이 깨져 있어 정상적으로 입력화면이 인식되지 않는다... 따라서 * 표시를 클릭하여 해당하는 칸에 focus가 되면 입력한다.

    



2. 이메일을 통한 사용자 등록(5년 동안 무료로 사용 가능)



3. 설치된 프로그램을 통한 실행

    - 설치는 어렵지 않기 때문에 Pass

    - 설치된 아래의 아이콘을 실행(HelperMonkeyTool 실행)





4. 첫 실행

   

   - 90일 트라이얼 라이센스로 설치되었다는 안내 화면 (90이내로 등록하면 5년 무료 사용 가능... 그 이후는.. 잘...)




5. 서버 등록화면


- ServerName : 서버명으로 적음

- Address : 실제 서버 주소

- User : 접속할 사용자 계정

- Password : User에 맞는 암호

- Protocol : 사용 프로토콜 ( 기본적 22 port : ssh / 23 port : telnet ) 

   ※ 서버 환경을 변경하여 포트가 상이할 수 있으므로 담당자에게 반드시 확인 필요

- Domain : 도메인

- Environment : 환경

- Port : 사용 포트


위의 정보를 모두 입력 후 해당 줄에 우클릭을 눌러 Test Connection을 클릭하면 Server Name 앞에 정상적일 경우 v 표시가 뜨면, 만약 연결이 안될 시에는 X 표시가 떠 확인 가능함.





6. SSH 접근


   - 해당 서버에 우클릭을 선택하여 (위 화면 참조) Open Putty를 실행하면 아래와 같이 putty 접속화면이 뜸


      




7. SCP (Secure Copy) 사용 해 보기


  - SCP 명령을 통해 파일 복사하기

  - 화면상에 SCP를 클릭하고 (처음 실행시 Yes를 한번 눌러준다)



- 위의 SCP 클릭한 화면





- SCP 상에 한글 깨짐(폰트 설정) 현상시 환경 설정에서 글꼴 변경을 통해 해결 하기

 

WinSCP기동->Envirment->UTF-8 encoding for filename

Auto 를 On으로 변경



8. 모니터링 하기(네트워크 모니터링)


   - Bandwidth Monitor





- 모니터링 환경 설정으로 Default는 기본으로 1분 단위로 모니터링 이며, Aggressive는 1초 단위로 모니터링 하는 것임

   > 크리티컬 하게 시스템 장애시 Aggressive으로 설정 뒤 Set Properties 클릭 





-  eth1 네트워크에 대한 NIC 네트워크 대역 폭, CPU 등 정보를 표기 함

- Extend View 클릭을 통해 전체를 더 상세하게 조회 가능함



- 시스템의 상태를 전체적인 GUI 형태로 조회함




8. 모니터링 하기(ADV 모니터링)


- ADV Monitor을 클릭하여 결과를 엑셀 파일을 저장한뒤 RECORD Charting 기능을 통해 GUI 결과를 조회할 수 있음


- ADV Monitor -> Aggressive -> Set Properties 


- 좌측 붉은 색 RECORD (CPU/RAM)을 클릭하면 Aggressive 설정에 지정된 시간 단위로 파일로 저장

 

- 우측에 흰 RECORD을 누르면 저장된 파일의 디렉토리가 조회 가능함


- 좌측 붉은 색 RECORD 클릭



- RECORD 한뒤 서버에서 PING을 실행하여 네트워크 및 CPU 부하 발생 뒤 STOP을 눌러 멈춤



- RECORD 한뒤 서버에서 PING을 실행하여 네트워크 및 CPU 부하 발생 뒤 STOP을 눌러 멈춤

- RECORD Charting을 눌러 저장된 GUI을 조회





- 우측 위에 파일 선택(여러개 캡쳐한 경우)

- Refactor에서 Mavg, CPU, RAM 값 선택 가능, 시간(Secords, Minutes, Hours, Days)을 선택하여 기록된 정보를 기준으로 대쉬 보드를 조회 가능함



9. 모니터링 하기(디스크 모니터링)

- DISK Monitor을 눌러 디스크 공간 조회 가능



- 디스크 공간 조회 




반응형

'UTILITY' 카테고리의 다른 글

정규식 방법  (0) 2014.06.17
Process Hacker  (0) 2014.03.26
secureCRT 대신 putty 사용하기 (멀티탭 관련)  (0) 2014.03.01
윈도우 빠른 파일 검색 및 내용 검색  (1) 2014.02.11
Virtual BOX SATA 방식의 XP  (0) 2013.07.23
반응형


putty 에서도 멀티탭을 지원하는 프로그램을 사용 가능하다.


여러개가 있지만


크게 두 가지가 좋다고(아래 참고 사이트에서) 하여


정리한다


> 이 제품은 업그레이드가 더 이상 되지 않는지... 비추천

-  PuTTY Connection Manager

   관련 링크 : http://www.thegeekstuff.com/2009/03/putty-extreme-makeover-using-putty-connection-manager/

    

puttycm.zip

 


> 이 제품은 꾸준히 업그레이드가 되고 있다고 함 ~(2014.03.01 기준)

putty-nd

   

putty_nd3.1.zip


기본 기능은 동일하고


다른 것보다 secureCRT의 chat 모드처럼 여러개의 창에 동시 입력하는 기능을 3.x 버전대에서 지원한다고 함...






특징비교

 트레이
최소화
기능

PuTTY 에이전트 기능 

(멀티탭)

핫키

포커스

reorder
Putty CMY (broke)YYNY
SuperPuttyY (broke)YNNN
mRemoteNGYYNNN
putty-ndNYYYN
MTPuTTYNYYYN







참고사이트  

- http://reznoa.wo.tc/blog/1201?category=4

- http://solutionencoding.blogspot.kr/2012/07/tabbed-ssh-in-windows-7.html

반응형

'UTILITY' 카테고리의 다른 글

Process Hacker  (0) 2014.03.26
SSH System Administration Tool  (0) 2014.03.01
윈도우 빠른 파일 검색 및 내용 검색  (1) 2014.02.11
Virtual BOX SATA 방식의 XP  (0) 2013.07.23
부팅 테스트 프로그램 MobaLiveCD  (0) 2013.03.27
반응형


1. 빠른 파일 검색


사이트 : http://www.voidtools.com/

프로그램명 : everything



Everything-1.2.1.371.exe





설치 후 실행 화면



TOOLS -> OPTIONS -> HTTP 탭


사용하는 포트 정보 설정 가능


TOOLS -> Start HTTP Server 를 통해 웹 서비스 가능


즉, 웹을 통해 찾을려는 파일등을 쉽게 검색 가능함





2. 파일 내용 검색


사이트 : http://astrogrep.sourceforge.net/

프로그램명 : Astrogrep



AstroGrep_v4.3.0.zip


: 정규 표현식 (. 표준 마이크로 소프트 닷넷 정규식 사용 - 빠른 참조 ) 
동시 여러 파일 형식 - 
- 재귀 디렉토리 검색 
- 위하고 검색 아래 식을 줄을 선택 "컨텍스트"기능 
- 가장 최근에 사용을 검색 경로에 대한 목록 
다소 다양한 인쇄 옵션 - 
- 당신의 선택의 편집기를 사용하여 파일을 열려면 두 번 클릭 
- 상점 가장 최근에 사용한 파일 이름 및 검색 식 
- 단어 단위 만 
- 구문 highlighing 

- 무료 및 오픈 소스의 무료


MS 계열에 정규식 표현 가능...




Regular Expression Language - Quick Reference

.NET Framework 4.5
85 out of 96 rated this helpful Rate this topic

A regular expression is a pattern that the regular expression engine attempts to match in input text. A pattern consists of one or more character literals, operators, or constructs. For a brief introduction, see .NET Framework Regular Expressions.

Each section in this quick reference lists a particular category of characters, operators, and constructs that you can use to define regular expressions:

The backslash character (\) in a regular expression indicates that the character that follows it either is a special character (as shown in the following table), or should be interpreted literally. For more information, see Character Escapes in Regular Expressions.

Escaped character

Description

Pattern

Matches

\a

Matches a bell character, \u0007.

\a

"\u0007" in "Error!" + '\u0007'

\b

In a character class, matches a backspace, \u0008.

[\b]{3,}

"\b\b\b\b" in "\b\b\b\b"

\t

Matches a tab, \u0009.

(\w+)\t

"item1\t", "item2\t" in "item1\titem2\t"

\r

Matches a carriage return, \u000D. (\r is not equivalent to the newline character, \n.)

\r\n(\w+)

"\r\nThese" in "\r\nThese are\ntwo lines."

\v

Matches a vertical tab, \u000B.

[\v]{2,}

"\v\v\v" in "\v\v\v"

\f

Matches a form feed, \u000C.

[\f]{2,}

"\f\f\f" in "\f\f\f"

\n

Matches a new line, \u000A.

\r\n(\w+)

"\r\nThese" in "\r\nThese are\ntwo lines."

\e

Matches an escape, \u001B.

\e

"\x001B" in "\x001B"

\ nnn

Uses octal representation to specify a character (nnn consists of two or three digits).

\w\040\w

"a b", "c d" in

"a bc d"

\x nn

Uses hexadecimal representation to specify a character (nn consists of exactly two digits).

\w\x20\w

"a b", "c d" in

"a bc d"

\c X

\c x

Matches the ASCII control character that is specified by X or x, where X or x is the letter of the control character.

\cC

"\x0003" in "\x0003" (Ctrl-C)

\u nnnn

Matches a Unicode character by using hexadecimal representation (exactly four digits, as represented by nnnn).

\w\u0020\w

"a b", "c d" in

"a bc d"

\

When followed by a character that is not recognized as an escaped character in this and other tables in this topic, matches that character. For example, \* is the same as \x2A, and \. is the same as \x2E. This allows the regular expression engine to disambiguate language elements (such as * or ?) and character literals (represented by \* or \?).

\d+[\+-x\*]\d+\d+[\+-x\*\d+

"2+2" and "3*9" in "(2+2) * 3*9"

Back to top

A character class matches any one of a set of characters. Character classes include the language elements listed in the following table. For more information, see Character Classes in Regular Expressions.

Character class

Description

Pattern

Matches

[ character_group ]

Matches any single character in character_group. By default, the match is case-sensitive.

[ae]

"a" in "gray"

"a", "e" in "lane"

[^ character_group ]

Negation: Matches any single character that is not in character_group. By default, characters in character_group are case-sensitive.

[^aei]

"r", "g", "n" in "reign"

[ first - last ]

Character range: Matches any single character in the range from first to last.

[A-Z]

"A", "B" in "AB123"

.

Wildcard: Matches any single character except \n.

To match a literal period character (. or \u002E), you must precede it with the escape character (\.).

a.e

"ave" in "nave"

"ate" in "water"

\p{ name }

Matches any single character in the Unicode general category or named block specified by name.

\p{Lu}

\p{IsCyrillic}

"C", "L" in "City Lights"

"Д", "Ж" in "ДЖem"

\P{ name }

Matches any single character that is not in the Unicode general category or named block specified by name.

\P{Lu}

\P{IsCyrillic}

"i", "t", "y" in "City"

"e", "m" in "ДЖem"

\w

Matches any word character.

\w

"I", "D", "A", "1", "3" in "ID A1.3"

\W

Matches any non-word character.

\W

" ", "." in "ID A1.3"

\s

Matches any white-space character.

\w\s

"D " in "ID A1.3"

\S

Matches any non-white-space character.

\s\S

" _" in "int __ctr"

\d

Matches any decimal digit.

\d

"4" in "4 = IV"

\D

Matches any character other than a decimal digit.

\D

" ", "=", " ", "I", "V" in "4 = IV"

Back to top

Anchors, or atomic zero-width assertions, cause a match to succeed or fail depending on the current position in the string, but they do not cause the engine to advance through the string or consume characters. The metacharacters listed in the following table are anchors. For more information, see Anchors in Regular Expressions.

Assertion

Description

Pattern

Matches

^

The match must start at the beginning of the string or line.

^\d{3}

"901" in

"901-333-"

$

The match must occur at the end of the string or before \n at the end of the line or string.

-\d{3}$

"-333" in

"-901-333"

\A

The match must occur at the start of the string.

\A\d{3}

"901" in

"901-333-"

\Z

The match must occur at the end of the string or before \n at the end of the string.

-\d{3}\Z

"-333" in

"-901-333"

\z

The match must occur at the end of the string.

-\d{3}\z

"-333" in

"-901-333"

\G

The match must occur at the point where the previous match ended.

\G\(\d\)

"(1)", "(3)", "(5)" in "(1)(3)(5)[7](9)"

\b

The match must occur on a boundary between a \w (alphanumeric) and a \W (nonalphanumeric) character.

\b\w+\s\w+\b

"them theme", "them them" in "them theme them them"

\B

The match must not occur on a \b boundary.

\Bend\w*\b

"ends", "ender" in "end sends endure lender"

Back to top

Grouping constructs delineate subexpressions of a regular expression and typically capture substrings of an input string. Grouping constructs include the language elements listed in the following table. For more information, see Grouping Constructs in Regular Expressions.

Grouping construct

Description

Pattern

Matches

( subexpression )

Captures the matched subexpression and assigns it a one-based ordinal number.

(\w)\1

"ee" in "deep"

(?< name >subexpression)

Captures the matched subexpression into a named group.

(?<double>\w)\k<double>

"ee" in "deep"

(?< name1 - name2 >subexpression)

Defines a balancing group definition. For more information, see the "Balancing Group Definition" section in Grouping Constructs in Regular Expressions.

(((?'Open'\()[^\(\)]*)+((?'Close-Open'\))[^\(\)]*)+)*(?(Open)(?!))$

"((1-3)*(3-1))" in "3+2^((1-3)*(3-1))"

(?: subexpression)

Defines a noncapturing group.

Write(?:Line)?

"WriteLine" in "Console.WriteLine()"

(?imnsx-imnsx:subexpression)

Applies or disables the specified options within subexpression. For more information, seeRegular Expression Options.

A\d{2}(?i:\w+)\b

"A12xl", "A12XL" in "A12xl A12XL a12xl"

(?= subexpression)

Zero-width positive lookahead assertion.

\w+(?=\.)

"is", "ran", and "out" in "He is. The dog ran. The sun is out."

(?! subexpression)

Zero-width negative lookahead assertion.

\b(?!un)\w+\b

"sure", "used" in "unsure sure unity used"

(?<= subexpression)

Zero-width positive lookbehind assertion.

(?<=19)\d{2}\b

"99", "50", "05" in "1851 1999 1950 1905 2003"

(?<! subexpression)

Zero-width negative lookbehind assertion.

(?<!19)\d{2}\b

"51", "03" in "1851 1999 1950 1905 2003"

(?> subexpression)

Nonbacktracking (or "greedy") subexpression.

[13579](?>A+B+)

"1ABB", "3ABB", and "5AB" in "1ABB 3ABBC 5AB 5AC"

Back to top

A quantifier specifies how many instances of the previous element (which can be a character, a group, or a character class) must be present in the input string for a match to occur. Quantifiers include the language elements listed in the following table. For more information, see Quantifiers in Regular Expressions.

Quantifier

Description

Pattern

Matches

*

Matches the previous element zero or more times.

\d*\.\d

".0", "19.9", "219.9"

+

Matches the previous element one or more times.

"be+"

"bee" in "been", "be" in "bent"

?

Matches the previous element zero or one time.

"rai?n"

"ran", "rain"

{ n }

Matches the previous element exactly n times.

",\d{3}"

",043" in "1,043.6", ",876", ",543", and ",210" in "9,876,543,210"

{ n ,}

Matches the previous element at least n times.

"\d{2,}"

"166", "29", "1930"

{ n , m }

Matches the previous element at least n times, but no more than m times.

"\d{3,5}"

"166", "17668"

"19302" in "193024"

*?

Matches the previous element zero or more times, but as few times as possible.

\d*?\.\d

".0", "19.9", "219.9"

+?

Matches the previous element one or more times, but as few times as possible.

"be+?"

"be" in "been", "be" in "bent"

??

Matches the previous element zero or one time, but as few times as possible.

"rai??n"

"ran", "rain"

{ n }?

Matches the preceding element exactly n times.

",\d{3}?"

",043" in "1,043.6", ",876", ",543", and ",210" in "9,876,543,210"

{ n ,}?

Matches the previous element at least n times, but as few times as possible.

"\d{2,}?"

"166", "29", "1930"

{ n , m }?

Matches the previous element between n and m times, but as few times as possible.

"\d{3,5}?"

"166", "17668"

"193", "024" in "193024"

Back to top

A backreference allows a previously matched subexpression to be identified subsequently in the same regular expression. The following table lists the backreference constructs supported by regular expressions in the .NET Framework. For more information, see Backreference Constructs in Regular Expressions.

Backreference construct

Description

Pattern

Matches

\ number

Backreference. Matches the value of a numbered subexpression.

(\w)\1

"ee" in "seek"

\k< name >

Named backreference. Matches the value of a named expression.

(?<char>\w)\k<char>

"ee" in "seek"

Back to top

Alternation constructs modify a regular expression to enable either/or matching. These constructs include the language elements listed in the following table. For more information, see Alternation Constructs in Regular Expressions.

Alternation construct

Description

Pattern

Matches

|

Matches any one element separated by the vertical bar (|) character.

th(e|is|at)

"the", "this" in "this is the day. "

(?( expression )yes | no )

Matches yes if the regular expression pattern designated by expression matches; otherwise, matches the optional nopart. expression is interpreted as a zero-width assertion.

(?(A)A\d{2}\b|\b\d{3}\b)

"A10", "910" in "A10 C103 910"

(?( name ) yes |no )

Matches yes if name, a named or numbered capturing group, has a match; otherwise, matches the optional no.

(?<quoted>")?(?(quoted).+?"|\S+\s)

Dogs.jpg, "Yiska playing.jpg" in "Dogs.jpg "Yiska playing.jpg""

Back to top

Substitutions are regular expression language elements that are supported in replacement patterns. For more information, see Substitutions in Regular Expressions. The metacharacters listed in the following table are atomic zero-width assertions.

Character

Description

Pattern

Replacement pattern

Input string

Result string

$ number

Substitutes the substring matched by group number.

\b(\w+)(\s)(\w+)\b

$3$2$1

"one two"

"two one"

${ name }

Substitutes the substring matched by the named group name.

\b(?<word1>\w+)(\s)(?<word2>\w+)\b

${word2} ${word1}

"one two"

"two one"

$$

Substitutes a literal "$".

\b(\d+)\s?USD

$$$1

"103 USD"

"$103"

$&

Substitutes a copy of the whole match.

(\$*(\d*(\.+\d+)?){1})

**$&

"$1.30"

"**$1.30**"

$`

Substitutes all the text of the input string before the match.

B+

$`

"AABBCC"

"AAAACC"

$'

Substitutes all the text of the input string after the match.

B+

$'

"AABBCC"

"AACCCC"

$+

Substitutes the last group that was captured.

B+(C+)

$+

"AABBCCDD"

AACCDD

$_

Substitutes the entire input string.

B+

$_

"AABBCC"

"AAAABBCCCC"

Back to top

You can specify options that control how the regular expression engine interprets a regular expression pattern. Many of these options can be specified either inline (in the regular expression pattern) or as one or more RegexOptions constants. This quick reference lists only inline options. For more information about inline and RegexOptions options, see the article Regular Expression Options.

You can specify an inline option in two ways:

  • By using the miscellaneous construct (?imnsx-imnsx), where a minus sign (-) before an option or set of options turns those options off. For example, (?i-mn) turns case-insensitive matching (i) on, turns multiline mode (m) off, and turns unnamed group captures (n) off. The option applies to the regular expression pattern from the point at which the option is defined, and is effective either to the end of the pattern or to the point where another construct reverses the option.

  • By using the grouping construct (?imnsx-imnsx:subexpression), which defines options for the specified group only.

The .NET Framework regular expression engine supports the following inline options.

Option

Description

Pattern

Matches

i

Use case-insensitive matching.

\b(?i)a(?-i)a\w+\b

"aardvark", "aaaAuto" in "aardvark AAAuto aaaAuto Adam breakfast"

m

Use multiline mode. ^ and $ match the beginning and end of a line, instead of the beginning and end of a string.

For an example, see the "Multiline Mode" section in Regular Expression Options.

n

Do not capture unnamed groups.

For an example, see the "Explicit Captures Only" section inRegular Expression Options.

s

Use single-line mode.

For an example, see the "Single-line Mode" section in Regular Expression Options.

x

Ignore unescaped white space in the regular expression pattern.

\b(?x) \d+ \s \w+

"1 aardvark", "2 cats" in "1 aardvark 2 cats IV centurions"

Back to top

Miscellaneous constructs either modify a regular expression pattern or provide information about it. The following table lists the miscellaneous constructs supported by the .NET Framework. For more information, see Miscellaneous Constructs in Regular Expressions.

Construct

Definition

Example

(?imnsx-imnsx)

Sets or disables options such as case insensitivity in the middle of a pattern. For more information, see Regular Expression Options.

\bA(?i)b\w+\b matches "ABA", "Able" in "ABA Able Act"

(?# comment)

Inline comment. The comment ends at the first closing parenthesis.

\bA(?#Matches words starting with A)\w+\b

# [to end of line]

X-mode comment. The comment starts at an unescaped # and continues to the end of the line.

(?x)\bA\w+\b#Matches words starting with A

Back to top


반응형
반응형


리눅스 시스템에서 TAR를 통한 증분 백업 및 복구 하기


예를 들어...


파일 업로드 하는 디렉토리를 백업 받는데... 서비스 다운 시간을 최소화 할려고 할 때는


일차로 압축해서 만들고


서비스 다운 후 증분 내역 압축하여 적용함.


================================= 백업 ======================================


1. 백업


  - 대상 디렉토리 : /tmp/test


  # tar cvfzP /tmp/20131218.tar.gz -g /tmp/snap_test.snap /tmp/test

         a.옵션    b.생성 파일명            c. 스냅샷 옵션           d.대상 디렉토리

a. 옵션 ==> c : 생성, v : 묶이는 파일 보여지게, z : gzip 압축, P : 절대경로로 압축

b. 생성 파일명 ==> 생성될 파일위치와 파일명

c. 옵션 ==> -g : snap 파일을 만듬(증분 확인하기 위해 기존 파일들의 정보를 가지는 파일)

d. 대상 디렉토리 ==> 묶을 디렉토리


2. 증분 백업


  # tar cvfzP /tmp/20131218_inc.tar.gz -g /tmp/snap_test.snap /tmp/test


옵션은 위와 동일하지만, -g 옵션을 통한 snap 파일을 확인하여 증분된 내역만 20131218_inc.tar.gz에 만들어 짐



================================= 복구 ======================================


1. 백업 받은 파일 풀기


- 원래 디렉토리에 풀기 ( P 옵션 주면 원래 위치에 풀리며 P 옵션을 주지 않으면 현재 폴더 밑으로 생성됨)


# tar xvfzP /tmp/20131218.tar.gz


   c 의 생성 옵션대신 x의 압축 풀기 옵션 적용


2. 증분 백업 파일 압축 풀기


# tar xvfzP /tmp/20131218_inc.tar.gz -g /tmp/snap/snap_test.snap



간단하게 사용하면 좋다


다만, 속도를 올리기 위해 v 옵션을 빼면 더욱 좋다



반응형

'사업' 카테고리의 다른 글

공공 기관 관련 표준 가이드 정보  (0) 2019.04.10
반응형


hp ux 장비에서 ndd 설정하기



- 값 조회

ndd -get /dev/sockets socket_udp_rcvbuf_default

ndd -get /dev/tcp tcp_smallest_anon_port

ndd -get /dev/udp udp_smallest_anon_port

ndd -get /dev/tcp tcp_conn_request_max

ndd -get /dev/tcp tcp_syn_rcvd_max


- 값 설정

ndd -set /dev/sockets socket_udp_rcvbuf_default 1310720

ndd -set /dev/tcp tcp_smallest_anon_port        9000

ndd -set /dev/udp udp_smallest_anon_port        9000

ndd -set /dev/tcp tcp_conn_request_max          10240

ndd -set /dev/tcp tcp_syn_rcvd_max              1024



- 리부팅 후에도 적용하도록 환경 파일 설정(100 ~ 104 번은 중복되지 않도록)

/etc/rc.config.d/nddconf 


TRANSPORT_NAME[100]=sockets

NDD_NAME[100]=socket_udp_rcvbuf_default

NDD_VALUE[100]=1310720


TRANSPORT_NAME[101]=tcp

NDD_NAME[101]=tcp_smallest_anon_port

NDD_VALUE[101]=9000


TRANSPORT_NAME[102]=udp

NDD_NAME[102]=udp_smallest_anon_port

NDD_VALUE[102]=9000


TRANSPORT_NAME[103]=tcp

NDD_NAME[103]=tcp_conn_request_max

NDD_VALUE[103]=10240


TRANSPORT_NAME[104]=tcp

NDD_NAME[104]=tcp_syn_rcvd_max

NDD_VALUE[104]=1024

반응형
반응형


오라클에서 


EXP -> IMP 하는 방식에는


exp 테이블 스키마 추출

exp id/passwd file=./temp.dmp log=./log.log compress=n rows=n


 imp id/passwd indexfile=create.sql full=y 옵션을 주어


입력하지는 않고 create.sql을 만들어


스크립트 형태로 수동으로 돌릴 수 있다.


다만,


그냥 import 했을 때는


커져버린 초기값을 만나게 되는데...


이것을 수정하는 방법은


initial, next 값 수정!


- 테이블 스페이스 생성시 local로 생성해야만 함 ~

확인 쿼리

SELECT initial_extent, next_extent, pct_increase,

            extent_management, allocation_type

     FROM DBA_TABLESPACES

     WHERE tablespace_name=upper('테이블스페이스명');


- initial 값 수정


1. 분석하기 (emp1 테이블 분석)


analyze table emp1 compute statistics;


2. 분석을 기준으로 사용하지 않는 불럭 초기화

alter table emp1 deallocate unused keep 0;


3. 블럭 사이즈  확인 하는 법

select table_name, initial_extent from user_tables;


** 다른 방법


1. alter and move the table to another tablespace. e.g. (다른 테이블 스페이스로 옮기기)

ALTER TABLE MY_TABLE MOVE TABLESPACE ANOTHER_TABLESPLACE STORAGE (INITIAL 2M NEXT 2M PCTINCREASE 0);

2. alter and move the table back to the original tablesace with the desired initial extent size, e.g. (원 테이블 스페이스에 옮기기)

ALTER TABLE MY_TABLE MOVE TABLESPACE ORIGINAL_TABLESPACE STORAGE (INITIAL 256M NEXT 2M PCTINCREASE 0);



- next 값 수정

위와 동일하며


alter table emp1 storage(next 10M);


으로 가능함 

반응형

'Database > ORACLE' 카테고리의 다른 글

도스 모드 sql 실행 bat 배치 만들기  (0) 2016.03.25
ndd 설정하기  (0) 2013.09.23
오라클 미디어 팩 신청하기  (0) 2013.01.31
one port multi listener 설정 하기  (0) 2012.12.24
DBMS_XPLAN 정보 조회  (0) 2012.09.07
반응형

윈도우즈 패스워드 초기화 프로그램


출처 : http://snoopybox.co.kr/1634


GPL 기반의 무료 프로그램으로 회사에서도 OK !


Offline NT Password & Registry Editor
http://pogostick.net/~pnh/ntpasswd/


1. cd용 버전

cd110511.iso


2. usb용 버전

usb110511.zip



2번의 파일을 압축 풀고 


j:\syslinux.exe -ma j:


J는 usb 드라이브 명입니다.


cmos에 들어가서 usb로 부팅하기 선택


처음 화면에서는 그냥 엔터 형태로 진행


보통 하드디스크 100mb의 예약 공간은 아니니


/dev/hda2 와 같은 2번째 위치를 선택합니다.(c:를 기준으로...)


나머지는 영어 읽어 가면서 찬찬히 ~

반응형
반응형

 

위염_설사관련 뜸 뜨는 혈자리.hwp

 

 

신궐, 중완, 관원을 하루 3장씩 뜨면 효과가 있다.

(늦어도 일주일이면 효과가 나타남~)

 

 

중완(中脘)

일명 태창(太倉)이라고도 하는데 족양명위경의 모혈이다. 배꼽에서 4치 위에 있다

중완혈은 명치 끝에서 배꼽까지 가운데 아래위가 각각 4치씩이다.

 

 

 

신궐(神闕)

일명 기합(氣合)이라고도 하는데 배꼽 가운데 있다. 침은 놓지 말아야 하며 뜸은 100장을 뜬다

침은 놓지 말아야 하는데 만일 침을 놓아 배꼽 가운데가 헐어 터져서 그곳으로 똥이 나오게 되면 죽는다.

침을 놓으면 수고병(水蠱病)이 생기어 죽는다.

중풍으로 사람을 알아보지 못할 때에는 뜸을 100-500장까지 뜨면 곧 깨난다.

 

 

 

관원(關元)

일명 단전(丹田), 태중극(太中極)이라고도 하는데 수태양소장경의 모혈이다.

 

 

 

 

양구혈

 

 

 

음시혈

 

 

 

반응형
반응형


출처 : http://emple.net/appl_util/21500386

작성자 : 보디가루 님


우선 어플을 3개나 준비했습니다. ^^

조금은 귀잖은 설정도 해주어야

밖에서도 볼수있습니다.

 

1. ip Wedcam

    이라는 폰으로 실시간 영상(cctv)을 찍어서 와이파이로 뿌려주는 어플입니다.

 

사용법/설명   http://blog.daum.net/limsungy/117

 

 

2. ip Cam viewer pro

    이건 ip Wedcam 으로 찍힌 영상으로 폰으로 받아 보는 어플입니다.

    추가 기능 플레쉬 온오프 ip Wedcam 의 소리를 전달 받을수 있음 ??ㅋㅋ

    쉽게 말해 소리와 영상을 전달 받습니다.

 

사용법/설명

  http://lireview.tistory.com/1951

 

 

3. tinyCam monitor pro

   이건 위 어플과 같이 영상을 받고 ..또...

   내가 말하는 소리를 ip Wedcam 으로 전송해 줍니다.

   내가 폰으로 하는 말을 저쪽에 전달하는 거지요..^^

 

사용법/설명

   http://blog.kch.wo.tc/1354

 

 

자..이제 이것들만 있어도.. 같은 와이파이 망내서선 찍고 볼수 있습니다.

 

이제 외출 해야죠.. 밖에서 보는건 조금의 설정이 필요합니다.

 

일일이 다 설명하기 힘드니까.. ^^ 블러거 님들의 도움을 받겠습니다.

 

 

 

 

포트 포워딩

 

ip Wedcam 의 포트를 외부로 이여주는 설정 입니다.

 

http://fulldrunken.tistory.com/106

 

 

DDNS 설정 유동ip인 내 공유기 주소를   XXXXX.iptime.org 의 형태로..도메인화 하는겁니다.

 

http://blog.naver.com/dmstnr187?Redirect=Log&logNo=10125198091

 

이거 2가지를 하시면 밖에서도..cctv보다 더좋은 화질로.. 내가 볼수도 들을수도 내말을 전달할수도 있습니다.

 

 

뽀너스.... iptime wol 기능을 쓰시는 분들은 설정이 다되어 있으니까.. 쉬울 껍니다.

여기까지 하셨으면 고생하신김에 ..

 

WOL 기능 밖에서 내컴터를 켤수 있는 기능 마켓에서 iptime wol 어플 받으셔서 사용하시면 편합니다.

 

http://pairh.blog.me/10129648958 

 

 

헉... 쓰다 보니 ㅡㅡ 무지 어럽게 되어 버렸네요..

 

그림도 없고.. 저질 글이 되어 버린듯 ..ㅜㅜ

 

죄송합니다. 나중에 시간많을때는 좀더 이뿌고 성의 있게 쓸께요...ㅜㅜ


암튼 도움 되시는 분들에게 도움 되실듯 애견 / 아기들 키우스는 분들에게 짱~입니다.

 

여러분의 추천과 답글은 여러분과 저에게 포인트와 힘이 됩니다. ^^

반응형

+ Recent posts