Web UI를 이용한 장치 확인 및 구성

1. 토폴로지망 

2. 구현된 Router에 NSO가 접근하기 위한 key

crypto key generate rsa
1024

3. NSO 실행 및 접속

## Docker file의 경우
docker exec -it {container ID} bash

## ncs 실행
source /home/NSO/nso-5.3/ncsrc
cd /home/NSO/ncs-run
ncs

(ncs == 현재 실행 중인 파일 or daemon을 말함)
## 접속
ncs_cli -u admin
or
ssh admin@192.168.1.1 -p 2024

4. NSO 연결을 위한 Device 구성

  • cli 명령어를 통한 방법
    admin@ncs> switch cli
    admin@ncs# config
    admin@ncs(config)# devices authgroups group lab default-map remote-name nso remote-password 123 remote-secondary-password 123
    admin@ncs(config)# devices device P01
    admin@ncs(config-device-P01)# address 10.10.10.1 port 22
    admin@ncs(config-device-P01)# device-type cli ned-id cisco-ios-cli-3.8 protocol ssh
    admin@ncs(config-device-P01)# state admin-state unlocked
    admin@ncs(config-device-P01)# authgroup lab
    admin@ncs(config-device-P01)# top
    admin@ncs(config)# commit dry-run outformat xml 
    admin@ncs(config)# commit
    admin@ncs(config-device-P01)# commit
    admin@ncs(config)# devices fetch-ssh-host-keys 
    admin@ncs(config)# devices sync-from

  • Web UI를 통한 방법
    1. add device 버튼을 통해 device 추가
    2. group, 주소 추가
    3. device type 및 state 변경


    4. commit
    5. fetch-ssh-key
    6. 결과

5. 실시간 연동

## sync-form 버튼 클릭 이후 device를 들어가면 디바이스의 최신 상태 확인 가능
## NSO에 연결된 모든 디바이스 configuration 확인
show full-configuration devices device