Net-Appliance-Session-4.200000/0000755000175000017500000000000012452746775015405 5ustar oliveroliverNet-Appliance-Session-4.200000/bin/0000755000175000017500000000000012452746775016155 5ustar oliveroliverNet-Appliance-Session-4.200000/bin/nas0000755000175000017500000001051212452745775016662 0ustar oliveroliver#!/usr/bin/env perl use strict; use warnings FATAL => 'all'; use lib './lib'; use Net::Appliance::Session::Scripting; Net::Appliance::Session::Scripting::run(); # ABSTRACT: Create Reusable Session Scripts # PODNAME: nas __END__ =pod =head1 NAME nas - Create Reusable Session Scripts =head1 VERSION version 4.142720 =head1 SYNOPSIS $ nas --help nas [options] [hostname or IP] -p, --personality Device (default: "ios") -t, --transport method (Serial, Telnet, default: SSH) -u, --username to connect as on device (default: $USER) -R, --record Record session -P, --playback Play back session -s, --script When recording, save playback script to this -l, --cmdlog NAS to record commands to, or play them back from -e, --exit-last Num. of output lines from last command is program exit status -c, --cloginrc RANCID cloginrc with device credentials -z, --nopassword Do not ask for device password (if not using cloginrc) -o, --echo Echo commands sent, when playing back the recorded script/cmdlog -M, --paging Do not attempt to disable command output paging -B, --nobanner Suppress display of any login banner received from the device -q, --quiet Hide informational messages -v, --verbose NCI log ("debug", "notice", "info", etc) -V, --version Display this program's version number -h, --help Display this help text =head1 DESCRIPTION Use this program to help write reusable L scripts, play them back, and also to more easily connect to network devices. =over 4 =item * Start a connection to a network device using CLI switches, and prompts for credentials. This is easier than writing short Perl programs. =item * Record a set of commands issued to one network device into a command log, then replay that log against other devices (C<< -R -l >> and C<< -P -l >>). =item * Record a session and produce a Perl script which when run, replays the session to the same host, or overridable to other devices (C<< -R -s