User Tools

Site Tools


network_stuff:juniper:vqfx:genhost

This is an old revision of the document!


#!/bin/bash
vagrant ssh-config > ssh-config
echo -e "
[VQFX]
vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4`
vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4`
" > ini/hosts
echo -e "
[VQFX]
vqfx-re-01 ansible_host=`egrep -A 1 "Host vqfx-re-01" ssh-config | egrep HostName | cut -d' ' -f 4`
vqfx-re-02 ansible_host=`egrep -A 1 "Host vqfx-re-02" ssh-config | egrep HostName | cut -d' ' -f 4`
"
network_stuff/juniper/vqfx/genhost.1576670974.txt.gz · Last modified: (external edit)