Hi,
I am absolutely new to perl and for a specific reqmt I am running the following script:
[CODE=perl]
#!/usr/bin/perl
use warnings;
use lib '/opt/InCharge65/IP/smarts/perl/5.6.1/lib';
use InCharge::sessi on;
$session = InCharge::sessi on->init();
$session = InCharge::sessi on->new( "INCHARGE" );
$session = InCharge::sessi on->new(
broker => "10.213.31.209: 426",
domain => "IPVPN-APM2",
username => "admin",
password => "changeme",
traceServer => 1,
);
$object = $session->create( "Router::crossr oads" );
$session->detach( );
[/CODE]
The errors that I am getting are:
Name "main::obje ct" used only once: possible typo at ./routerpl.pl line 14.
[8] Cant find domain 'INCHARGE' in broker 'localhost:426' , stopped at ./routerpl.pl line 5
PLEASE HELP SOON
Thanks
Gaurav
I am absolutely new to perl and for a specific reqmt I am running the following script:
[CODE=perl]
#!/usr/bin/perl
use warnings;
use lib '/opt/InCharge65/IP/smarts/perl/5.6.1/lib';
use InCharge::sessi on;
$session = InCharge::sessi on->init();
$session = InCharge::sessi on->new( "INCHARGE" );
$session = InCharge::sessi on->new(
broker => "10.213.31.209: 426",
domain => "IPVPN-APM2",
username => "admin",
password => "changeme",
traceServer => 1,
);
$object = $session->create( "Router::crossr oads" );
$session->detach( );
[/CODE]
The errors that I am getting are:
Name "main::obje ct" used only once: possible typo at ./routerpl.pl line 14.
[8] Cant find domain 'INCHARGE' in broker 'localhost:426' , stopped at ./routerpl.pl line 5
PLEASE HELP SOON
Thanks
Gaurav
Comment