Dell FORCE10 Open Automation Manual de usuario Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
24 | Smart Scripting
www.dell.com | support.dell.com
Figure 3-3. PERL Script with API function call: Example
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.
#!/usr/pkg/bin/perl -w
require '/usr/pkg/scripts/smartutils/F10SmartUtils.pl'; <------ Load the PERL API
usage() if ($#ARGV < 1);
($start,$end)=@ARGV;
$startVlan = $start;
$endVlan = $end;
for (my $i=$startVlan;$i<=$endVlan;$i++) {
my $createvlanId = F10CreateVlanId($i); <-------------------- Invoke a PERL API function
}
sub usage {
print "usage: createVlans.pl <start> <end>\n";
exit;
}
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 97 98

Comentarios a estos manuales

Sin comentarios