ssh-keygen -- authentication key generation, management and conversion
-F hostname
Search for the specified hostname in a known_hosts file, listing
any occurrences found. This option is useful to find hashed host
names or addresses and may also be used in conjunction with the
-H option to print found keys in a hashed format.
-R hostname
Removes all keys belonging to hostname from a known_hosts file.
This option is useful to delete hashed hosts (see the -H option
above).
ssh-keygen -f "/root/.ssh/known_hosts" -R [Node_IP]
2018년 4월 15일 일요일
2017년 11월 23일 목요일
OneFS v7 vs v8 | SmartConnect 관련
[ OneFS v7.2 ]
# isi networks list subnets
# isi networks modify pool --name=subnet0:pool0 --zone=<domain_name>
# isi networks list pool
# isi networks modify subnet --name=<subnet name> --sc-service-addr=<ip-address>
[OneFS v8.0]
# isi network subnets list --v
# isi network subnets modify groupnet0.subnet0 --sc-service-addr=<ip-address> --sc-service-name=<domain_name>
[ OneFS v7.2 ]
# isi network ls pools
# isi network ls pools <subnet_name:pool_name>
# isi networks modify pool --name= <subnet_name:pool_name> --ranges=<ip-address-ip-address>
[OneFS v8.0]
# isi network pools list
# isi network pools modify --id=groupnet0.subnet1.pool0 --ranges=4.4.4.21-4.4.4.29
Isilon | WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
$ ssh root@192.168.0.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:Jv2/U69vLTXbEYU5JbVIj2a8Xc3Q/7fzCAezq77Z2E4.
Please contact your system administrator.
Add correct host key in /home/breeze/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/breeze/.ssh/known_hosts:1
remove with:
ssh-keygen -f "/home/breeze/.ssh/known_hosts" -R 192.168.0.10
ECDSA host key for 192.168.0.10 has changed and you have requested strict checking.
Host key verification failed.
$ ssh-keygen -f "/home/breeze/.ssh/known_hosts" -R 192.168.0.10
# Host 192.168.0.10 found: line 1
/home/breeze/.ssh/known_hosts updated.
Original contents retained as /home/breeze/.ssh/known_hosts.old
$ ssh root@192.168.0.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:Jv2/U69vLTXbEYU5JbVIj2a8Xc3Q/7fzCAezq77Z2E4.
Please contact your system administrator.
Add correct host key in /home/breeze/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/breeze/.ssh/known_hosts:1
remove with:
ssh-keygen -f "/home/breeze/.ssh/known_hosts" -R 192.168.0.10
ECDSA host key for 192.168.0.10 has changed and you have requested strict checking.
Host key verification failed.
$ ssh-keygen -f "/home/breeze/.ssh/known_hosts" -R 192.168.0.10
# Host 192.168.0.10 found: line 1
/home/breeze/.ssh/known_hosts updated.
Original contents retained as /home/breeze/.ssh/known_hosts.old
$ ssh root@192.168.0.10
2017년 9월 3일 일요일
Oracle Linux Yum Reop. Config
wget -P /etc/yum.repos.d http://public-yum.oracle.com/public-yum-ol6.repo
# yum clean metadata
# yum repolist
2017년 8월 30일 수요일
hangdump
isi_for_array -n 1 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node01_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 2 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node02_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 3 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node03_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 4 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node04_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 5 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node05_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 6 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node06_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 7 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node07_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 8 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node08_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 9 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node09_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 10 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node10_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 11 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node11_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 2 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node02_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 3 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node03_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 4 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node04_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 5 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node05_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 6 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node06_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 7 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node07_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 8 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node08_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 9 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node09_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 10 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node10_isi_hangdump_2017_08_29_22_13_30.log.gz
isi_for_array -n 11 cp /var/crash/isi_hangdump_2017_08_29_22_13_30.log.gz /ifs/data/Isilon_Support/dump/node11_isi_hangdump_2017_08_29_22_13_30.log.gz
2017년 8월 9일 수요일
[ Isilon ] PERFORMANCE METRICS HINTS
# Start
cd /ifs/data/Isilon_Support
screen -L
# health of the Clusters and nodes
Capacity:
isi status --quiet
isi storagepool list
isi status -p
CPU:
isi_for_array -s -X 'top -n –S 10'
Memory:
isi statistics query current --nodes all --degraded --stats node.memory.used
isi statistics query current --nodes all --degraded --stats node.memory.free
isi_for_array -s -X 'sysctl kern.malloc_pigs' | less
Load average:
isi statistics query current --nodes all --degraded --stats node.cpu.count
isi_for_array -s 'uptime'
disk operations across Balance across nodes
isi statistics query current --nodes=all --stats=node.disk.xfers.rate.sum
# SmartConnect and load balance
isi network interfaces list
isi status
isi_for_array -sX 'isi devices|grep -vi healthy'
# SmartConnect Suspend check
isi networks list pools --verbose
isi networks modify pool --sc-suspend-node=5 --name=172_28_30_x:Service_Net
isi networks modify pool --sc-resume-node=5 --name=172_28_30_x:Service_Net
# File Server Protocol Operational Rates
isi statistics protocol –-nodes all –-top –-orderby=timeavg
# Disk Hardware Latency
isi statistics drive –-nodes all –-top –-long –-orderby timeavg
# Node CPU Utilization
isi statistics system –-nodes --top
# isi statistics client
isi statistics client --orderby=ops -nall --top --numeric output
isi statistics client --orderby=ops -nall --top --numeric
isi statistics client --long -i 5
# isi statistics system
isi statistics system --timestamp --nodes -i 5
isi statistics system --nodes --interval=1 --top
# isi statistics query
isi statistics query --stats=node.disk.xfers.rate.5 -i 10
# SMB open files list
isi smb session list
isi_for_array -X 'isi smb openfiles list -v --format=csv --no-header --no-footer'
# isi statistics pstat (<--SMB)
isi statistics pstat --protocol smb2
# NFS locks list
isi_for_array -X isi nfs nlm locks list -v --format=csv --no-header
# Users by protocol
isi statistics client --protocols external --no-footer | awk '{print $1 " "$6 " " $8}' | head -22
# Busiest files and paths
isi statistics heat --nodes all --totalby path | awk '{print $1 " " $5}' | sort -n -r | head -20
isi statistics heat --nodes 1 | awk '{print $1 " " $4 " " $5}' | sort -n -r | head -20
# Blocked, contended, and deadlocked events
isi statistics heat --totalby event,lin,path --limit 50
# Disk activity
Time in Queue: isi statistics drive --nodes=all --degraded --no-header --no-footer | awk ' /SATA/{sum+=$8; max=0; min=1000} {if ($8>max) max=$8; if ($8<min) min=$8} END {print "Min =",min; print "Max = ",max; print "Average = ",sum/NR}'
Number in Queue: isi statistics drive --nodes=all --degraded --no-header --no-footer | awk ' /SATA/{sum+=$9; max=0; min=1000} {if ($9>max) max=$9; if ($9<min) min=$9} END {print "Min =",min; print "Max = ",max; print "Average = ",sum/NR}'
# Network factors
Latency and hops:
traceroute –q 5 <IP > Issue from client to a node
traceroute –q 5 <IP > Issue from node to another node
Latency and packet loss:
ping -i .1 -c 250 <IP > Issue from client to a node
ping -i .1 -c 250 <IP > Issue from node to another node
Bandwidth:
iperf -s On target node
iperf -c <IP of Target Host> On source host
Hostcache.list:
isi_for_array -X sysctl net.inet.tcp.hostcache.list
Cache response times and effectiveness:
isi_cbind show dns
isi_cbind show cluster
# Protocol operations
Protocol operations most used:
isi statistics protocol list --sort Ops --degraded
Protocol operations taking the most time
isi statistics protocol list --sort TimeAvg --degraded
Clients most-to-least demanding:
isi statistics client list --sort Ops --degraded
Connection distribution:
isi statistics query current --nodes all --degraded --stats node.clientstats.connected.nfs,node.clientstats.active.nfs
isi statistics query current --nodes all --degraded --stats node.clientstats.connected.smb,node.clientstats.active.smb2
Slow authentication:
isi statistics protocol list --protocols lsass_out --degraded
Protocol latency:
isi statistics protocol list --totalby class
# L3 Cache
isi_cache_stats
isi_cache_stats –c (*reset command)
isi_cache_stats –v
isi_for_array –s isi_cache_stats –v | grep –A3 l3
# SMB Config
isi_for_array sysctl isi.stats.client.smb2.max_clients
# Netstat
SMB: isi_for_array -s "netstat -an |grep 445 | grep -i ESTABLISHED |wc -l"
# tcpdump
tcpdump -i vlan0 -s 0 -w /ifs/data/nasssip30.pcap host 172.28.30.15
# IP move
isi networks support sc_put_ip --sc-iface=5:10gige-agg-1 --sc-ip=172.28.31.16
cd /ifs/data/Isilon_Support
screen -L
# health of the Clusters and nodes
Capacity:
isi status --quiet
isi storagepool list
isi status -p
CPU:
isi_for_array -s -X 'top -n –S 10'
Memory:
isi statistics query current --nodes all --degraded --stats node.memory.used
isi statistics query current --nodes all --degraded --stats node.memory.free
isi_for_array -s -X 'sysctl kern.malloc_pigs' | less
Load average:
isi statistics query current --nodes all --degraded --stats node.cpu.count
isi_for_array -s 'uptime'
disk operations across Balance across nodes
isi statistics query current --nodes=all --stats=node.disk.xfers.rate.sum
# SmartConnect and load balance
isi network interfaces list
isi status
isi_for_array -sX 'isi devices|grep -vi healthy'
# SmartConnect Suspend check
isi networks list pools --verbose
isi networks modify pool --sc-suspend-node=5 --name=172_28_30_x:Service_Net
isi networks modify pool --sc-resume-node=5 --name=172_28_30_x:Service_Net
# File Server Protocol Operational Rates
isi statistics protocol –-nodes all –-top –-orderby=timeavg
# Disk Hardware Latency
isi statistics drive –-nodes all –-top –-long –-orderby timeavg
# Node CPU Utilization
isi statistics system –-nodes --top
# isi statistics client
isi statistics client --orderby=ops -nall --top --numeric output
isi statistics client --orderby=ops -nall --top --numeric
isi statistics client --long -i 5
# isi statistics system
isi statistics system --timestamp --nodes -i 5
isi statistics system --nodes --interval=1 --top
# isi statistics query
isi statistics query --stats=node.disk.xfers.rate.5 -i 10
# SMB open files list
isi smb session list
isi_for_array -X 'isi smb openfiles list -v --format=csv --no-header --no-footer'
# isi statistics pstat (<--SMB)
isi statistics pstat --protocol smb2
# NFS locks list
isi_for_array -X isi nfs nlm locks list -v --format=csv --no-header
# Users by protocol
isi statistics client --protocols external --no-footer | awk '{print $1 " "$6 " " $8}' | head -22
# Busiest files and paths
isi statistics heat --nodes all --totalby path | awk '{print $1 " " $5}' | sort -n -r | head -20
isi statistics heat --nodes 1 | awk '{print $1 " " $4 " " $5}' | sort -n -r | head -20
# Blocked, contended, and deadlocked events
isi statistics heat --totalby event,lin,path --limit 50
# Disk activity
Time in Queue: isi statistics drive --nodes=all --degraded --no-header --no-footer | awk ' /SATA/{sum+=$8; max=0; min=1000} {if ($8>max) max=$8; if ($8<min) min=$8} END {print "Min =",min; print "Max = ",max; print "Average = ",sum/NR}'
Number in Queue: isi statistics drive --nodes=all --degraded --no-header --no-footer | awk ' /SATA/{sum+=$9; max=0; min=1000} {if ($9>max) max=$9; if ($9<min) min=$9} END {print "Min =",min; print "Max = ",max; print "Average = ",sum/NR}'
# Network factors
Latency and hops:
traceroute –q 5 <IP > Issue from client to a node
traceroute –q 5 <IP > Issue from node to another node
Latency and packet loss:
ping -i .1 -c 250 <IP > Issue from client to a node
ping -i .1 -c 250 <IP > Issue from node to another node
Bandwidth:
iperf -s On target node
iperf -c <IP of Target Host> On source host
Hostcache.list:
isi_for_array -X sysctl net.inet.tcp.hostcache.list
Cache response times and effectiveness:
isi_cbind show dns
isi_cbind show cluster
# Protocol operations
Protocol operations most used:
isi statistics protocol list --sort Ops --degraded
Protocol operations taking the most time
isi statistics protocol list --sort TimeAvg --degraded
Clients most-to-least demanding:
isi statistics client list --sort Ops --degraded
Connection distribution:
isi statistics query current --nodes all --degraded --stats node.clientstats.connected.nfs,node.clientstats.active.nfs
isi statistics query current --nodes all --degraded --stats node.clientstats.connected.smb,node.clientstats.active.smb2
Slow authentication:
isi statistics protocol list --protocols lsass_out --degraded
Protocol latency:
isi statistics protocol list --totalby class
# L3 Cache
isi_cache_stats
isi_cache_stats –c (*reset command)
isi_cache_stats –v
isi_for_array –s isi_cache_stats –v | grep –A3 l3
# SMB Config
isi_for_array sysctl isi.stats.client.smb2.max_clients
# Netstat
SMB: isi_for_array -s "netstat -an |grep 445 | grep -i ESTABLISHED |wc -l"
# tcpdump
tcpdump -i vlan0 -s 0 -w /ifs/data/nasssip30.pcap host 172.28.30.15
# IP move
isi networks support sc_put_ip --sc-iface=5:10gige-agg-1 --sc-ip=172.28.31.16
2017년 5월 31일 수요일
[ISILON] 운영자용 Command
#
상태
모니터링
# isi
status
# isi
devices
# isi
auth status
# isi
event list
# isi
event show [이벤트 Number]
*
isi_for_array à Cluster wide
#SMB
생성
삭제
1)
SMB Share 생성
# mkdir /ifs/data/smb-1;
# isi smb shares create --zone=system --name=smb-1 --path=/ifs/data/smb-1 --create-path;
# isi smb shares permission create --share=smb-1 --permission-type=allow --permission= ['full', 'change', 'read'] --group='LAB\domain users';
# isi smb shares permission delete --share=smb-1
--wellknown=everyone –force;
# isi smb shares list
# ls –led /ifs/data/smb-1
* ls의 -w option à 한글 파일
2)
SMB Share 삭제
#
isi smb share list
# isi smb share view smb-1
#네트워크
# isi networks list ifaces
#로그 수집
# isi_gather_info
피드 구독하기:
글 (Atom)