Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
Mon::Protocol(3)      User Contributed Perl Documentation     Mon::Protocol(3)

       Mon::Protocol - Methods for parsing / dumping a protocol	block

	   use Mon::Protocol;

       new Creates a new object. A hash	can be supplied	which sets the default
	   values. An example which contains all of the	variables that you can

	       $c = new	Mon::Protocol;

	   Returns the current internal	structure as a string dump suitable
	   for passing to "parse_data".

	   Parses a command block (from	begin_block to end_block), as
	   generated by	dump_data.

	   Sets	or returns the type of the current command block. See @TYPES
	   for valid type codes.

	   In the future, it is	possible that this module will perform
	   additional checking based on	the type, for now it is	left to	the
	   application to interpret this.

	   Returns an array containing all section names within	the block.

	   Returns a hash containing the key/value pairs of the	specific

	   Completely removes the specified section from the block.

	   Adds	the key/value pairs in the hash	to the specified section.

		   $foo->add_to_section("_hostgroup", {	"" -> "ok" });

	   Deletes the key/value pair from the section.

		   $foo->delete_from_section("_hostgroup", "");

	   Should any of the functions return an error (-1), this function can
	   be used to retrieve a more elaborate	error message and to reset the
	   internal error state.

perl v5.32.0			  2001-01-11		      Mon::Protocol(3)


Want to link to this manual page? Use this URL:

home | help