ip add add 192.168.1.49/24 dev eth0
ip add del 192.168.1.49/24 dev eth0
ip route flush table test
ip route show table test
ip route add default via 192.168.55.2 dev eth1 table test
ip rule add from 192.168.55.0/24 table test
[for]
代码语言:javascript复制
for i in `cat u`;do ng_find $i >>u.path 2>>u.log; done
for i in `cat u.path`; do sed -i 's=soft.com.soft.com.log=soft.com.log=' $i; done
for i in `cat u.path` ; do sed -i -r -e 's=/log/zdr/(ndc-w -w ).soft.com.log=/log/zdr/1.log=' -e 's=/log/(ndc-w -w ).soft.com.log=/log/1.log=' $i; done
for i in `cat u.address2`; do nexec -i -l $i ln -s /usr/local/ssl/lib/libssl.so.0.9.8 /usr/lib/libssl.so.0.9.8; nexec -i -l $i ln -s /usr/local/ssl/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.8; done
(for i in `cat u.path`;do sed -i -r -e "s=(-ps '/opt/(w )/S )=1 -u 2=" $i;done) >u.log 2>u.log2
(for i in `cat u`;do nexec -i -l $i ln -s /usr/local/ssl/lib/libssl.so.0.9.8 /usr/lib/libssl.so.0.9.8; nexec -i -l $i ln -s /usr/local/ssl/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0.9.8; done) 1>&8 2>&9
for i in `cat time_s`; do date -d "1970-01-01 UTC $i seconds" "%x %X%z %Z" ; done;
for i in `cat o2`; do ng_disable_check -H $i -y -q -a wfang01 -c troubleshooting ; done
for i in `cat u.path`; do sed -i -r -f p $i; done