Mohan L
2012-02-23 05:44:11 UTC
Dear All,
Thanks for you time to maintain such a amazing tool rancid.
I am trying to add two more command in rancid(bin/rancid) script to pull
information in Cisco routers.
I found cisco router is points to rancid(bin/rancid) script:
%vendortable = (
'cisco' => 'rancid',
)
I want to add the below two commands in rancid script :
1). show cdp interface
2). show cdp neighbors
Here I have added the method to pull the output of the above commands
@commandtable = (
{'show cdp interface' => 'ShowCdpInterface'},
{'show cdp neighbors' => 'ShowCdpNeighbors'},
)
sub ShowCdpInterface {
}
sub ShowCdpNeighbors {
}
I need some pointer/guide to write the above two method. I am Intermediate
level Perl guy. I am able to fine tune if some one have already written the
script.
I will greatly appreciate any help on this.
Thanks
Mohan L
Thanks for you time to maintain such a amazing tool rancid.
I am trying to add two more command in rancid(bin/rancid) script to pull
information in Cisco routers.
I found cisco router is points to rancid(bin/rancid) script:
%vendortable = (
'cisco' => 'rancid',
)
I want to add the below two commands in rancid script :
1). show cdp interface
2). show cdp neighbors
Here I have added the method to pull the output of the above commands
@commandtable = (
{'show cdp interface' => 'ShowCdpInterface'},
{'show cdp neighbors' => 'ShowCdpNeighbors'},
)
sub ShowCdpInterface {
}
sub ShowCdpNeighbors {
}
I need some pointer/guide to write the above two method. I am Intermediate
level Perl guy. I am able to fine tune if some one have already written the
script.
I will greatly appreciate any help on this.
Thanks
Mohan L