Deployment Solution

 View Only
  • 1.  convert token to all lower case

    Posted Nov 18, 2008 09:05 AM
    I'm hoping someone can shed a little light as I really have no Linux scripting ability and our DS imaging job uses a linux script to run.

    The problem I'm having is that the token to get the computer model returns various spellings of our Dell Optiplex. For some reason Dell (espeically in our older models) has at least three variant spellings. Optiplex, OptiPlex and optiplex. What I'd like to have done is the line we have to get the model number

    # Get Model Information
    model="%#!computer@prod_name%"

    be able to convert the entire thing to lowercase. I'm not sure if this will cause the model number itself to change or just the make. For example Optiplex GX280 would need to be converted to optiplex gx280. If anyone has a suggestion I'm more than willing to try, otherwise I'm going to continue to have to add new sections of our case statement just to pick up each spelling variation.

    Thank You


  • 2.  RE: convert token to all lower case

    Posted Nov 18, 2008 09:13 AM
    That's a very good question! I'd be curious to know the answer as well. It seems that there isn't really any consistency with Dell Product names when it comes to upper vs. lower case. My script keeps getting longer and longer to accommodate.


  • 3.  RE: convert token to all lower case

    Posted Nov 18, 2008 10:10 AM
    I don't know the answer to your question, but I decided to use model number instead of product name for my script.

    quote:

    # Set MODEL variable to model number
    MODEL="%#!computer@model_num%"


    I used a SQL query to get all the model numbers and product names out of the database.