Changeset 6


Ignore:
Timestamp:
02/21/02 14:21:52 (20 years ago)
Author:
sscpbas
Message:

Added the license info to each utility and fix and error in the getopt
handling for pxeconfig utility

Location:
trunk/pxeconfig
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/INSTALL

    r5 r6  
    2424       Connection closed by foreign host.
    2525
     26     In syslog a line will be added if the removal is succesful:
     27      Feb 20 09:32:40 test pxeconfigd: /tftpboot/pxelinux.cfg/7F000001
     28
    2629
    2730 4) As you can see '/tftpboot/pxelinux.cfg/' is the default directory. If
     
    3235
    3336
    34 If the daemon work and you want to install/reinstall a node a link
     37If the daemon works and you want to install/reinstall a node a link
    3538must be placed in the '/tftpboot/pxelinux.cfg' directory. This can
    3639be done with the 'pxeconfig' utility. This utility will ask some
    37 question and make the links for you.i The utility require the following
     40question and make the links for you. The utility require the following
    3841setup:
    3942  1) All the pxe configuration files must start with preamble 'default.'
     
    4952        pxeconfig -d /<some>/<other>/<place>
    5053
    51 The last utility is 'hexls'. This utility will displat the hex pxe config
     54The last utility is 'hexls'. This utility will display the hex pxe config
    5255file with the corresponding ip-addres.
     56
     57
     58To activate this on a client tou must add the this line to the 'master'
     59script of the node. It will remove the pxe config file for the node
     60on the bootserver. I personally place the line just before the network
     61interface will be brought down:
     62   # Remove the <hex_ipaddr> file from the pxelinux.cfg directory.
     63   # So the client will boot from disk
     64   #       
     65   telnet $IMAGESERVER 10000
    5366
    5467Commens or Suggestions mail them to:
  • trunk/pxeconfig/changelog

    r5 r6  
    1 Always edit this file when changes are commited:a
    2 
     1Always edit this file when changes are commited:
    32
    43$Log: changelog,v $
     4Revision 1.5  2002/02/21 13:21:51  sscpbas
     5Added the license info to each utility and fix and error in the getopt
     6handling for pxeconfig utility
     7
    58Revision 1.4  2002/02/20 12:43:18  sscpbas
    69Update the docs and added the INSTALL file
  • trunk/pxeconfig/hexls

    r3 r6  
    11#! /usr/bin/env python
     2# Copyright (C) 2000, SARA.
     3#
     4# Permission to use, copy, modify, and distribute this software and its
     5# documentation for non-commercial purposes and without fee is hereby
     6# granted, provided that the above copyright notice appears in all copies
     7# and that both the copyright notice and this permission notice appear in
     8# supporting documentation.
     9#
     10# Neither SARA (Stichting Academisch Rekencentrum Amsterdam) nor the
     11# nor the author make any representations about the suitability of this
     12# software for any purpose. This software is provided ``as is'' without
     13# express or implied warranty.
     14#
     15#
    216'''
    317hexls.py - Lists directory contents, but converts the hexadecimal IP numbers
     
    822
    923CVS info
    10   $Date: 2002/02/19 09:38:10 $
    11   $Revision: 1.1 $
     24  $Date: 2002/02/21 13:21:51 $
     25  $Revision: 1.2 $
    1226'''
    1327
  • trunk/pxeconfig/pxeconfig

    r4 r6  
    77#
    88# CVS info
    9 #  $Date: 2002/02/19 09:57:40 $
    10 #  $Revision: 1.3 $
     9#  $Date: 2002/02/21 13:21:51 $
     10#  $Revision: 1.4 $
     11#
     12# Copyright (C) 2000, SARA.
     13#
     14# Permission to use, copy, modify, and distribute this software and its
     15# documentation for non-commercial purposes and without fee is hereby
     16# granted, provided that the above copyright notice appears in all copies
     17# and that both the copyright notice and this permission notice appear in
     18# supporting documentation.
     19#
     20# Neither SARA (Stichting Academisch Rekencentrum Amsterdam) nor the
     21# nor the author make any representations about the suitability of this
     22# software for any purpose. This software is provided ``as is'' without
     23# express or implied warranty.
     24#
    1125#
    1226"""
     
    173187  iptable[network].append(int(end))
    174188
    175 
    176189  for net in iptable.keys():
    177190    if DEBUG:
     
    179192    create_links(iptable[net])
    180193
     194
    181195def check_args(argv):
    182196  """
    183   Must we use another directory for the PXE configuration
     197  command line option:
     198    -d/--directory <dir>
     199      Where <dir> is the directory where the pxe config files reside.
    184200  """
    185201  global PXE_CONF_DIR
     
    187203    opts, args = getopt.getopt(argv[1:], SHORTOPT_LIST, LONGOPT_LIST)
    188204  except getopt.error, detail:
    189     print __doc__
     205    print check_args.__doc__
    190206    print detail
    191207    sys.exit(1)
  • trunk/pxeconfig/pxeconfigd

    r4 r6  
    11#!/usr/bin/env python
     2# Copyright (C) 2000, SARA.
     3#
     4# Permission to use, copy, modify, and distribute this software and its
     5# documentation for non-commercial purposes and without fee is hereby
     6# granted, provided that the above copyright notice appears in all copies
     7# and that both the copyright notice and this permission notice appear in
     8# supporting documentation.
     9#
     10# Neither SARA (Stichting Academisch Rekencentrum Amsterdam) nor the
     11# nor the author make any representations about the suitability of this
     12# software for any purpose. This software is provided ``as is'' without
     13# express or implied warranty.
     14#
     15#
    216"""
    317Author: Bas van der Vlies <basv@sara.nl>
     
    1731
    1832CVS info
    19   $Date: 2002/02/19 09:57:40 $
    20   $Revision: 1.3 $
     33  $Date: 2002/02/21 13:21:52 $
     34  $Revision: 1.4 $
    2135"""
    2236import time
Note: See TracChangeset for help on using the changeset viewer.