关于在openstack的环境变量.bashrc自定自己简化命令

关于在openstack的环境变量.bashrc自定自己简化命令:
alias echoall='for a in `find /var/log/nova/ -type f`;do echo > $a;done;'
alias reli='service libvirtd restart'
alias reht='service httpd restart'
alias reap='service openstack-nova-api restart'
alias resc='service openstack-nova-scheduler restart'
alias reco='service openstack-nova-compute restart'
alias rene='service neutron-server restart'

alias reall='
service openstack-nova-api restart
service openstack-nova-cert restart
service openstack-nova-consoleauth restart
service openstack-nova-scheduler restart
service openstack-nova-conductor restart
service openstack-nova-novncproxy restart
service openstack-nova-compute restart
'
alias stopall='
service openstack-nova-api stop
service openstack-nova-cert stop
service openstack-nova-consoleauth stop
service openstack-nova-scheduler stop
service openstack-nova-conductor stop
service openstack-nova-novncproxy stop
service openstack-nova-compute stop
'

alias nm='nova-manage service list'
alias grep='grep --color'

alias tailfco='tailf /var/log/nova/compute.log'
alias tailfap='tailf /var/log/nova/api.log'
alias tailfsc='tailf /var/log/nova/scheduler.log'


cenos7-juno
alias re='systemctl restart'
alias echoall='for a in `find /var/log/nova/ -type f`;do echo > $a;done; 
for a in `find /var/log/neutron/ -type f`;do echo > $a;done;'
alias echono='for a in `find /var/log/nova/ -type f`;do echo > $a;done;'
alias echone='for a in `find /var/log/neutron/ -type f`;do echo > $a;done;'
alias reli='systemctl restart libvirtd'
alias reht='systemctl restart httpd'
alias reap='systemctl restart openstack-nova-api'
alias resc='systemctl restart openstack-nova-scheduler'
alias reco='systemctl restart openstack-nova-compute'
alias rene='systemctl restart neutron-server'
alias reallno='
systemctl restart openstack-nova-api
systemctl restart openstack-nova-cert
systemctl restart openstack-nova-consoleauth
systemctl restart openstack-nova-scheduler
systemctl restart openstack-nova-conductor
systemctl restart openstack-nova-novncproxy
systemctl restart openstack-nova-compute
'
alias reallne='systemctl restart neutron-openvswitch-agent neutron-metadata-agent neutron-dhcp-agent neutron-l3-agent neutron-server'
alias stopall='
systemctl stop openstack-nova-api
systemctl stop openstack-nova-cert
systemctl stop openstack-nova-consoleauth
systemctl stop openstack-nova-scheduler
systemctl stop openstack-nova-conductor
systemctl stop openstack-nova-novncproxy
systemctl stop openstack-nova-compute
'
alias nm='nova-manage service list'
alias grep='grep --color'
alias tailfco='tailf /var/log/nova/nova-compute.log'
alias tailfap='tailf /var/log/nova/nova-api.log'
alias tailfsc='tailf /var/log/nova/nova-scheduler.log'
alias rehe='systemctl start openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service'



你可能感兴趣的:(关于在openstack的环境变量.bashrc自定自己简化命令)