Work/Solaris
solaris echo 사용.1
Flyyunha
2015. 5. 27. 11:37
# echo "## echo test IP Address ##" >> /etc/hosts
# echo "xxx.xxx.xxx.xxx `hostname`_hme0_t" >> /etc/hosts
# echo "xxx.xxx.xxx.xxx `hostname`_hme2_t" >> /etc/hosts
# echo "`hostname`_hme0_t group `hostname`-ipmp deprecated \-failover netmask 255.255.255.0 broadcast + up" \ >> /etc/hostname.hme0
# echo "addif `hostname`_hme2_t group `hostname`-ipmp deprecated \-failover standby netmask 255.255.255.0 broadcast | up" \ >> /etc/hostname.hme2
# cat /etc/hosts > ./1
[hostname]cat 1
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
192.168.100.211 node1 node1. loghost