Chris Josephes > router-lg > Router::LG::Juniper

Download:
router-lg-0.98a.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.9   Source  

NAME ^

Router::LG::Juniper - Looking Glass driver for Juniper routers

SYNOPSIS ^

 use Router::LG;
 $glass=Router::LG->new();
 $router={
  -hostname => "core.router.isp.node",
  -class => "Juniper",
  -args => {
    -sshCommand => "/opt/ssh/bin/ssh",
  },
 };
 $glass->router($router);

DESCRIPTION ^

The Router::LG::Juniper class is a driver class for LG.pm specific to Juniper Routers. Implementors of LG.pm should not need to call methods on this class directly, as the Router::LG module can be used as the primary interface.

REMOTE ACCESS METHODS ^

Router::LG::Juniper uses the SSH protocol to access the remote router. Currently, this can only be achieved by making a call to the "ssh" client command. It assumes that the full path is "/usr/local/bin/ssh", but this can be altered by specifying the -sshCommand arguement. Don't let end users specify the values that can be set for this arguement.

COMMANDS ^

The following commands are defined by default:

 bgp            show route protocol bgp aspath-regex !a terse
 routes         show route !i terse
 traceroute     traceroute !ih
 ping           ping count 3 !ih

Read the distribution documentation for information on the command data format.

syntax highlighting: