# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/sbin/snappd/scripts/IPMinConfig.pl 1.4 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2000,2002 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # #!/usr/bin/perl -T # @(#)98 1.4 src/bos/usr/sbin/snappd/scripts/IPMinConfig.pl, snapp, bos720 5/31/02 07:50:22 #-------------------------------------------------------------------- #--------Minimum Configuration page for Snapp Program ------------- #-------------------------------------------------------------------- #--------This page is the entry point for the Minimum ------------- #--------Configuration of different Interfaces, Has Links------------ #--------To various Interface Configuration Screens and shows ----- #--------the number of Available Interfaces for each Type ----- #-------------------------------------------------------------------- #--------Links to Pages: IPSEthernet.pl, IP3EEthernet.pl, ----- #--------IPTokenRing.pl ----------------------------- #-------------------------------------------------------------------- $ENV{'PATH'} = '/bin:/usr/bin:/usr/sbin'; #gets the Number of Available Standard Ethernet Interfaces $strSEthernet = `/usr/sbin/lsdev -Cc if | /usr/bin/grep en | /usr/bin/grep Ethernet`; @nums = split(/\n/, $strSEthernet); $SELength = @nums; #gets the Number of Available IEEE Ethernet Interfaces $strSEthernet = `/usr/sbin/lsdev -Cc if | /usr/bin/grep et | /usr/bin/grep IEEE | /usr/bin/grep Ethernet`; @nums = split(/\n/, $strSEthernet); $EEELength = @nums; #gets the Number of Available Token Ring Interfaces $strSEthernet = `/usr/sbin/lsdev -Cc if | /usr/bin/grep tr | /usr/bin/grep Token`; @nums = split(/\n/, $strSEthernet); $TRLength = @nums; open(OUTFILE,">/var/snapp/snapp.fres.tmp"); print OUTFILE < Minimum Configuration Setup 150 15 10 35 70 20 90 10 85 20 115 10 22 115 10 22 115 EOXML close(OUTFILE); system("/usr/bin/cp /var/snapp/snapp.fres.tmp /var/snapp/snapp.fres");