Log 확인
view /nsr/logs/daemon.raw
로그 파일 확인
view /var/log/messeges
메세지 확인
nsrwatch
방화벽 해제 안 될 때 로그 확인
nsr_render_log daemon.raw
daemon.raw 파일을 daemon.log 파일로 변경 (1회성)
nsradmin -p nsrexecd
v (비주얼 편집기)
next로 넘기면서 daemon.raw 나올 때까지
edit으로 수정
runtime rendered log : /nsr/logs/daemon.log
tail daemon.log
실시간으로 변하는 로그 확인 (vi로 열면 실시간이 반영 안 된다)
-f : 뒷부분 확인
호스트 관련
cat /etc/hosts
호스트 등록 내역 확인
vi /etc/hosts
호스트 등록 내역 수정
vi /etc/hostname
호스트 이름 수정
hostname
호스트 이름 확인
ifconfig
ip addr show
ip 확인
ps -ef | grep nsr
nsr 데몬 확인
rpm -qa | grep lgto
networker 버전 확인
백업 내역
mminfo
백업 내역 보기
mminfo -ot
백업 내역 시간 순서로 보기
mminfo -avot
백업 내역 자세히 보기
mminfo -avot -q "client=ohs"
클라이언트 이름이 ohs인 백업 기록만 확인
mminfo -avot -q "savatime<=03/12/2024,savetime>=02/12/2024"
24년 3월 12일부터 24년 2월 12일까지 백업된 기록 확인
mminfo -avot -q "savetime>=03/12/2024 02:10:00 PM"
24년 3월 12일 오후 2시 10분 이후에 백업된 기록 확인
nsradmin
nsradmin
Networker CLI 대화형 모드 진입
nsradmin -p nsrexecd
nsrexecd 데몬으로 접속
v
비쥬얼 편집기 (GUI)
q
나오기
print type: nsr peer information; name: client
해당 클라이언트의 peer 정보 보기
기타
nsrrpcinfo -p ohsClient
dbgcommand -p (nsrd의 PID) FlushDnsCache
클라이언트 못 읽을 경우 연결 캐시 재설정
nsrjb -IIv
클라이언트 - 서버 연결 확인
ping 192.168.1.59
네트워크 연결 확인 (4번)
ping 192.168.1.59 -t
네트워크 연결 확인 (계속)
telnet 192.168.1.59 7937
telnet 192.168.1.59 7938
클라이언트 포트 연결 확인 (7937, 7938은 Networker 포트 번호)
curl -v telnet://192.168.1.59:7937
curl -v telnet://192.168.1.59:7938
위의 telnet이 안 될 경우 사용
CLI 백업 / 복구
save 백업
save
-s : server
-c : client
-b : pool
-w : browse time
-y : retent time
linux
save -s ohsserver -b ohsddboost -w 1week -y 1week /home/NW/test/test1.txt
windows
cd C:\NW\test\
save -s ohsserver -b ohsddboost -w 1day -y 1day test1.txt
recover 복구
recover
-b : pool
-c : client
-s : server
-d : destination
-e : exclude file (제외 파일)
-R : destination client (복구 대상 클라이언트)
-S : SSID
-t : date
recover 모드 명령어
cd [디렉토리명] : 디렉토리 이동
pwd : 현재 경로
ls, ll : 백업 파일 목록 보기
list : recover 리스트 목록 보기
add [파일명] : 선택한 파일 recover 리스트에 추가
delete [파일명] : 선택한 파일 recover 리스트에서 제거
versions [파일명] : 해당 백업본의 시간대 별 여러 버전 확인
change time [시간] : 원하는 시간의 백업 현황 보기 (원하는 백업 버전을 선택하기 위함)
destination : 복구를 진행할 경로 확인
relocate [경로] : 파일을 복구할 위치 (현재 recover를 사용한 OS에 받아진다)
recover : recover 리스트에 있는 목록으로 복구 진행
VTL
cat /sys/class/fc_host/host34/port_name
연결되어 있는 WW 정보 확인
echo "1" > /sys/class/fc_host/host34/issue_lip
재부팅 없이 디바이스 rescan 할 때 사용
echo "- - -" > /sys/class/scsi_host/host34/scan
재부팅 없이 디바이스 rescan하기
(fc_host로 사용하면 편하고, permission denined 뜨면 scsi_host 이용)
ls -l /sys/class/fc_host/ | awk '{print echo - - - > /sys/class/fc_host/"$9"/scan"}'
scan파일 있는 포트 번호 모아서 확
lsscsi
scsi 연결 장비 확인
inquire
연결 디바이스 정보 확인 (오래 걸림)