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


router-lg documentation  | view source Contained in the router-lg distribution.

Index


NAME

Top

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

SYNOPSIS

Top

 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

Top

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

Top

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

Top

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.


router-lg documentation  | view source Contained in the router-lg distribution.