2016年5月24日

openstack shell example

摘要: get vpn router: vpn_routers=(`neutron vpn-service-list -c router_id | head -n -1 | tail -n +4 | awk '{print $2}' | sort`) get router without gateway: 阅读全文

posted @ 2016-05-24 15:41 yaoweilei 阅读(121) 评论(0) 推荐(0)

shell cmd example

摘要: get ip address: LANG=C ip a show eth0 | grep 'inet' | grep -v 'inet6' | awk '{print $2;}' | cut -d'/' -f1` get terminal user: who | awk -F '(' '{print 阅读全文

posted @ 2016-05-24 15:37 yaoweilei 阅读(132) 评论(0) 推荐(0)

导航