- Location:
- /trunk/pxeconfig
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
/trunk/pxeconfig/Changelog
r20 r30 1 0.4.1 2 Minor change to pxeconfig/pxeconfigd utiltites. Added '-V/--version' 3 flag for printing version info. 4 5 0.4 6 Pxeconfig can now be used interactively or via command line 7 options. 8 1 9 0.3 2 10 Fixed a bug in hexls. The regular expression to determine if -
/trunk/pxeconfig/INSTALL
r20 r30 56 56 To activate this on a client you must add the following line to the 'master' 57 57 script of the node. It will remove the pxe config file for the node 58 from the pxe bootserver. I personally place the line just before the network 59 interface will be brought down: 58 from the pxe bootserver. I personally place the line just before the umount 59 commands. See below which command to use for which systemimager version. 60 Telnet is not included in the 3.X versions. 60 61 # Remove the <hex_ipaddr> file from the pxelinux.cfg directory. 61 62 # So the client will boot from disk 62 63 # 63 telnet $IMAGESERVER 10000 64 3.X) chroot /a telnet $IMAGESERVER 10000 65 2.X) telnet $IMAGESERVER 10000 66 64 67 65 68 Comments or Suggestions mail them to: -
/trunk/pxeconfig/README
r20 r30 36 36 37 37 pxeconfig) 38 With this interactiveprogram we can specify which pxe config file38 With this program we can specify which pxe config file 39 39 a node or nodes must use. This utility will create the links 40 40 in '/tftpboot/pxelinux.cfg' -
/trunk/pxeconfig/changelog
r20 r30 1 Always edit this file when changes are commited: 1 Always edit this file when changes are commited:: 2 2 3 3 $Log: changelog,v $ 4 Revision 1.23 2002/11/29 16:47:38 sscpbas 5 Changelog: 6 Added what was changed for this version. 7 8 Revision 1.22 2002/11/29 16:31:15 sscpbas 9 pxeconfigd: 10 Moved CVS info to the comment lines instead of python documentation. 11 12 Revision 1.21 2002/11/29 16:13:13 sscpbas 13 pxeconfigd: 14 Added version flag (-V, --version) 15 16 Revision 1.20 2002/11/29 12:46:05 sscpbas 17 pxeconfig: 18 changed -v to -V for version info 19 20 Revision 1.19 2002/11/29 12:09:45 sscpbas 21 pxeconfig: 22 Added version support. (-v, --version) 23 4 24 Revision 1.18 2002/09/30 09:22:02 sscpbas 5 25 pxeconfig: -
/trunk/pxeconfig/hexls
- Property keywords set to Id
- Property svn:keywords set to Id
r20 r30 28 28 Date: September 2002 29 29 30 CVS info 31 $Date: 2002/09/11 12:59:19 $ 32 $Revision: 1.5 $ 30 SVN info 31 $Id$ 33 32 ''' 34 33 -
/trunk/pxeconfig/pxeconfig
- Property keywords set to Id
- Property svn:keywords set to Id
r20 r30 6 6 # Tester: Walter de Jong <walter@sara.nl> 7 7 # 8 # CVS info 9 # $Date: 2002/09/30 09:22:02 $ 10 # $Revision: 1.11 $ 8 # SVN info 9 # $Id$ 11 10 # 12 11 # Copyright (C) 2002 … … 31 30 Usage: pxeconfig 32 31 [-d|--directory <pxe_config_dir>] 32 [-V|--version] 33 33 [-n|--net <C-net> -s|--start <number> -e|--end <number> -f|--file <filename>] 34 34 … … 72 72 START='start' 73 73 END='end' 74 75 SHORTOPT_LIST='hd:n:s:e:f:' 76 LONGOPT_LIST=['help', 'directory=', 'net=', 'start=', 'end=', 'file='] 74 VERSION='0.4.1' 75 76 SHORTOPT_LIST='hVd:n:s:e:f:' 77 LONGOPT_LIST=['help', 'version', 'directory=', 'net=', 'start=', 'end=', 'file='] 77 78 78 79 def select_pxe_configfile(): … … 268 269 binfo[FILENAME] = value 269 270 271 elif opt in ['-V', '--version']: 272 print VERSION 273 sys.exit(0) 274 270 275 elif opt in ['-h', '--help']: 271 276 print __doc__ -
/trunk/pxeconfig/pxeconfigd
- Property keywords set to Id
- Property svn:keywords set to Id
r20 r30 19 19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 20 20 # 21 # SVN info 22 # $Id$ 21 23 """ 22 24 Author: Bas van der Vlies <basv@sara.nl> … … 31 33 -d/--directory <dir> 32 34 Where <dir> is the directory where the pxe config files reside. 35 -V/--version 36 Prints the version number and exits 33 37 34 38 Note: 35 39 This server can ONLY be started from inetd. 36 37 CVS info38 $Date: 2002/08/15 06:36:47 $39 $Revision: 1.5 $40 40 """ 41 41 import time … … 56 56 STDIN=0 57 57 STDOUT=1 58 SHORTOPT_LIST=' d:'59 LONGOPT_LIST=[' directory=']58 SHORTOPT_LIST='Vd:' 59 LONGOPT_LIST=['version', 'directory='] 60 60 61 61 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' 62 VERSION = '0.4.1' 62 63 63 64 # Give the current time … … 133 134 sys.exit(1) 134 135 135 if opts: 136 opt, PXE_CONF_DIR = opts[0] 136 for opt, value in opts: 137 138 if opt in ['-d', '--directory']: 139 if not os.path.isdir(value): 140 os.write(STDOUT, "PXE booting is not configured") 141 sys.exit(1) 142 else: 143 PXE_CONF_DIR = value 144 145 elif opt in ['-V', '--version']: 146 print VERSION 147 sys.exit(0) 137 148 138 149 def server(): … … 140 151 """ 141 152 check_args(sys.argv) 142 143 if not os.path.isdir(PXE_CONF_DIR):144 os.write(STDOUT, "PXE booting is not configured")145 sys.exit(1)146 147 153 handleConnection() 148 154
Note: See TracChangeset
for help on using the changeset viewer.