This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: "3.0.0" | |
info: | |
description: "Please add description" | |
version: "0.1.0_inProgress" | |
title: "Orange_device_ressources" | |
tags: | |
- name: "Device" | |
- name: "OrangeApiStatus" | |
paths: | |
/devices: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible-playbook 2.9.2 | |
config file = /scripts/ansible.cfg | |
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']ansible-playbook 2.9.2 | |
config file = /scripts/ansible.cfg | |
configured module search path = [u'/plugins/modules', u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] | |
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible | |
executable location = /usr/local/bin/ansible-playbook | |
python version = 2.7.15 (default, Jan 31 2019, 00:15:21) [GCC 6.3.0] | |
Using /scripts/ansible.cfg as config file | |
setting up inventory plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qemu-img convert -f vmdk -O qcow2 vqfx10k-pfe-20160609-2.vmdk vqfx10k-pfe-20160609-2.qcow2 | |
qemu-img convert -f vmdk -O qcow2 vqfx10k-re-15.1X53-D60.vmdk vqfx10k-re-15.1X53-D60.qcow2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $( cat users.txt ); do | |
useradd $i | |
echo "user $i added successfully!" | |
echo $i:$i"p@sswd" | chpasswd | |
echo "Password for user $i changed successfully" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAul8l2mRVJ9hE2D6Q93LEzBwCzMsWJha2zs1Pi6NNJ34U1o4oD6qZ6JegPK2cMMSiaP2IN6vv9JBRXfc7SuFSdaV98sBZ49yK3yrzVRI298X2BTIgKXp3S3gH1fkv3JoubyTErzpCyN9sCpJ56v8LZuPoq60PVo/rUOHy2iq2qcALDavYukxYAgOBVdgmAST/eEErXYR+ok1cPWJQiXJWOEqB/NYrAhdWCL+L7HJzK7DTQoGzD508prsGl6x37plxUKMsZzavL7VlY26Kh1yZbJWxCq/kJIgYte8aRk5cGUwPFcnnCZMFXWZdM4YPl1VpmkvDAn65eeALmT2ywqFv root@pycharm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import smtplib | |
import socket | |
import subprocess | |
####################################################### | |
# Make sure your provider allows outgoing SMTP trafic | |
####################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######## References | |
https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-run-elk-stack-on-docker-container.html | |
docker run --privileged --name ELK --hostname ELK -d --network=swarmnet0 docker:stable-dind | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Launch Rancher container | |
$ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable | |
# v2 | |
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher | |
### Start 2 Virtualbox VMs with RancherOS | |
$ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros1 | |
$ docker-machine create -d virtualbox --virtualbox-boot2docker-url https://github.com/rancher/os/releases/download/v1.3.0/rancheros.iso rancheros2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:gns3/unstable | |
sudo apt-get update | |
sudo apt-get install gns3-gui | |
sudo apt install curl | |
curl -O https://download.docker.com/linux/ubuntu/dists/zesty/pool/stable/amd64/docker-ce_17.09.0~ce-0~ubuntu_amd64.deb | |
sudo dpkg -i docker-ce_17.09.0~ce-0~ubuntu_amd64.deb | |
sudo gpasswd -a $USER docker | |
newgrp docker | |
sudo apt-get install xtightvncviewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?><lab><mycase id="1"><casename>Case1: Automatic 6to4 mechanism</casename><topo>top1.jpg</topo><testrun id="1"><router id="R1"><command><cmdname>sh ipv6 int brief</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_int_brief</cmdfile></command><command><cmdname>sh ipv6 protocol</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_protocol</cmdfile></command><command><cmdname>sh ipv6 route local</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_local</cmdfile></command><command><cmdname>sh ipv6 route summary</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_summary</cmdfile></command><command><cmdname>sh ipv6 route connected</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_connected</cmdfile></command><command><cmdname>sh ipv6 route stat</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_route_stat</cmdfile></command><command><cmdname>sh ipv6 access-list</cmdname><cmdfile>./output/C1_TR1_IT1_R1_sh_ipv6_access-list</cmdfile></command><command><cmdname>sh ipv6 prefix-list</cmdname><cmd |
NewerOlder