Thursday, May 26, 2011

Check Linux services on different maschines

chkconfig --list |grep "5:on"|sort >remote-service-list.txt
chkconfig --list |grep "5:on"|sort >local-service-list.txt
diff -b remote-service-list.txt local-service-list.txt |grep "<" |awk '{print $2}' >diff-service.txt

No comments:

Post a Comment