.. _cli:

CLI(Command Line Interface)
==============================

CLI 접속
--------

.. attention:: SSH 접속은 허용된 IP 에서만 접근 됩니다.
 특정IP의 SSH 접근 허용 설정하는 방법은 :ref:`default-settings-appliance` 을 참조합니다.

SSH 접속을 위한 전용프로그램이나 SSH를 지원하는 콘솔에서 정책서버, 네트워크센서에 연결할 수 있습니다.
여러분이 사용하는 SSH 접속 프로그램의 표준절차에 따라 정책서버, 네트워크센서 IP로 SSH 연결을 수행합니다.

CLI 명령어
------------

콘솔 모드에서는 기본 시스템 상태 및 지원 구성을 확인 할 수 있습니다.
이 문서에서는 콘솔 모드에서의 명령어와 명령어를 사용하는 방법에 대해 설명합니다.

기본 명령어
''''''''''''''

====================== =============================================================================
명령어	               	설명
====================== =============================================================================
enable                  글로벌 구성 모드 활성화
exit	                 	현재 모드를 종료합니다.
help	                 	사용 가능한 명령을 표시합니다.
history	               	사용 된 과거 명령 목록을 표시합니다.
quit	                 	 콘솔 모드를 종료합니다.
configure terminal	   	구성을 즉시 설정하는 글로벌 모드
configure batch	       		시스템 재시작 후 구성을 설정하는 글로벌 모드
clear arp	            	 시스템 ARP 항목을 삭제합니다.
clear screen	         	표시 화면을 초기화합니다.
clock set              	시스템 날짜와 시간을 설정합니다.
do backup	             	시스템 백업을 수행합니다.
do cdbackup	           		연결된 광학 디스크에 시스템 백업 수행합니다.
do cdrestore	         	연결된 광학 디스크에서 백업 파일 복원합니다.
do initdisk            	디스크를 초기화합니다.
do restore	          	 백업 파일에서 시스템 파일을 복원합니다.
do cert-reissuance          인증서를 재발급합니다.
geniup	               Genians Update Server가 지정 된 경우 최신 서버 파일로 업그레이드 진행합니다.
halt	                 	시스템 전원 종료 모드 준비
kill pid	             PID를 기반으로 프로세스를 종료합니다.
kill pname	           	이름을 기반으로 프로세스를 종료합니다.
ping	             	    원격 장치에 대한 IP 테스트를위한 ICMP 요청을 생성합니다.
reboot	              	 시스템을 재부팅합니다.
restart	system          OS를 다시 시작합니다.
shutdown service	     Genian ZTNA OS 서비스를 종료합니다.
traceroute	           IP의 라우팅 경로를 표시합니다.
show	                 	명령어 목록을 표시합니다.
====================== =============================================================================

보기 명령어
'''''''''''''''

====================== =============================================================================
명령어	              	 설명
====================== =============================================================================
show arp	             IP와 MAC 주소 매핑 표시합니다.
show backup	           	백업 파일 목록을 표시합니다.
show configuration	   현재 시스템 구성을 표시합니다.
Show cpu	             CPU 정보를 표시합니다.
show filesystem        어플라이언스의 파일 시스템을 표시합니다.
show hosts	           	호스트 목록을 표시합니다.
show interface	       	어플라이언스의 네트워크 인터페이스를 표시합니다.
show logging	         시스템 로깅 메시지 목록을 표시합니다.
show memory	          	 메모리 통계를 표시합니다.
show processes	      	 현재 실행중인 프로세스를 표시합니다.
show route	          	 현재 구성된 라우트를 표시합니다.
show superadmin	       	구성 된 관리자 계정 목록을 표시합니다.
show time	             	현재 시스템 시간을 표시합니다.
show uptime	           	시스템 가동 및 가동 시간 표시합니다.
show version	         현재 실행중인 시스템 버전을 표시합니다.
====================== =============================================================================

명령어 사용방법
''''''''''''''''''''

CLI 명령프롬프트에서 **?** 를 입력하면 사용 가능한 명령을 볼 수 있다.

**예시:**

.. code-block:: bash
 
 genian> ?
  exit                 Exit from current mode
  help                 Show available commands
  history              Show a list of previously run commands
  quit                 Exit from the console
  configure            Enter configuration mode
  clear                Clear Operation
  clock                Manage system clock
  disable              Turn off privileged command.
  do                   Do system command
  geniup               Upgrade system software
  halt                 Prepare to Power Shutdown mode
  kill                 Kill
  ping                 Send ICMP echo request
  reboot               Halt and perform a cold restart
  restart              Restart service
  show                 Show system information
  shutdown             Shutdown
  traceroute           Trace route information to destination


입력한 명령뒤에 바로 **?** 를 입력할 경우 처음 입력한 명령어의 기능설명을 볼 수 있다.

**예시:**

.. code-block:: bash

 genian> show?
  show                 Show system information

기본 명령어를 타이핑하고 뒤에 공간을 띄우고 **?** 를 입력하면 추가적으로 사용 가능한 명령을 볼 수 있다.

**예시:**

.. code-block:: bash

 genian> show ?
  arp                  ARP table
  backup               Database backup list
  configuration        Display the system configuration
  cpu                  Display cpu information
  dataserver           Display database server status
  dhcp                 Display the DHCP server information
  enforcer             Enforcer status and information
  filesystem           Filesystem statistics
  ha                   High Availability status
  hosts                Static host table
  interface            Network interface status and information
  logging              Display system local logging message
  memory               Memory statistics
  nodeinfo             Node status and information
  processes            Active process list
  route                Display system routing table
  superadmin           Display super administrator
  time                 Display the system clock
  uptime               Display system uptime
  version              System hardware and software information