Network Change & Configuration Management

Reply
Accepted Solution

How can I add rows to a particular List using NetMRI internal Perl script

Authority
Posts: 40
1070     0

Hi, 

Trying to add rows to an existing list using a Perl script within the NetMRI itself but struggling to enter the data.

 

I can add a blank row, but can't seem to be able to enter the data for each column and the documentation is unclear on this side.

 

The objective is to provide a list of VRF names along with the network domain and VLAN associated with the VRF.

So there are 3 columns in the list, domain, VRF_Name, VLAN_ID

 

 

Thanks in advance.

 

Russ

 

 

Re: How can I add rows to a particular List using NetMRI internal Perl script

[ Edited ]
Adviser
Posts: 395
1070     0

Ok this should help, let me know if you need additional help

 Fields are "my name", "open ports" and id 56 is the list ID number

 

 my $easy2 = $easy->broker->config_list;
 $easy2->create_row({
id => 56, 
'$my_name' => $name,
'$open_ports' => $open_port

});

 

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

Re: How can I add rows to a particular List using NetMRI internal Perl script

Authority
Posts: 40
1070     0

Perfect!!!! 

Exactly what I wanted.

 

 

Thanks Sif. Been bugging me for awhile - I was nearly there but had the wrong syntax.

 

 

Regards

 

Russ

Showing results for 
Search instead for 
Do you mean 

Recommended for You