SlideShare a Scribd company logo
1 of 8
Download to read offline
Simple PoC for Ansible /w dellos9 & dellos10
This document is the purpose of quick PoC for Ansible on the DELL EMC OS9 & 10
Copyright <2018> Hoon_Jo@dell.com < Github : https://github.com/sysnet4admin>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
0. Pre-Conditions
Predifined Group_Vars
ansible_user: ansible
ansible_ssh_pass: Ansible00
ansible_become_method: enable
ansible_become: yes
ansible_become_pass: admin
ansible_network_os: dellos9
ansible_connection: network_cli
ansible_user: ansible
ansible_ssh_pass: Ansible00
ansible_become_method: enable
ansible_become: yes
ansible_become_pass: admin
ansible_network_os: dellos10
ansible_connection: network_cli
Config Chagne
[vagrant@ansible-server ~]$ ansible-config dump --only-changed
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 60
Inventory
[leaf_os9]
192.168.0.13
192.168.0.14
[leaf_os10]
192.168.0.16
Topology (void)
- Dell OS9: 192.168.0.13, 192.168.0.14
- Dell OS10: 192.168.0.16
1. dellos[9|10]_command
1.1. Source Code
---
- name: Show for Dell_OS9
hosts: leaf_os9
gather_facts: no
tasks:
- name: Show Version
dellos9_command:
commands: show version
register: show_ver
- debug: var=show_ver
[Code 1-1] Show_Version9.yml
---
- name: Show for Dell_OS10
hosts: leaf_os10
gather_facts: no
tasks:
- name: Show Version
dellos10_command:
commands: show version
register: show_ver
- debug: var=show_ver
[Code 1-2] Show_Version10.yml
1.2. Run the Code
Note: anp = ansible-playbook (alias)
[vagrant@ansible-server Ver_Chk]$ anp Show_Version9.yml
PLAY [Show for Dell_OS9] *******************************************************
TASK [Show Version] ************************************************************
ok: [192.168.0.14]
ok: [192.168.0.13]
TASK [debug] *******************************************************************
ok: [192.168.0.14] => {
"show_ver": {
"changed": false,
"failed": false,
"stdout": [
"Dell EMC Real Time Operating System SoftwarenDell EMC Operating
System Version: 2.0nDell EMC Application Software Version: 9.14(0.2)nCopyright
(c) 1999-2018 by Dell Inc. All Rights Reserved.nBuild Time: Sat Sep 22 02:36:57
2018nBuild Path: /build/build02/SW/SRCnDell EMC Networking OS uptime is 1
day(s), 20 hour(s), 33 minute(s)nnSystem image file is "system://A"nnSystem
Type: S5048F-ON nControl Processor: Intel Rangeley with 3 Gbytes (3203260416
bytes) of memory, core(s) 4.nn16G bytes of boot flash memory.nn 1 54-port
TE/TF/FO/FI/HU G (S5048F-ON)n 48 Twenty Five GigabitEthernet/IEEE 802.3
interface(s)n 5 Forty GigabitEthernet/IEEE 802.3 interface(s)n 1 Hundred
GigabitEthernet/IEEE 802.3 interface(s)"
],
"stdout_lines": [
[
"Dell EMC Real Time Operating System Software",
"Dell EMC Operating System Version: 2.0",
"Dell EMC Application Software Version: 9.14(0.2)",
"Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.",
"Build Time: Sat Sep 22 02:36:57 2018",
"Build Path: /build/build02/SW/SRC",
"Dell EMC Networking OS uptime is 1 day(s), 20 hour(s), 33
minute(s)",
"",
"System image file is "system://A"",
"",
"System Type: S5048F-ON ",
"Control Processor: Intel Rangeley with 3 Gbytes (3203260416
bytes) of memory, core(s) 4.",
"",
"16G bytes of boot flash memory.",
"",
" 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)",
" 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)",
" 5 Forty GigabitEthernet/IEEE 802.3 interface(s)",
" 1 Hundred GigabitEthernet/IEEE 802.3 interface(s)"
]
]
}
}
ok: [192.168.0.13] => {
"show_ver": {
"changed": false,
"failed": false,
"stdout": [
"Dell EMC Real Time Operating System SoftwarenDell EMC Operating
System Version: 2.0nDell EMC Application Software Version: 9.14(0.2)nCopyright
(c) 1999-2018 by Dell Inc. All Rights Reserved.nBuild Time: Sat Sep 22 02:36:57
2018nBuild Path: /build/build02/SW/SRCnDell EMC Networking OS uptime is 1
day(s), 16 hour(s), 26 minute(s)nnSystem image file is "system://A"nnSystem
Type: S5048F-ON nControl Processor: Intel Rangeley with 3 Gbytes (3203248128
bytes) of memory, core(s) 4.nn16G bytes of boot flash memory.nn 1 54-port
TE/TF/FO/FI/HU G (S5048F-ON)n 48 Twenty Five GigabitEthernet/IEEE 802.3
interface(s)n 4 Forty GigabitEthernet/IEEE 802.3 interface(s)n 2 Hundred
GigabitEthernet/IEEE 802.3 interface(s)"
],
"stdout_lines": [
[
"Dell EMC Real Time Operating System Software",
"Dell EMC Operating System Version: 2.0",
"Dell EMC Application Software Version: 9.14(0.2)",
"Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.",
"Build Time: Sat Sep 22 02:36:57 2018",
"Build Path: /build/build02/SW/SRC",
"Dell EMC Networking OS uptime is 1 day(s), 16 hour(s), 26
minute(s)",
"",
"System image file is "system://A"",
"",
"System Type: S5048F-ON ",
"Control Processor: Intel Rangeley with 3 Gbytes (3203248128
bytes) of memory, core(s) 4.",
"",
"16G bytes of boot flash memory.",
"",
" 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)",
" 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)",
" 4 Forty GigabitEthernet/IEEE 802.3 interface(s)",
" 2 Hundred GigabitEthernet/IEEE 802.3 interface(s)"
]
]
}
}
PLAY RECAP *********************************************************************
192.168.0.13 : ok=2 changed=0 unreachable=0 failed=0
192.168.0.14 : ok=2 changed=0 unreachable=0 failed=0
[vagrant@ansible-server Ver_Chk]$ anp Show_Version10.yml
PLAY [Show for Dell_OS10] ******************************************************
TASK [Show Version] ************************************************************
ok: [192.168.0.16]
TASK [debug] *******************************************************************
ok: [192.168.0.16] => {
"show_ver": {
"changed": false,
"failed": false,
"stdout": [
"Dell EMC Networking OS10-EnterprisenCopyright (c) 1999-2018 by Dell
Inc. All Rights Reserved.nOS Version: 10.4.2.0nBuild Version:
10.4.2.0.226nBuild Time: 2018-11-08T21:43:05-0800nSystem Type: S4148U-
ONnArchitecture: x86_64nUp Time: 5 days 18:35:57"
],
"stdout_lines": [
[
"Dell EMC Networking OS10-Enterprise",
"Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.",
"OS Version: 10.4.2.0",
"Build Version: 10.4.2.0.226",
"Build Time: 2018-11-08T21:43:05-0800",
"System Type: S4148U-ON",
"Architecture: x86_64",
"Up Time: 5 days 18:35:57"
]
]
}
}
PLAY RECAP *********************************************************************
192.168.0.16 : ok=2 changed=0 unreachable=0 failed=0
2. dellos[9|10]_config
2.1. Source Code
---
- name: Config for Dell_OS9
hosts: leaf_os9
gather_facts: no
vars_prompt:
- name: "vlan"
prompt: "Which vlan do you want to create"
private: no
tasks:
- name: input vlan for DellOS9
dellos9_config:
lines: ['interface vlan {{ vlan }}']
[Code 2-1] Create_Vlan_v9.yml
---
- name: Config for Dell_OS10
hosts: leaf_os10
gather_facts: no
vars_prompt:
- name: "vlan"
prompt: "Which vlan do you want to create"
private: no
tasks:
- name: input vlan for DellOS10
dellos10_config:
lines: ['interface vlan {{ vlan }}']
[Code 2-2] Create_Vlan_v10.yml
2.2. Run the Code
Note: anp = ansible-playbook (alias)
[vagrant@ansible-server Cr_Vlan]$ anp Create_Vlan_v9.yml
Which vlan do you want to create: 301
PLAY [Config for Dell_OS9] *****************************************************
TASK [input vlan for DellOS9] **************************************************
changed: [192.168.0.14]
changed: [192.168.0.13]
PLAY RECAP ********************************************************************
192.168.0.13 : ok=1 changed=1 unreachable=0 failed=0
192.168.0.14 : ok=1 changed=1 unreachable=0 failed=0
[vagrant@ansible-server Cr_Vlan]$ ansible-playbook Create_Vlan_v10.yml
Which vlan do you want to create: 301
PLAY [Config for Dell_OS10] ****************************************************
TASK [input vlan for DellOS10] *************************************************
changed: [192.168.0.16]
PLAY RECAP *********************************************************************
192.168.0.16 : ok=1 changed=1 unreachable=0 failed=0
2.3. Check Status
[ Leaf-1: show vlan ]
Leaf-1(conf)#do show vlan
Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C
- Community, I - Isolated
O - Openflow, Vx - Vxlan
Q: U - Untagged, T - Tagged
x - Dot1x untagged, X - Dot1x tagged
o - OpenFlow untagged, O - OpenFlow tagged
G - GVRP tagged, M - Vlan-stack
i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
NUM Status Description Q Ports
* 1 Active U Po1(Fo 1/53/1,1/54/1)
U Tf 1/9-1/10,1/13-1/16,1/20,
1/23-1/30,1/32,1/34-1/36
99 Active V Po1(Fo 1/53/1,1/54/1)
100 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
T Tf 1/1-1/5,1/8
101 Active V Po1(Fo 1/53/1,1/54/1)
T Tf 1/1-1/5,1/8,1/11,1/21
U Tf 1/17-1/19,1/31,1/33,1/46-1/48
102 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
T Tf 1/1-1/5,1/8
103 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
T Tf 1/1-1/5,1/8,1/11,1/21
301 Active V Po1(Fo 1/53/1,1/54/1)
[ Leaf-2: show vlan ]
Leaf-2#show vlan
Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C
- Community, I - Isolated
O - Openflow, Vx - Vxlan
Q: U - Untagged, T - Tagged
x - Dot1x untagged, X - Dot1x tagged
o - OpenFlow untagged, O - OpenFlow tagged
G - GVRP tagged, M - Vlan-stack
i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
NUM Status Description Q Ports
* 1 Active U Po1(Fo 1/53/1,1/54/1)
99 Active V Po1(Fo 1/53/1,1/54/1)
100 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
101 Active V Po1(Fo 1/53/1,1/54/1)
T Tf 1/11,1/21
U Tf 1/31,1/46-1/48
102 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
103 Active T Po12(Tf 1/12)
T Po22(Tf 1/22)
V Po1(Fo 1/53/1,1/54/1)
T Tf 1/11,1/21
301 Active V Po1(Fo 1/53/1,1/54/1)
[ Leaf-3: show vlan ]
Leaf-3# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
@ โ€“ Attached to Virtual Network
Q: A - Access (Untagged), T - Tagged
NUM Status Description Q Ports
* 1 Active A Eth1/1/1-1/1/2,1/1/5-1/1/6,
1/1/8-1/1/9,1/1/11-1/1/28,
1/1/30-1/1/32,1/1/35-1/1/42,
1/1/45,1/1/49-1/1/54
A Po32,42
200 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42
T Po32,42
201 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42
T Po32,42
A Eth1/1/46-1/1/48
202 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42
T Po32,42
203 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42
T Po32,42
301 Inactive
4094 Inactive

More Related Content

What's hot

Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1
Laurent Leturgez
ย 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time Optimization
Kan-Ru Chen
ย 
C Dos Bas
C Dos BasC Dos Bas
C Dos Bas
CTIN
ย 
Install notes!
Install notes!Install notes!
Install notes!
hicham kariki
ย 
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘ŠAix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
fm2008
ย 

What's hot (18)

Exadata cell update
Exadata cell updateExadata cell update
Exadata cell update
ย 
Sebastiรกn Guerrero - Ke ase Android? [Rooted CON 2013]
Sebastiรกn Guerrero - Ke ase Android? [Rooted CON 2013]Sebastiรกn Guerrero - Ke ase Android? [Rooted CON 2013]
Sebastiรกn Guerrero - Ke ase Android? [Rooted CON 2013]
ย 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
ย 
2013
20132013
2013
ย 
Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1Oracle 12c r1 installation on solaris 11.1
Oracle 12c r1 installation on solaris 11.1
ย 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installation
ย 
Zhp diag
Zhp diagZhp diag
Zhp diag
ย 
Android Custom Kernel/ROM design
Android Custom Kernel/ROM designAndroid Custom Kernel/ROM design
Android Custom Kernel/ROM design
ย 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time Optimization
ย 
Learning AOSP - Android Booting Process
Learning AOSP - Android Booting ProcessLearning AOSP - Android Booting Process
Learning AOSP - Android Booting Process
ย 
Final presentasi gnome asia
Final presentasi gnome asiaFinal presentasi gnome asia
Final presentasi gnome asia
ย 
How To Build Android for ARM Chip boards
How To Build Android for ARM Chip boardsHow To Build Android for ARM Chip boards
How To Build Android for ARM Chip boards
ย 
mmmm
mmmmmmmm
mmmm
ย 
C Dos Bas
C Dos BasC Dos Bas
C Dos Bas
ย 
OpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 WorkshopOpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 Workshop
ย 
Embedded Android
Embedded AndroidEmbedded Android
Embedded Android
ย 
Install notes!
Install notes!Install notes!
Install notes!
ย 
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘ŠAix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
Aix5[1].3+hacmp+oracle9 i+weblogic8.1ๅฎ‰่ฃ…ๅฎžๆ–ฝๆŠฅๅ‘Š
ย 

Similar to Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0

Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
Mohamed Al-Natour
ย 
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
Scaleway
ย 

Similar to Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0 (20)

Readme
ReadmeReadme
Readme
ย 
How to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloudHow to deploy docker container inside ikoula's cloud
How to deploy docker container inside ikoula's cloud
ย 
Debugging with EMUX - RIngzer0 BACK2WORKSHOPS
Debugging with EMUX - RIngzer0 BACK2WORKSHOPSDebugging with EMUX - RIngzer0 BACK2WORKSHOPS
Debugging with EMUX - RIngzer0 BACK2WORKSHOPS
ย 
Vagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptopVagrant, Ansible, and OpenStack on your laptop
Vagrant, Ansible, and OpenStack on your laptop
ย 
ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments ONOS SDN Controller - Clustering Tests & Experiments
ONOS SDN Controller - Clustering Tests & Experiments
ย 
BeagleBoard-xM Booting Process
BeagleBoard-xM Booting ProcessBeagleBoard-xM Booting Process
BeagleBoard-xM Booting Process
ย 
Armboot process zeelogic
Armboot process zeelogicArmboot process zeelogic
Armboot process zeelogic
ย 
5.installing oracle grid_11g_r2_on_red_hat_enterp
5.installing oracle grid_11g_r2_on_red_hat_enterp5.installing oracle grid_11g_r2_on_red_hat_enterp
5.installing oracle grid_11g_r2_on_red_hat_enterp
ย 
Bootloaders
BootloadersBootloaders
Bootloaders
ย 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
ย 
SESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptxSESI 7 RouterTroubleshooting.pptx
SESI 7 RouterTroubleshooting.pptx
ย 
SR-IOV Introduce
SR-IOV IntroduceSR-IOV Introduce
SR-IOV Introduce
ย 
Ansible 2.0
Ansible 2.0Ansible 2.0
Ansible 2.0
ย 
168054408 cc1
168054408 cc1168054408 cc1
168054408 cc1
ย 
Enterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12cEnterprise managerclodcontrolinstallconfiguration emc12c
Enterprise managerclodcontrolinstallconfiguration emc12c
ย 
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
Comment automatiser le deฬploiement de sa plateforme sur des infrastructures ...
ย 
Instalasi Solr
Instalasi SolrInstalasi Solr
Instalasi Solr
ย 
Server Core2
Server Core2Server Core2
Server Core2
ย 
Lab: Installation of Xilkernel on Xilinx Spartan 3E Starter board
Lab: Installation of Xilkernel on Xilinx Spartan 3E Starter boardLab: Installation of Xilkernel on Xilinx Spartan 3E Starter board
Lab: Installation of Xilkernel on Xilinx Spartan 3E Starter board
ย 
Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP
ย 

More from Jo Hoon

์˜จํ”„๋ ˆ๋ฏธ์Šค ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ๋„ ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋ฅผ (w MetalLB)
์˜จํ”„๋ ˆ๋ฏธ์Šค ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ๋„ ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋ฅผ (w MetalLB)์˜จํ”„๋ ˆ๋ฏธ์Šค ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ๋„ ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋ฅผ (w MetalLB)
์˜จํ”„๋ ˆ๋ฏธ์Šค ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค์—์„œ๋„ ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋ฅผ (w MetalLB)
Jo Hoon
ย 
[๋„ค์ „๋”ฐ 27ํšŒ] ๋„คํŠธ์›Œํฌ ์ž๋™ํ™” ์–ด๋ ต์ง€ ์•Š์•„์š”
[๋„ค์ „๋”ฐ 27ํšŒ] ๋„คํŠธ์›Œํฌ ์ž๋™ํ™” ์–ด๋ ต์ง€ ์•Š์•„์š”[๋„ค์ „๋”ฐ 27ํšŒ] ๋„คํŠธ์›Œํฌ ์ž๋™ํ™” ์–ด๋ ต์ง€ ์•Š์•„์š”
[๋„ค์ „๋”ฐ 27ํšŒ] ๋„คํŠธ์›Œํฌ ์ž๋™ํ™” ์–ด๋ ต์ง€ ์•Š์•„์š”
Jo Hoon
ย 

More from Jo Hoon (20)

์ด์Šคํ‹ฐ์˜ค (Istio) ์ž์Šต์„œ v0.5.0
์ด์Šคํ‹ฐ์˜ค (Istio) ์ž์Šต์„œ v0.5.0์ด์Šคํ‹ฐ์˜ค (Istio) ์ž์Šต์„œ v0.5.0
์ด์Šคํ‹ฐ์˜ค (Istio) ์ž์Šต์„œ v0.5.0
ย 
[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ํšŒ] ๋„คํŠธ์›Œํฌ ์ž๋™ํ™” ์–ด๋ ต์ง€ ์•Š์•„์š”
ย 
Wiki academy sysadmin 10_day
Wiki academy sysadmin 10_dayWiki academy sysadmin 10_day
Wiki academy sysadmin 10_day
ย 
Wiki academy sysadmin 4_day
Wiki academy sysadmin 4_dayWiki academy sysadmin 4_day
Wiki academy sysadmin 4_day
ย 
Wiki academy sysadmin 3_day
Wiki academy sysadmin 3_dayWiki academy sysadmin 3_day
Wiki academy sysadmin 3_day
ย 
Wiki academy sysadmin 2_day
Wiki academy sysadmin 2_dayWiki academy sysadmin 2_day
Wiki academy sysadmin 2_day
ย 
Wiki academy sysadmin 1_day
Wiki academy sysadmin 1_dayWiki academy sysadmin 1_day
Wiki academy sysadmin 1_day
ย 
Wiki academy sysadmin 9_day
Wiki academy sysadmin 9_dayWiki academy sysadmin 9_day
Wiki academy sysadmin 9_day
ย 
Wiki academy sysadmin 8_day
Wiki academy sysadmin 8_dayWiki academy sysadmin 8_day
Wiki academy sysadmin 8_day
ย 
Wiki academy sysadmin 7_day
Wiki academy sysadmin 7_dayWiki academy sysadmin 7_day
Wiki academy sysadmin 7_day
ย 
Wiki academy sysadmin 6_day
Wiki academy sysadmin 6_dayWiki academy sysadmin 6_day
Wiki academy sysadmin 6_day
ย 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
ย 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
ย 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
ย 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
ย 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
ย 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
ย 

Recently uploaded (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )๐Ÿ” 9953056974๐Ÿ”(=)/CALL GIRLS SERVICE
ย 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
ย 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
ย 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
ย 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
ย 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
ย 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
ย 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
ย 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
ย 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
ย 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
ย 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
ย 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
ย 
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Vaishali (Ghaziabad) ๐Ÿ” >เผ’8448380779 ๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
ย 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
ย 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
ย 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
ย 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
ย 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
ย 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
ย 

Ansible part for_po_c(w dellos9 dellos10)_ext_v1.0

  • 1. Simple PoC for Ansible /w dellos9 & dellos10 This document is the purpose of quick PoC for Ansible on the DELL EMC OS9 & 10 Copyright <2018> Hoon_Jo@dell.com < Github : https://github.com/sysnet4admin> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • 2. 0. Pre-Conditions Predifined Group_Vars ansible_user: ansible ansible_ssh_pass: Ansible00 ansible_become_method: enable ansible_become: yes ansible_become_pass: admin ansible_network_os: dellos9 ansible_connection: network_cli ansible_user: ansible ansible_ssh_pass: Ansible00 ansible_become_method: enable ansible_become: yes ansible_become_pass: admin ansible_network_os: dellos10 ansible_connection: network_cli Config Chagne [vagrant@ansible-server ~]$ ansible-config dump --only-changed HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 60 Inventory [leaf_os9] 192.168.0.13 192.168.0.14 [leaf_os10] 192.168.0.16 Topology (void) - Dell OS9: 192.168.0.13, 192.168.0.14 - Dell OS10: 192.168.0.16
  • 3. 1. dellos[9|10]_command 1.1. Source Code --- - name: Show for Dell_OS9 hosts: leaf_os9 gather_facts: no tasks: - name: Show Version dellos9_command: commands: show version register: show_ver - debug: var=show_ver [Code 1-1] Show_Version9.yml --- - name: Show for Dell_OS10 hosts: leaf_os10 gather_facts: no tasks: - name: Show Version dellos10_command: commands: show version register: show_ver - debug: var=show_ver [Code 1-2] Show_Version10.yml 1.2. Run the Code Note: anp = ansible-playbook (alias) [vagrant@ansible-server Ver_Chk]$ anp Show_Version9.yml PLAY [Show for Dell_OS9] ******************************************************* TASK [Show Version] ************************************************************ ok: [192.168.0.14] ok: [192.168.0.13] TASK [debug] ******************************************************************* ok: [192.168.0.14] => { "show_ver": { "changed": false, "failed": false, "stdout": [ "Dell EMC Real Time Operating System SoftwarenDell EMC Operating System Version: 2.0nDell EMC Application Software Version: 9.14(0.2)nCopyright (c) 1999-2018 by Dell Inc. All Rights Reserved.nBuild Time: Sat Sep 22 02:36:57 2018nBuild Path: /build/build02/SW/SRCnDell EMC Networking OS uptime is 1
  • 4. day(s), 20 hour(s), 33 minute(s)nnSystem image file is "system://A"nnSystem Type: S5048F-ON nControl Processor: Intel Rangeley with 3 Gbytes (3203260416 bytes) of memory, core(s) 4.nn16G bytes of boot flash memory.nn 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)n 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)n 5 Forty GigabitEthernet/IEEE 802.3 interface(s)n 1 Hundred GigabitEthernet/IEEE 802.3 interface(s)" ], "stdout_lines": [ [ "Dell EMC Real Time Operating System Software", "Dell EMC Operating System Version: 2.0", "Dell EMC Application Software Version: 9.14(0.2)", "Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.", "Build Time: Sat Sep 22 02:36:57 2018", "Build Path: /build/build02/SW/SRC", "Dell EMC Networking OS uptime is 1 day(s), 20 hour(s), 33 minute(s)", "", "System image file is "system://A"", "", "System Type: S5048F-ON ", "Control Processor: Intel Rangeley with 3 Gbytes (3203260416 bytes) of memory, core(s) 4.", "", "16G bytes of boot flash memory.", "", " 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)", " 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)", " 5 Forty GigabitEthernet/IEEE 802.3 interface(s)", " 1 Hundred GigabitEthernet/IEEE 802.3 interface(s)" ] ] } } ok: [192.168.0.13] => { "show_ver": { "changed": false, "failed": false, "stdout": [ "Dell EMC Real Time Operating System SoftwarenDell EMC Operating System Version: 2.0nDell EMC Application Software Version: 9.14(0.2)nCopyright (c) 1999-2018 by Dell Inc. All Rights Reserved.nBuild Time: Sat Sep 22 02:36:57 2018nBuild Path: /build/build02/SW/SRCnDell EMC Networking OS uptime is 1 day(s), 16 hour(s), 26 minute(s)nnSystem image file is "system://A"nnSystem Type: S5048F-ON nControl Processor: Intel Rangeley with 3 Gbytes (3203248128 bytes) of memory, core(s) 4.nn16G bytes of boot flash memory.nn 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)n 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)n 4 Forty GigabitEthernet/IEEE 802.3 interface(s)n 2 Hundred GigabitEthernet/IEEE 802.3 interface(s)" ], "stdout_lines": [ [ "Dell EMC Real Time Operating System Software", "Dell EMC Operating System Version: 2.0", "Dell EMC Application Software Version: 9.14(0.2)", "Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.", "Build Time: Sat Sep 22 02:36:57 2018", "Build Path: /build/build02/SW/SRC", "Dell EMC Networking OS uptime is 1 day(s), 16 hour(s), 26
  • 5. minute(s)", "", "System image file is "system://A"", "", "System Type: S5048F-ON ", "Control Processor: Intel Rangeley with 3 Gbytes (3203248128 bytes) of memory, core(s) 4.", "", "16G bytes of boot flash memory.", "", " 1 54-port TE/TF/FO/FI/HU G (S5048F-ON)", " 48 Twenty Five GigabitEthernet/IEEE 802.3 interface(s)", " 4 Forty GigabitEthernet/IEEE 802.3 interface(s)", " 2 Hundred GigabitEthernet/IEEE 802.3 interface(s)" ] ] } } PLAY RECAP ********************************************************************* 192.168.0.13 : ok=2 changed=0 unreachable=0 failed=0 192.168.0.14 : ok=2 changed=0 unreachable=0 failed=0 [vagrant@ansible-server Ver_Chk]$ anp Show_Version10.yml PLAY [Show for Dell_OS10] ****************************************************** TASK [Show Version] ************************************************************ ok: [192.168.0.16] TASK [debug] ******************************************************************* ok: [192.168.0.16] => { "show_ver": { "changed": false, "failed": false, "stdout": [ "Dell EMC Networking OS10-EnterprisenCopyright (c) 1999-2018 by Dell Inc. All Rights Reserved.nOS Version: 10.4.2.0nBuild Version: 10.4.2.0.226nBuild Time: 2018-11-08T21:43:05-0800nSystem Type: S4148U- ONnArchitecture: x86_64nUp Time: 5 days 18:35:57" ], "stdout_lines": [ [ "Dell EMC Networking OS10-Enterprise", "Copyright (c) 1999-2018 by Dell Inc. All Rights Reserved.", "OS Version: 10.4.2.0", "Build Version: 10.4.2.0.226", "Build Time: 2018-11-08T21:43:05-0800", "System Type: S4148U-ON", "Architecture: x86_64", "Up Time: 5 days 18:35:57" ] ] } } PLAY RECAP ********************************************************************* 192.168.0.16 : ok=2 changed=0 unreachable=0 failed=0
  • 6. 2. dellos[9|10]_config 2.1. Source Code --- - name: Config for Dell_OS9 hosts: leaf_os9 gather_facts: no vars_prompt: - name: "vlan" prompt: "Which vlan do you want to create" private: no tasks: - name: input vlan for DellOS9 dellos9_config: lines: ['interface vlan {{ vlan }}'] [Code 2-1] Create_Vlan_v9.yml --- - name: Config for Dell_OS10 hosts: leaf_os10 gather_facts: no vars_prompt: - name: "vlan" prompt: "Which vlan do you want to create" private: no tasks: - name: input vlan for DellOS10 dellos10_config: lines: ['interface vlan {{ vlan }}'] [Code 2-2] Create_Vlan_v10.yml 2.2. Run the Code Note: anp = ansible-playbook (alias) [vagrant@ansible-server Cr_Vlan]$ anp Create_Vlan_v9.yml Which vlan do you want to create: 301 PLAY [Config for Dell_OS9] ***************************************************** TASK [input vlan for DellOS9] ************************************************** changed: [192.168.0.14] changed: [192.168.0.13] PLAY RECAP ******************************************************************** 192.168.0.13 : ok=1 changed=1 unreachable=0 failed=0 192.168.0.14 : ok=1 changed=1 unreachable=0 failed=0 [vagrant@ansible-server Cr_Vlan]$ ansible-playbook Create_Vlan_v10.yml Which vlan do you want to create: 301
  • 7. PLAY [Config for Dell_OS10] **************************************************** TASK [input vlan for DellOS10] ************************************************* changed: [192.168.0.16] PLAY RECAP ********************************************************************* 192.168.0.16 : ok=1 changed=1 unreachable=0 failed=0 2.3. Check Status [ Leaf-1: show vlan ] Leaf-1(conf)#do show vlan Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C - Community, I - Isolated O - Openflow, Vx - Vxlan Q: U - Untagged, T - Tagged x - Dot1x untagged, X - Dot1x tagged o - OpenFlow untagged, O - OpenFlow tagged G - GVRP tagged, M - Vlan-stack i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged NUM Status Description Q Ports * 1 Active U Po1(Fo 1/53/1,1/54/1) U Tf 1/9-1/10,1/13-1/16,1/20, 1/23-1/30,1/32,1/34-1/36 99 Active V Po1(Fo 1/53/1,1/54/1) 100 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) T Tf 1/1-1/5,1/8 101 Active V Po1(Fo 1/53/1,1/54/1) T Tf 1/1-1/5,1/8,1/11,1/21 U Tf 1/17-1/19,1/31,1/33,1/46-1/48 102 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) T Tf 1/1-1/5,1/8 103 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) T Tf 1/1-1/5,1/8,1/11,1/21 301 Active V Po1(Fo 1/53/1,1/54/1) [ Leaf-2: show vlan ] Leaf-2#show vlan Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C - Community, I - Isolated O - Openflow, Vx - Vxlan Q: U - Untagged, T - Tagged x - Dot1x untagged, X - Dot1x tagged o - OpenFlow untagged, O - OpenFlow tagged G - GVRP tagged, M - Vlan-stack i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged NUM Status Description Q Ports * 1 Active U Po1(Fo 1/53/1,1/54/1)
  • 8. 99 Active V Po1(Fo 1/53/1,1/54/1) 100 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) 101 Active V Po1(Fo 1/53/1,1/54/1) T Tf 1/11,1/21 U Tf 1/31,1/46-1/48 102 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) 103 Active T Po12(Tf 1/12) T Po22(Tf 1/22) V Po1(Fo 1/53/1,1/54/1) T Tf 1/11,1/21 301 Active V Po1(Fo 1/53/1,1/54/1) [ Leaf-3: show vlan ] Leaf-3# show vlan Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs, @ โ€“ Attached to Virtual Network Q: A - Access (Untagged), T - Tagged NUM Status Description Q Ports * 1 Active A Eth1/1/1-1/1/2,1/1/5-1/1/6, 1/1/8-1/1/9,1/1/11-1/1/28, 1/1/30-1/1/32,1/1/35-1/1/42, 1/1/45,1/1/49-1/1/54 A Po32,42 200 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42 T Po32,42 201 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42 T Po32,42 A Eth1/1/46-1/1/48 202 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42 T Po32,42 203 Active T Eth1/1/31-1/1/32,1/1/41-1/1/42 T Po32,42 301 Inactive 4094 Inactive