Net::Telnet::Netscreen 1.1 |
Date Added: March 22, 2010 | Visits: 641 |
|
||||||||
|
Net::Telnet::Netscreen is a Perl module that interacts with a Netscreen firewall. Net::Telnet::Netscreen is mostly a pure rippoff of Net::Telnet::Cisco, with adaptations to make it work on the Netscreen firewalls. It also has some additional commands, but for basic functionality, see Net::Telnet and Net::Telnet::Cisco documentation. use Net::Telnet::Netscreen; my $fw = new Net::Telnet::Netscreen(host=>192.168.1.1); $fw->login(admin,password) or die $fw->error; $fw->enter_vsys(wineasy.no); print "We are now in: ".$fw->current_vsys."n"; my %vsys=$fw->get_vsys; foreach $key (sort (keys %vsys)) { print $key,=, $vsys{$key},"n"; } print @results; Before you use Net::Telnet::Netscreen, you should probably have a good understanding of Net::Telnet, so perldoc Net::Telnet first, and then come back to Net::Telnet::Netscreen to see where the improvements are. Some things are easier to accomplish with Net::SNMP. SNMP has three advantages: its faster, handles errors better, and doesnt use any vtys on the router. SNMP does have some limitations, so for anything you cant accomplish with SNMP, theres Net::Telnet::Netscreen. New methods not found in Net::Telnet follow: enter_vsys - enter a virtual system Enter a virtual system in the firewall. parameter is system you want to enter . You may enter another vsys even if you are in a vsys. Note that we will save your changes for you if you do. (only works for ns-500+) enter_vsys - exit from the level you are on exit from the vsys you are in, or from the system if you are on the top. takes one parameter. if you should save any changes or not. (only works for ns-500+) current_vsys - show current vsys return the vsys you currently are in. returns blank if youre not in a vsys. (only works for ns-500+) get_vsys - return vsys. returns a hash of all the virtual systems on your system, with system ids for values (only works for ns-500+) ha_mode - return high availability mode. return the HA mode, if your system is in a HA cluster, or false if it isnt. ping - ping a system. Returns percentage of success (0-100). $sucess=$fw->ping(192.168.1.1); exit - Exit system use this command to exit system, or exit current vsys getValue - Set a value from the box. Will return a value from the firewall, or from the vsys you are in, if you arent in root. setValue - Set a Value in the box. Set a value in the box, returns true if set successfully. lastPrompt - Show the last prompt returned. Shows the last prompt returned by your netscreen device. lastCmd - Show the last command executed. Shows the last command executed on your netscreen device..
|
| License: Freeware | Size: 10.24 KB |
|
Libraries
-
Data::Type 0.01.04
Data::Type is a Perl module with versatile data and value types. SYNOPSIS use Data::Type qw(:all); use Error qw(:try); try { verify $email , EMAIL; verify $homepage , URI(http); verify $cc , CREDITCARD( MASTERCARD, VISA ); verify... |
22.53 KB | |
|
Libraries
-
File::Revision 0.03
File::Revision is a Perl module to return a name of non-existing backup file with a revision id. SYNOPSIS ####### # Subroutine interface # use File::Revision qw(new_revision num2revision parse_options revision2num revision_file rotate);... |
89.09 KB | |
|
Libraries
-
SNMP::Multi 2.1
SNMP::Multi is a Perl module to perform SNMP operations on multiple hosts simultaneously. SYNOPSIS use SNMP::Multi; my $req = SNMP::Multi::VarReq->new ( nonrepeaters => 1, hosts => [ qw/ router1.my.com router2.my.com / ], vars => [ [... |
25.6 KB | |
|
Libraries
-
Statistics::Forecast 0.3
Statistics::Forecast is a Perl module that calculates a future value. This is a dummy Oriented Object module that calculates a future value by using existing values. The new value is calculated by using linear regression. SYNOPSIS use... |
3.07 KB | |
|
Libraries
-
SNMP::Persist 0.05
SNMP::Persist is a Perl module for the SNMP pass_persist threaded backend. SYNOPSIS use SNMP::Persist qw(&define_oid &start_persister &define_subtree); use strict; use warnings; #define base oid to host the subtree... |
6.14 KB | |
|
Libraries
-
HCKit::Template 0.02
HCKit::Template is a Perl module with a template system for HTML construction. This module constructs an HTML page from a template. The conversion proceeds with the help of rewrite rules and data sources. Rewrite rules can be specified in the... |
11.26 KB | |
|
Libraries
-
App::SimpleScan::Plugin::Forget 1.02
App::SimpleScan::Plugin::Forget is a Perl module to forget a variables value. SYNOPSIS # In a simple_scan input file, after installing this module: # Define the variable foo: %%var foo baz bar quux # Later in the file: %%forget foo #... |
4.1 KB | |
|
Libraries
-
Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just... |
10.24 KB | |
|
Libraries
-
Contextual::Return 0.1.0
Contextual::Return is a Perl module to create context-senstive return values. SYNOPSIS use Contextual::Return; use Carp; sub foo { return SCALAR { thirty-twelve } BOOL { 1 } NUM { 7*6 } STR { forty-two } LIST { 1,2,3 } HASHREF {... |
22.53 KB | |
|
Libraries
-
OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius.. |
3.07 KB |
|
Programming
-
RailsTidy 0.1
RailsTidy project is a plugin for Ruby On Rails.. |
11.26 KB | |
|
Programming
-
Strings edit 1.9
Strings edit is a library that provides I/O facilities for integer, floating-point, Roman numbers, and strings. Both input and output subroutines support string pointers for consequent stream processing. The output can be aligned in a fixed size... |
54.27 KB | |
|
Programming
-
BScript 0.3
BScript is a (yet another) BASIC interpreter. It is free software and open-sourced, licensed under the terms of the GNU General Public License version 2 or later. You can use BScript to teach BASIC to your students, write understandable shell... |
112.64 KB | |
|
Programming
-
Kits JavaScript Brainf*ck Interpreter 0.01
Kits JavaScript Brainf*ck Interpreter is a rather fast interpreter for the Brainf*ck esoteric programming language.. Kit's JavaScript Brainfuck Interpreter v0.01 |
5.12 KB | |
|
Programming
-
dis6502 0.12
dis6502 is a flow-tracing disassembler for the 6502, originally written by Robert Bond and supporting Atari binary files. Robert posted dis6502 to the Usenet newsgroup net.sources on 9-Oct-1986, and to comp.sources.unix 7-Jun-1988. Udi... |
19.46 KB | |
|
Libraries
-
Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;... |
8.19 KB | |
|
Libraries
-
sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... |
10.24 KB | |
|
Libraries
-
App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>... |
54.27 KB | |
|
Libraries
-
PDL::Graphics::TriD 2.4.3
PDL::Graphics::TriD is a PDL 3D interface. SYNOPSIS use PDL::Graphics::TriD; # After each graph, let the user rotate is and # wait for him to press q, then make new graph line3d($coords); # $coords = (3,n,...) line3d($coords,$colors); #... |
2.1 MB | |
|
Libraries
-
SmartColorWell 1.2
SmartColorWell is a cross-platform open-source ColorWell class for REALbasic 4 or greater. The SmartColorWell control stores a color value and displays that color in a simulated BevelButton that when pressed allows the user to change the color... |
21.5 KB |
