Menu

#32 Improved Functionality of QuickReg Name Generation

Unstable (example)
closed
nobody
None
5
2016-12-13
2011-01-11
No

As posted here:
https://sourceforge.net/projects/freeghost/forums/forum/730844/topic/4026490

This allows users to auto-generate names based on DMI values if desired.

auto.register.php no longer sets the hostName based the QUICKREG value, it simply sets the hostName to $macsimple, and inventory.php takes care of generating the new name.

In the FOG_QUICKREG_SYS_NAME field in the Quick Registration settings, you can specify DMI values by enclosing the name in curly braces, like PC-{SYSSERIAL}

Valid DMI values are:
SYSMAN, SYSPRODUCT, SYSVERSION, SYSSERIAL, SYSTYPEBIOSVERSION, BIOSVENDOR, BIOSDATE, MBMAN, MBPRODUCTNAME, MBVERSION, MBSERIAL, MBASSET, CPUMAN, CPUVERSION, CPUCURRENT, CPUMAX, MEM, HDINFO, CASEMAN, CASEVER, CASESERIAL, CASESASSET

I believe this also maintains all old functionality, ie you can use **** to auto-generate numbers.

Right now, it will not overwrite old hostName values. If the hostname is not set to the host's mac address, it will simply leave it as is.

Discussion

  • Michael Votaw

    Michael Votaw - 2011-03-28
     
  • mastacontrola

    mastacontrola - 2016-12-13
    • status: open --> closed
    • Group: --> Unstable (example)
     

Log in to post a comment.

MongoDB Logo MongoDB