Dell FORCE10 Open Automation Configuration page 24

Open automation guide
Table of Contents

Advertisement

#!/usr/pkg/bin/perl -w
require '/usr/pkg/scripts/smartutils/F10SmartUtils.pl';
usage() if ($#ARGV < 1);
($start,$end)=@ARGV;
$startVlan = $start;
$endVlan = $end;
for (my $i=$startVlan;$i<=$endVlan;$i++) {
my $createvlanId = F10CreateVlanId($i);
}
sub usage {
print "usage: createVlans.pl <start> <end>\n";
exit;
}
24
|
Smart Scripting
Figure 3-3. PERL Script with API function call: Example
<-------------------- Invoke a PERL API function
Table 3-2
describes the supported functions and required arguments that you can use
in PERL scripts run on a Dell Force10 switch to connect through a telnet session and
gather information or configure parameters through the CLI.
<------ Load the PERL API

Advertisement

Table of Contents
loading

This manual is also suitable for:

Force10

Table of Contents