SlideShare uma empresa Scribd logo
1 de 15
1
(시스템/네트워크)
관리자가 바로 쓸 수 있는 파이썬
2 Day
조 훈(Hoon Jo)
2
1
2
3
 vmstat(가상 메모리 통계) data를 엑셀로 출력
 OID(객체 식별자) 수집 환경 구성 실습
Cisco Confidential© 2011 Cisco and/or its affiliates. All rights reserved. 4
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
[실행결과] vmstat 3 5
[실행결과] vmstat 1
<생략>
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
<생략>
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
외부 모듈을 내려 받기
 scp wiki_user@10.82.4.20:/home/wiki_shared/XlsxWriter-0.8.4.tar.gz .
P152-153 내려 받은 외부 모듈 설치하기
 python setup.py build
 python setup.py install
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
P161 [코드 3-8] xlsx_vmstat_header.py
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9
1) 생성한 파이썬 파일을 실행합니다.
2) 같은 디렉터리에 vmstat_merge_header.xlsx 파일을 노트북으로 옮깁니다.
3) vmstat_merge_header.xlsx 파일을 열어서 내용을 확인합니다.
Cisco Confidential 10© 2011 Cisco and/or its affiliates. All rights reserved.
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
OID : .1.3.6.1.4.1.9.9.719.1.9.2.1.6
 1.3.6.1.4.1 : enterprises MIB Management Information Base
 9.9.719.1.9.2.1.6 : 서비스 프로파일 이름 cucsComputeBladeAssignedToDn
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
<생략>
P292 [코드 4-11] oid_easyrun.py
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13
1) 생성한 파이썬 파일을 실행합니다.
2) IP 10.82.2.100 / OID 1.3.6.1.4.1.9.9.719.1.9.2.1 를 입력합니다.
<생략>
<생략>
© 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14
1) CDP로 얻은 정보를 인터페이스의 설명에 작성하기
2) 스케줄러를 통해 인터페이스 설명을 자동으로 갱신하기
Wiki academy sysadmin 2_day

Mais conteúdo relacionado

Semelhante a Wiki academy sysadmin 2_day

시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬
시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬
시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬위키북스
 
Wiki academy sysadmin 3_day
Wiki academy sysadmin 3_dayWiki academy sysadmin 3_day
Wiki academy sysadmin 3_dayJo Hoon
 
Wiki academy sysadmin 1_day
Wiki academy sysadmin 1_dayWiki academy sysadmin 1_day
Wiki academy sysadmin 1_dayJo Hoon
 
Cisco IoT presentation 20140807
Cisco IoT presentation 20140807Cisco IoT presentation 20140807
Cisco IoT presentation 20140807Youngsam Khee
 
Build the OpenStack Cloud with Neutron Networing, IceHouse
Build the OpenStack Cloud with Neutron Networing, IceHouseBuild the OpenStack Cloud with Neutron Networing, IceHouse
Build the OpenStack Cloud with Neutron Networing, IceHousejieun kim
 
PCF Installation Guide
PCF Installation GuidePCF Installation Guide
PCF Installation Guideseungdon Choi
 
Actual PoC guide for Virtual Desktop Infrastructure (Korean)
Actual PoC guide for Virtual Desktop Infrastructure (Korean)Actual PoC guide for Virtual Desktop Infrastructure (Korean)
Actual PoC guide for Virtual Desktop Infrastructure (Korean)Changhyun Lim
 
오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기Jaehwa Park
 
이스티오 (Istio) 자습서 v0.5.0
이스티오 (Istio) 자습서 v0.5.0이스티오 (Istio) 자습서 v0.5.0
이스티오 (Istio) 자습서 v0.5.0Jo Hoon
 
Oracle database 12 c on oracle linux 7.3
Oracle database 12 c on oracle linux 7.3Oracle database 12 c on oracle linux 7.3
Oracle database 12 c on oracle linux 7.3suk kim
 
OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)Ian Choi
 
Oracle APEX 기초 워크샵 - 실습 가이드 문서: Part 1 (1/2)
Oracle APEX 기초 워크샵 - 실습 가이드 문서:  Part 1 (1/2)Oracle APEX 기초 워크샵 - 실습 가이드 문서:  Part 1 (1/2)
Oracle APEX 기초 워크샵 - 실습 가이드 문서: Part 1 (1/2)Taewan Kim
 
Enterprise Linux 7 new feature_network configuration
Enterprise Linux 7 new feature_network configurationEnterprise Linux 7 new feature_network configuration
Enterprise Linux 7 new feature_network configurationsuk kim
 
Exadata troubleshooting
Exadata troubleshootingExadata troubleshooting
Exadata troubleshootingpat2001
 
4. Application - Oozie Fork
4. Application - Oozie Fork4. Application - Oozie Fork
4. Application - Oozie Forkmerry7
 
2014 모바일 문서보안 및 통제시스템_시온
2014 모바일 문서보안 및 통제시스템_시온2014 모바일 문서보안 및 통제시스템_시온
2014 모바일 문서보안 및 통제시스템_시온시온시큐리티
 
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415sprdd
 
minsw_Jenkins
minsw_Jenkinsminsw_Jenkins
minsw_JenkinsSW Min
 

Semelhante a Wiki academy sysadmin 2_day (20)

시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬
시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬
시스템/네트워크 관리자가 바로 쓸 수 있는 파이썬
 
Wiki academy sysadmin 3_day
Wiki academy sysadmin 3_dayWiki academy sysadmin 3_day
Wiki academy sysadmin 3_day
 
Wiki academy sysadmin 1_day
Wiki academy sysadmin 1_dayWiki academy sysadmin 1_day
Wiki academy sysadmin 1_day
 
Cisco IoT presentation 20140807
Cisco IoT presentation 20140807Cisco IoT presentation 20140807
Cisco IoT presentation 20140807
 
Build the OpenStack Cloud with Neutron Networing, IceHouse
Build the OpenStack Cloud with Neutron Networing, IceHouseBuild the OpenStack Cloud with Neutron Networing, IceHouse
Build the OpenStack Cloud with Neutron Networing, IceHouse
 
PCF Installation Guide
PCF Installation GuidePCF Installation Guide
PCF Installation Guide
 
Actual PoC guide for Virtual Desktop Infrastructure (Korean)
Actual PoC guide for Virtual Desktop Infrastructure (Korean)Actual PoC guide for Virtual Desktop Infrastructure (Korean)
Actual PoC guide for Virtual Desktop Infrastructure (Korean)
 
오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기오픈스택: 구석구석 파헤쳐보기
오픈스택: 구석구석 파헤쳐보기
 
이스티오 (Istio) 자습서 v0.5.0
이스티오 (Istio) 자습서 v0.5.0이스티오 (Istio) 자습서 v0.5.0
이스티오 (Istio) 자습서 v0.5.0
 
Oracle database 12 c on oracle linux 7.3
Oracle database 12 c on oracle linux 7.3Oracle database 12 c on oracle linux 7.3
Oracle database 12 c on oracle linux 7.3
 
Kafka slideshare
Kafka   slideshareKafka   slideshare
Kafka slideshare
 
OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)OpenStack DevStack Install - 2부 (Multi-nodes)
OpenStack DevStack Install - 2부 (Multi-nodes)
 
palm box ecm
palm box ecmpalm box ecm
palm box ecm
 
Oracle APEX 기초 워크샵 - 실습 가이드 문서: Part 1 (1/2)
Oracle APEX 기초 워크샵 - 실습 가이드 문서:  Part 1 (1/2)Oracle APEX 기초 워크샵 - 실습 가이드 문서:  Part 1 (1/2)
Oracle APEX 기초 워크샵 - 실습 가이드 문서: Part 1 (1/2)
 
Enterprise Linux 7 new feature_network configuration
Enterprise Linux 7 new feature_network configurationEnterprise Linux 7 new feature_network configuration
Enterprise Linux 7 new feature_network configuration
 
Exadata troubleshooting
Exadata troubleshootingExadata troubleshooting
Exadata troubleshooting
 
4. Application - Oozie Fork
4. Application - Oozie Fork4. Application - Oozie Fork
4. Application - Oozie Fork
 
2014 모바일 문서보안 및 통제시스템_시온
2014 모바일 문서보안 및 통제시스템_시온2014 모바일 문서보안 및 통제시스템_시온
2014 모바일 문서보안 및 통제시스템_시온
 
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415
Zinst 패키지 기반의-리눅스_중앙관리시스템_20140415
 
minsw_Jenkins
minsw_Jenkinsminsw_Jenkins
minsw_Jenkins
 

Mais de Jo Hoon

[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdf[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdfJo Hoon
 
Prometheus on EKS
Prometheus on EKSPrometheus on EKS
Prometheus on EKSJo Hoon
 
Prometheus on NKS
Prometheus on NKSPrometheus on NKS
Prometheus on NKSJo Hoon
 
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdfJo Hoon
 
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요Jo Hoon
 
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요Jo Hoon
 
CDN on GKE with Ingress
CDN on GKE with IngressCDN on GKE with Ingress
CDN on GKE with IngressJo Hoon
 
The myths of deprecating docker in kubernetes
The myths of deprecating docker in kubernetesThe myths of deprecating docker in kubernetes
The myths of deprecating docker in kubernetesJo Hoon
 
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)Jo Hoon
 
[네전따 27회] 네트워크 자동화 어렵지 않아요
[네전따 27회] 네트워크 자동화 어렵지 않아요[네전따 27회] 네트워크 자동화 어렵지 않아요
[네전따 27회] 네트워크 자동화 어렵지 않아요Jo Hoon
 
[Cook book] ansible 4_dell emc networking
[Cook book] ansible 4_dell emc networking[Cook book] ansible 4_dell emc networking
[Cook book] ansible 4_dell emc networkingJo Hoon
 
[Ansible] open network automation
[Ansible] open network automation[Ansible] open network automation
[Ansible] open network automationJo Hoon
 
[Fs8600] nas session validation test_by_hoon_jo
[Fs8600] nas session validation test_by_hoon_jo[Fs8600] nas session validation test_by_hoon_jo
[Fs8600] nas session validation test_by_hoon_joJo Hoon
 
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0Jo Hoon
 
[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10Jo Hoon
 
Ucs correctable ecc policy change tac forum (28.apr.2016 - hoon jo - tac)
Ucs correctable ecc policy change   tac forum (28.apr.2016 - hoon jo - tac)Ucs correctable ecc policy change   tac forum (28.apr.2016 - hoon jo - tac)
Ucs correctable ecc policy change tac forum (28.apr.2016 - hoon jo - tac)Jo Hoon
 

Mais de Jo Hoon (16)

[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdf[GitOps] Argo CD on GKE (v0.9.2).pdf
[GitOps] Argo CD on GKE (v0.9.2).pdf
 
Prometheus on EKS
Prometheus on EKSPrometheus on EKS
Prometheus on EKS
 
Prometheus on NKS
Prometheus on NKSPrometheus on NKS
Prometheus on NKS
 
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf
[GuideDoc] Deploy EKS thru eksctl - v1.22_v0.105.0.pdf
 
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요
[네전따] 네트워크 엔지니어에게 쿠버네티스는 어떤 의미일까요
 
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
왜 쿠버네티스는 systemd로 cgroup을 관리하려고 할까요
 
CDN on GKE with Ingress
CDN on GKE with IngressCDN on GKE with Ingress
CDN on GKE with Ingress
 
The myths of deprecating docker in kubernetes
The myths of deprecating docker in kubernetesThe myths of deprecating docker in kubernetes
The myths of deprecating docker in kubernetes
 
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)
온프레미스 쿠버네티스에서도 로드밸런서를 (w MetalLB)
 
[네전따 27회] 네트워크 자동화 어렵지 않아요
[네전따 27회] 네트워크 자동화 어렵지 않아요[네전따 27회] 네트워크 자동화 어렵지 않아요
[네전따 27회] 네트워크 자동화 어렵지 않아요
 
[Cook book] ansible 4_dell emc networking
[Cook book] ansible 4_dell emc networking[Cook book] ansible 4_dell emc networking
[Cook book] ansible 4_dell emc networking
 
[Ansible] open network automation
[Ansible] open network automation[Ansible] open network automation
[Ansible] open network automation
 
[Fs8600] nas session validation test_by_hoon_jo
[Fs8600] nas session validation test_by_hoon_jo[Fs8600] nas session validation test_by_hoon_jo
[Fs8600] nas session validation test_by_hoon_jo
 
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0
Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0
 
[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10[Python] Quick book for dell switch_os10
[Python] Quick book for dell switch_os10
 
Ucs correctable ecc policy change tac forum (28.apr.2016 - hoon jo - tac)
Ucs correctable ecc policy change   tac forum (28.apr.2016 - hoon jo - tac)Ucs correctable ecc policy change   tac forum (28.apr.2016 - hoon jo - tac)
Ucs correctable ecc policy change tac forum (28.apr.2016 - hoon jo - tac)
 

Wiki academy sysadmin 2_day

  • 1. 1 (시스템/네트워크) 관리자가 바로 쓸 수 있는 파이썬 2 Day 조 훈(Hoon Jo)
  • 3. 3  vmstat(가상 메모리 통계) data를 엑셀로 출력  OID(객체 식별자) 수집 환경 구성 실습
  • 4. Cisco Confidential© 2011 Cisco and/or its affiliates. All rights reserved. 4
  • 5. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5 [실행결과] vmstat 3 5 [실행결과] vmstat 1 <생략>
  • 6. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6 <생략>
  • 7. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7 외부 모듈을 내려 받기  scp wiki_user@10.82.4.20:/home/wiki_shared/XlsxWriter-0.8.4.tar.gz . P152-153 내려 받은 외부 모듈 설치하기  python setup.py build  python setup.py install
  • 8. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8 P161 [코드 3-8] xlsx_vmstat_header.py
  • 9. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9 1) 생성한 파이썬 파일을 실행합니다. 2) 같은 디렉터리에 vmstat_merge_header.xlsx 파일을 노트북으로 옮깁니다. 3) vmstat_merge_header.xlsx 파일을 열어서 내용을 확인합니다.
  • 10. Cisco Confidential 10© 2011 Cisco and/or its affiliates. All rights reserved.
  • 11. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11 OID : .1.3.6.1.4.1.9.9.719.1.9.2.1.6  1.3.6.1.4.1 : enterprises MIB Management Information Base  9.9.719.1.9.2.1.6 : 서비스 프로파일 이름 cucsComputeBladeAssignedToDn
  • 12. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12 <생략> P292 [코드 4-11] oid_easyrun.py
  • 13. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13 1) 생성한 파이썬 파일을 실행합니다. 2) IP 10.82.2.100 / OID 1.3.6.1.4.1.9.9.719.1.9.2.1 를 입력합니다. <생략> <생략>
  • 14. © 2011 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14 1) CDP로 얻은 정보를 인터페이스의 설명에 작성하기 2) 스케줄러를 통해 인터페이스 설명을 자동으로 갱신하기

Notas do Editor

  1. Agenda and module outline of topics covered.
  2. 152-153페이지를 보셔야 합니당.
  3. 실제 코드 보면서 설명