junoscript-perl
view release on metacpan or search on metacpan
specify your private installation directory. The standard directory is
the installation directory configured in the perl executable. Usually,
the standard directory is /usr/lib or /usr/local/lib, and you'll need
root privilege to install modules in these directories.
If installing modules under the standard directory (normally
/usr/local/lib and you'll need root privilege):
[/my/junoscript-n.n]% perl install-prereqs.pl -force
Installing modules under your own private directory (see notes below):
[/my/junoscript-n.n]% setenv PERL5LIB /my/private/directory/lib
[/my/junoscript-n.n]% setenv MANPATH "$MANPATH/:$PERL5LIB/../man"
[/my/junoscript-n.n]% setenv PATH "$PATH/:$PERL5LIB/../bin"
[/my/junoscript-n.n]% perl install-prereqs.pl -install_directory
$PERL5LIB -force
As the install-prereqs.pl script installs the last few modules, it
prompts you for input. Simply following the instructions and accept
default responses whenever they are offered. The only exception is
during installation of the SSH module: here you must choose one of the
cipher packages supported by the JUNOScript server-- DES, DES3 or
Blowfish.
[/my/junoscript-n.n]% make install
Notes for private directory installation:
* If you are installing the JUNOScript modules in a private directory,
remember to set PERL5LIB, MANPATH, and PATH environment variables
before installing the Perl modules and running the examples. If the
PERL5LIB variable is set, perl will first look for Perl modules in the
specified directory before looking in the standard directory. (If
you're using sh, ksh or bash, use EXPORT instead of setenv.)
% setenv MANPATH "$MANPATH/:$PERL5LIB/../man"
% man JUNOS::Device
% setenv PATH "$PATH/:$PERL5LIB/../bin"
% which xsltproc
Back to Top
Running the Sample Scripts
The JUNOScript Perl distribution includes sample scripts that demonstrate
how to use JUNOScript to retrieve and change the configuration of a
Juniper Networks router. The samples reside in the junoscript-n.n/examples
directory.
standard directory, you can use the -install_directory option to
specify your private installation directory. The standard directory is
the installation directory configured in the perl executable.
Installing modules under the standard directory (it's normally
/usr/local/lib and you'll need root privilege):
[/my/junoscript-n.n]% perl install-prereqs.pl -used_by <example>
-force
Installing modules under your own private directory (see notes below):
[/my/junoscript-n.n]% setenv PERL5LIB /my/private/directory/lib
[/my/junoscript-n.n]% perl install-prereqs.pl -used_by <example>
-install_directory $PERL5LIB -force
Where <example> is get_chassis_inventory, load_configuration, RDB,
diagnose_bgp, or JUNOS::Device. If the -used_by option is not used,
the default is to install all required modules except those required
by RDB. The reason required modules for RDB is not part of the default
installation is because it requires an RDB being installed first.
When install-prereqs.pl is installing Term::ReadKey, it will prompt
README.html view on Meta::CPAN
Usually, the standard directory is <tt>/usr/lib</tt> or <tt>/usr/local/lib</tt>, and
you'll need root privilege to install modules in these directories.
<br />
<br />
<i>If installing modules under the standard directory (normally /usr/local/lib and you'll need root privilege):</i>
<br />
<tt>[/my/junoscript-<i>n.n</i>]% perl install-prereqs.pl -force</tt>
<br />
<br />
<i>Installing modules under your own private directory</i> (see <a href="#notes01">notes</a> below):<br />
<tt>[/my/junoscript-<i>n.n</i>]% setenv PERL5LIB /my/private/directory/lib<br /></tt>
<tt>[/my/junoscript-<i>n.n</i>]% setenv MANPATH "$MANPATH/:$PERL5LIB/../man" <br /></tt>
<tt>[/my/junoscript-<i>n.n</i>]% setenv PATH "$PATH/:$PERL5LIB/../bin" <br /></tt>
<tt>[/my/junoscript-<i>n.n</i>]% perl install-prereqs.pl -install_directory $PERL5LIB -force</tt>
<br />
<br />
As the <tt>install-prereqs.pl</tt> script installs the last few modules,
it prompts you for input. Simply following the instructions and
accept default responses whenever they are offered. The only
exception is during installation of the SSH module: here you
must choose one of the cipher packages supported by the JUNOScript
server-- DES, DES3 or Blowfish.
README.html view on Meta::CPAN
<ul class="bcopy">
<span class="bullet"><li></span>
If you are installing the JUNOScript modules in a private directory,
remember to set <tt>PERL5LIB</tt>, <tt>MANPATH</tt>, and <tt>PATH</tt>
environment variables
before installing the Perl modules and running the examples.
If the <tt>PERL5LIB</tt> variable is set, perl will first look
for Perl modules in the
specified directory before looking in the standard directory. (If you're
using sh, ksh or bash, use <tt>EXPORT</tt> instead of <tt>setenv</tt>.)
<br />
<br />
<tt>
% setenv MANPATH "$MANPATH/:$PERL5LIB/../man"
<br />
% man JUNOS::Device
<br />
% setenv PATH "$PATH/:$PERL5LIB/../bin"
<br />
% which xsltproc
</tt>
<br />
</li>
</ul>
README.html view on Meta::CPAN
<span class="bullet"><li></span>Install the Perl modules required by the specific example. If you wish to install the required files in your private directory instead
of the standard directory, you can use the -install_directory option to specify your private installation directory. The standard directory is the installation
directory configured in the perl executable.
<br /><br />
<i>Installing modules under the standard directory (it's normally /usr/local/lib and you'll need root privilege):</i><br />
<tt>[/my/junoscript-<i>n.n</i>]% perl install-prereqs.pl -used_by <example> -force</tt>
<br /><br />
<i>Installing modules under your own private directory</i> (see <a href="#notes02">notes</a> below):<br />
<tt>[/my/junoscript-<i>n.n</i>]% setenv PERL5LIB /my/private/directory/lib<br />
[/my/junoscript-<i>n.n</i>]% perl install-prereqs.pl -used_by <example> -install_directory $PERL5LIB -force</tt>
<br /><br />
Where <example> is get_chassis_inventory, load_configuration, RDB, diagnose_bgp, or JUNOS::Device. If the -used_by option is not used, the default is to install
all required modules except those required by RDB. The reason required modules for RDB is not part of the default installation is because it requires an RDB being
installed first.
<br /><br />
When install-prereqs.pl is installing Term::ReadKey, it will prompt user for inputs.
install-prereqs.pl view on Meta::CPAN
-install_directory <directory>
Use this option to install the modules under your own private
directory. By default, the installation directory for the
perl modules is configured in the perl executable and
the install directory for libexpat.a is /usr/local/lib.
If this option is provided, the specified directory will be
the installation directory. Make sure you set the environment
variable PERL5LIB to the same private directory before running
this script and the examples.
(e.g. setenv PERL5LIB /my/private/directory/lib)
-force
Upgrade all required modules to the versions specified and install
even when 'make test' has failed. By defaul, this script reports
warning/failure as soon as it detects an existing module with an
older version or when 'make test' fails. This option tells it
to go ahead and force the installation.
-force_update
This does half of what -force does. It tells the script to
( run in 0.694 second using v1.01-cache-2.11-cpan-a1d94b6210f )