Opened 15 years ago

Closed 15 years ago

#6 closed task (fixed)

Adding pading character

Reported by: bas Owned by: bas
Priority: major Component: pxeconfig
Version: 0.7.1 Keywords:


Hi Bas,

I'm about to add 50 new servers to our cluster, and I came across a minor bug in pxeconfig. The new nodes will be q089...q138, but how do I specify this with pxeconfig ? The obvious way is to use 3-digit start and end numbers, but pxeconfig doesn't like that:

# pxeconfig --basename q -s 089 -e 138 -f default.memdisk_x3455_broadcom_fw_204 q89 not an valid hostname: (-2, 'Name or service not known')

The workaround is to split the range into 89..99 and 100..138. But perhaps pxeconfig could be modified into using 3 digits is I specify the numbers with 3 digits ?

Thanks a lot, Ole

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by bas

  • Owner changed from somebody to bas
  • Status changed from new to assigned
  • Type changed from defect to task


Just i have found some time ;-) I just want to had a extra parameter, like the 'seq' command.

  • -w, --equal-width equalize width by padding with leading zeroes

So it will check both paramaters end and start. If len(end) > len(start) it will add the padding zeroes.


comment:2 Changed 15 years ago by anonymous

Added option + --host-range, -H

comment:3 Changed 15 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

This is the new pxeconfig vesion

Add Comment

Modify Ticket

Change Properties
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.