Agent functions for SambaServer agent

Online

Starts the smbd daemon at specified or default ports.

Offline

Stops the smbd daemon.

Monitor

Verifies that the smbd daemon is running by reading its pid file. Does indepth monitoring periodically, if configured, by establishing a socket connection to Samba and sending it a NetBIOS session request.

Clean

Stops the smbd daemon forcefully if required.