I have a SLES 10 server that runs all of my Zenworks for Desktops components. Whenever we have problems with one of the Zenworks components, the first thing I do is run this script that tells me the status of all the appropriate daemons:
#begin zencheck.sh
#!/bin/bash
#check status of Zenworks services
clear
. /etc/rc.status
rc_reset
/etc/init.d/novell-proxydhcp status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-awsi status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-inv status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-sybase status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-wol status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmgprebootpolicy status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmgserv status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-tftp status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zfs status
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmd status
rc_status -v
echo “automatically exiting in 20 seconds”
sleep 20
#end zencheck.sh
If I want to start all the Zenworks daemons at once, I use this script
#begin zenstart.sh
#!/bin/bash
#begin Zenworks services
clear
. /etc/rc.status
rc_reset
/etc/init.d/novell-proxydhcp start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zdm-awsi start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zdm-wol start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zmgprebootpolicy start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zmgserv start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-tftp start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zfs start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zmd start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zdm-inv start
rc_status -v
sleep 3
rc_reset
/etc/init.d/novell-zdm-sybase start
rc_status -v
sleep 3
echo “automatically exiting in 20 seconds”
sleep 20
#end zenstart.sh
And if I want to stop all the Zenworks daemons at once
#begin zenstop.sh
#!/bin/bash
# stop Zenworks services
clear
. /etc/rc.status
rc_reset
/etc/init.d/novell-zdm-inv stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-sybase stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-proxydhcp stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-awsi stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zdm-wol stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmgprebootpolicy stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmgserv stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-tftp stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zfs stop
rc_status -v
sleep 1
rc_reset
/etc/init.d/novell-zmd stop
rc_status -v
echo “automatically exiting in 20 seconds”
sleep 20
#end zenstop.sh
I know this isn’t terribly exciting, but I create shortcuts to these three files on my desktop so I can quickly check their status, start, or stop all the ZfD services at once. The sleep commands aren’t necessary; I just like to be able to see what’s going on, and it went too fast for me to read without them.