use InCharge::session;
There are three different syntaxes that you can can then choose from to connect to the Domain Manager:
-
$session = InCharge::session->init( );
-
$session = InCharge::session->new( "INCHARGE" );
-
$session = InCharge::session->new(
broker=>"localhost:426",
domain=>"INCHARGE",
username=>"noddy",
password=>"bigears",
traceServer => 1
locale=>”en_US”
);
$object = $session->object( "Host::toytown1" ); $object = $session->create( "Router::crossroads" ); (... and continuing with the methods described in the following sections...)