cancel
Showing results for 
Search instead for 
Did you mean: 

Netconf - IVE ?

piccolo78_
Occasional Contributor

Netconf - IVE ?

Hi ,

anyone got a sample for netconf in combination with the sa ?

thanks

regards

1 REPLY 1
flip_pipe_
Frequent Contributor

Re: Netconf - IVE ?

This is a old question, but I hope to help someone.

 

Using the example scripts from netconf Perl API, I've change to this.

 

# connect to the Netconf server
my $jnx = new Net::Netconf::Manager(%deviceinfo);
unless (ref $jnx) {
    croak "ERROR: $deviceinfo{hostname}: failed to connect.\n";
}

# Edit the configuration
my %editargs = (
source => 'running',
filter => '<filter>
        <configuration/>
    </filter>'
);

my $res = $jnx->get_config(%editargs);

This will get all configuration from the device. And I also change the script to instead of transform the output with a xsl, just save the receive XML to a file.

 

Other think is needed to change, is the port of netconf, because it is in the modules is 830  and the device is listen on 22.

 

Check this file to change it:

 

/usr/local/share/perl5/Net/Netconf/Constants.pm

 

use constant NC_DEFAULT_PORT => 830

to

use constant NC_DEFAULT_PORT => 22