您可以使用下列一種方法,判別 Configuration Agent 啟用與否:
使用 Configuration Agent 的控制器程式。以超級使用者身份鍵入下列指令:
/usr/lib/apoc/apocd is-enabled |
代理程式若為啟用,控制器程式會傳回下列訊息:
Checking Configuration Agent enabled status ... Enabled |
否則,控制器程式會傳回下列訊息:
Checking Configuration Agent enabled status ... Not enabled |
使用 smf(5) 執行下列指令:
/usr/bin/svcs svc:/network/apocd/udp:default |
代理程式若為啟用,svcs 會傳回下列訊息:
STATE STIME FMRI online 8:36:04 svc:/network/apocd/udp:default |
代理程式若為停用,svcs 會傳回下列訊息:
STATE STIME FMRI disabled 15:58:34 svc:/network/apocd/udp:default |
代理程式若處於維護模式,svcs 會傳回下列訊息:
STATE STIME FMRI maintenance 8:38:42 svc:/network/apocd/udp:default |