Matching Machine Serial Number to a Asset Tag

Is there a way to take the machine Serial Number (From System Profiler possiblely) and match it to a file that has Serial Numbers and Asset Tags from a inventory database?
1. Define Serial Number through System Profiler
2. Scan File with Serial Numbers and Asset Tags which are tied together.
3. Once match is made the Asset Tag is known
3. Make the Asset Tag a environment variable.
G4 1.42   Mac OS X (10.3.5)  

You don't define the format of the file that contains asset numbers and serial numbers (and I think the 'tie together' is making it sound harder than it is.
In any case:
1. Define Serial Number through System Profiler
system_profiler will tell you this. You can ask for the specific hardware information, then parse out the serial number, like:
/usr/sbin/system_profiler SPHardwareDataType | awk '/Serial/ { print $3}'
2. Scan File with Serial Numbers and Asset Tags which are tied together.
Without knowing this file format it's impossible to tell how to do this for sure, but if the file was a simple tab-delimited file of asset number<tab>serial number, then:
awk '/<serial_number>/ {print $1}' /path/to/asset_file
You can now string the two together, like:
#! /bin/sh
SERIAL=`/usr/sbin/system_profiler SPHardwareDataType | awk '/Serial/ { print $3 }'`
echo "Found serial number ${SERIAL}"
ASSETNO=`/usr/bin/awk "/${SERIAL}/ { print \\$1 }" /var/tmp/assets`
echo "Found asset number $ASSETNO"
export ASSETNO
Note the user of double-backslashes in the second awk to overcome shell expansion issues.

Similar Messages

  • Won't match my Serial Number?

    the website registration form won't match my serial number so i called the apple store. They said this was a known problem and to mail in the registration form. I've been looking all over the site but i don't know where to find the print out form.
    Also does anyone know how long after i mail it in will it take to register. I want to be able to buy iLife '09 soon

    We don't have that information. You will need to contact AppleCare.
    The Apple Discussions is a user-to-user help site. We have no connection with Apple and cannot speak for their policies and procedures nor now how long it might take for them to register your computer once you send in the information.
    The registration card came with your computer.

  • Model 3000 N100 - Machine Serial Number is Unknown in Lenovo Care

    Hi,
    My mainboard was warranty replaced earlier this week.  Since then,  Lenovo Care shows an unknown Machine Serial Number in Lenovo Quick Links (System Information) and the Advanced tab.  The correct serial number and machine type is displayed in the BIOS.
    Thank you in advance.

    Nilesh
    I bought a used N100 and did a total upgrade.
    CPU, memory, HD, new screen, new battery.
    I regret it! I should have bought new, as it cost
    me the same or more as new. I just got carried away.
    I did the upgrades myself, so no cost for "service".
    All parts were bought on ebay or newegg.
    Cost from Lenovo would be MUCH more.
    I do not know how much new laptops cost in your area,
    but I recommend you buy new, or limit your upgrade
    to only what you need most.
    Duck3

  • Machine Serial Number

    Hi,
    I would like to programmatically find the Serial Number of a Sun Solaris box. I know it was not possible earlier but am curious if Sun has added any new command/tool to find out the serial number of a machine.
    Is there any roundabout way of finding it?
    Any help would be appreciated.
    Thanks in advance,
    Nimish

    Some of the new Sun hardware has machine-readable serial numbers, but they generally are not (yet) easy to access. Most of them are available on the System Controller or from the ALOM (Advanced Lights-Out Management). Some have it in the FRUID data from prtfru.
    There is a new tool from Sun called "SNEEP" (Serial Number in EEPROM) which, once you have the serial number, will make it easy to get to when you need it, and will keep serial (and other) data safe .
    It's very easy to use and very flexible for storing and retrieving serial and other data that you want to associate closely and permanently with the hardware. [ asset information, location, contract,  serials for attached storage, whatever you want ]
    You can download sneep from the Sun Download Center at http://www.sun.com/download/products.xml?id=4304155a
    Documentation is also available for download there.
    Sneep provides a simple interface, preserves the data even if the eeprom is erased, and even updates the serial number for you in the explorer configuration.
    If you've already made the effort of putting the serial into the explorer (or CST) configuration, sneep will pick it up from there automatically.
    Right now, sneep doesn't have access to the serial data in the ALOM or SC, but sneep will be updated to pick up this information whenever possible, so that you can use the same mechanism to handle serial and other information on all your Sun systems.
    It runs on SPARC and x86, and although the x86 doesn't have a true EEPROM, it still has a lot of value. Solaris x86 is getting support for reading the serial from BIOS, but not all manufacturers provide the data to the BIOS.
    At worst case, you enter it manually once, and sneep will protect it and keep it handy.

  • Serial number updation in Assets after GR & MIRO for PO

    Hi Experts,
    I need a help on the following
    We are buying for example 10 Laptops. we have created the Laptop as Asset , Created the Laptop as Material master and Maintained the serial number profile in Material master.
    We created a PO with account assignment as "Asset" and included the Asset in PO, did the Goods Receipt with reference to this Asset account assigned PO, then at GR system asks for the Serial number and entered the Serial number and saved.
    Did the MIRO for this PO and asset values are posted.
    But after GR/MIRO System has updated only the quantity and Values not this Serial number.
    I need to check how the system will update the Serial number in Assets, because there is a field in Asset display AS03 --serial no.
    but here there is no update of the serial number.
    Is there is any config settings is there for this. Please share your information on this.
    Thanks in advance.
    rgds
    Swamy

    Hi Gurus,
    Any updation or some reply on this thread.
    Please share your thoughts .
    rgds
    Swamy

  • G5 System Wont display the machine serial number.

    i just bought a referbished G5 dual 2.0 ghz. and the "about this mac" window wont display serial number. i even downloaded tools like "OnyX" to display system info. the srial number stays blank. it also does this in the system profiler. what do i do? and how do i get serial number in the software?

    Hi ijny9956,
    If the machine is refurbished, it may have had its logic board replaced post-manufacture. When logic boards are replaced, they usually do not have the serial number re-programmed into them. Apple have a utility to do so, but it seems they do not distribute it. (Except they leave it in repaired systems sometimes - http://lists.apple.com/archives/Darwin-userlevel/2005/Mar/msg00005.html )
    You can find out the serial number of your system by opening the case side and looking at the bottom of the case.

  • Sold machine serial number showing in Stock

    Dear Experts,
    At the time of outbound delivery serial no is not assigned to material so it is not get consumed for that particular customer.
    In IQ03 serial no is assigned to plant & storage location & the status is ESTO.
    So after doing PGI, stock of material get reduced by 1 qty but serial no is still open. Now I want to consume this serial number. How to do the same?.
    Thanks in advance.
    Trupti

    Hi Sudhir,
    In VL02N go to <b>Menu path Extras > Serial number</b>.  This will cause the Maintain Serial Numbers pop-up box to appear.  Enter the serial number in the Serial number field.  Click Enter
    http://www.eitoolkit.com/tools/change_management/et_tools/16_end_user_training_task_guide.doc
    In the above link refer page numb 7.
    Hope this helps.
    Regards,
    Mani .

  • I lost my iphone the other day, and have tried find my iphone, but its offline. is there any way to put my specific serial number under a lost tag?

    my iphone was lost on friday. Find iPhone on iclkoud says its offline. can i put my serial number of my iphone under a lost title or something so when someone tries to put a new plan on it or register it it will alert me??

    If it is showing off line, either the battery is dead, the SIM has been removed or the iPhone has been restored. Report it to you carrier. Some offer blacklisting. You can also send a remote wipe to the phone via iCloud. There was also the option to send you an email if the phone is located when you were in Find My iPhone. Report it to law enforcement, change the passwords on all accounts that were on the device. Did you have a passcode on it?

  • Tecra All Models - How to set Asset Tag

    Hello,
    For the past year we have used a tool to set the asset tag on toshiba notebooks. It runs from an external floppy drive, but the disk is overwritten en we do not have any copies of this tool.
    I am pretty sure one of my colleagues downloaded this tool from the toshiba site but we are unable to find it anywhere. Can someone provide a download link or an alternative tool wich is able to set and display a notebook's asset tag.
    The commands we used in this tool are
    assettag /da
    assettag /sa
    Hope you can help
    Kind Regards,
    Sander74
    _**UPDATE** The filename of this tool is assettag.exe**_
    Message was edited by: Sander74

    Thanks for your answers.
    We tried to undelete the content of the overwritten floppy but we were not able to restore all data. We did manage to restore some text files, htm file and a diz file. I'll post the content below.
    As you can see there a comments that suggest that this is indeed a toshiba tool. Perhaps someone reading this has better searching skills then i do.
    *_CONTENT OF ASSETTAG.EXE_*
    DMI Asset Tag Utility Version 1.02.1
    Copyright(c) 1999 Toshiba America Information Systems
    This procedure has installed the assettag program to your
    hard disk. It has copied the following files to the
    directory C:\Asst_tag
    AssetTag.diz
    assettag.exe
    AssetTag.htm
    AssetTag.txt
    ATINST.bat
    Disk1.id
    readme.txt
    tosh001.gif
    tosh002.gif
    For more information view the assettag.htm file.
    *_CONTENT OF ASSETTAG.HTM_*
    SM BIOS Asset Tag Utility Version 1.02.1
    Copyright (c) 1999 Toshiba America Information System. All rights reserved.
    The SM BIOS Asset Tag Utility displays a variety of useful data fields from the SM BIOS. In addition, is capable of setting or changing the value of the asset tag field of the SM BIOS. Since the asset tag field is in the BIOS, the hard disk may be reformatted and reinstalled without effecting the field's contents.
    This program is a command line, non-interactive program, suitable for use in batch files and other automated environments. It is a real mode DOS program, and can not be run in pure 32 bit environments such as Windows NT.
    usage: ASSETTAG &lt;switch&gt; [string]
    Switch
    Usage
    /DA
    Display asset tag string
    /DM
    Display system manufacturer string
    /DP
    Display model string
    /DC
    Display chassis serial number string
    /DS
    Display system serial number string
    /SA &lt;string&gt;
    Write asset tag string
    /F &lt;filename&gt;
    Write asset tag string based on contents of specified serial number - asset tag mapping file (see format below).
    The Asset Tag has a maximum length of 31 bytes.
    Examples:
    ASSETTAG /SA 12345
    ASSETTAG /SA "123 456" (quotes to embed spaces.)
    ASSETTAG /F ATLIST.DAT
    The /F switch specifies that the asset tag to be written to the BIOS should be obtained from a file, the name of which is given as a parameter following the /F switch. This file contains a list of serial numbers and asset tags in the format:
    Serial number white space Asset tag
    Each line should contain a system serial number, with no leading white space. Following the serial number, one or more white space characters (space or tab) delimit the serial number from the start of the asset tag. The first following non-white space character is taken to be the start of the asset tag, which will continue until the end of the line. Thus, asset tags may not begin with white space, but can contain almost any character thereafter.
    For example:
    12345678 FA99485
    TE992837 ACCT992
    30899283 Loaner Unit
    If the lines above were placed in a file and used by the assettag program, then a PC with the serial number of 12345678 would be set with the tag FA99485. A PC with the serial number 30899283 would be set with the asset tag value of Loaner Unit.
    Kind Regards,
    Sander74

  • IPod Touch serial number does not match invoice (rebate problem)

    Hi there,
    I recently purchased and received a MacBook Pro and iPod Touch online, taking advantage of the rebate program. I was just filling out the rebate form when I noticed that the serial number on my iPod's UPC sticker does not exactly match the serial number on the invoice. By that I mean there are three letters in the serial number that does not match. I checked with Apple's service support coverage online and found that the serial number which is on the invoice is recognized and the one on the UPC sticker is not. I was just about to send in my rebate coupon, and I am wondering if this would affect my rebate claim?
    I'll most likely call Apple tomorrow, but just wanted to see if anyone here has any idea.

    HI thanks for replying and the information and contact number. I really appreciate it!
    Sorry, I forgot to include those details. The MacBook was purchased online directly through the Apple Store on 12/20/07. The AppleCare was purchased directly from the Apple Store online on 12/19/08. I usually buy it direct from Apple because of horror stories I had heard about resellers when I bought my first Mac (G4 MDD). I had purchased the G4 MDD years ago and had an issue with it during the first year and called Apple and they informed me that I could buy AppleCare during the first year warranty. The individual I spoke with indicated I did not have to activate it before the first year anniversary, but that I just had to purchase it before the 1 year warranty expired. Before purchasing my wife's Applecare I checked to ensure that was still the case. From the information on the Apple site, it is my understanding that it is still the case. I know I cut it close, but I thought I had bought it later than the 20th. One night I pulled out the invoice and found it was ordered on the 20th so I ordered it that night (19th)!!

  • Serial number in Assets standard report

    Hi,
    We are maintaing serial number for some asset classes but we for reporting purpose this field is not available in standard Asset accounting reports. There no such field in select fields either. Please tell me customizing settings if any to get the field in standard reports.
    Br

    Dear:
                     Here you need to assign sort version to your asset standard reports. For doing that you need to configure the sort version . Please follow as
    SPRO...Financial Accounting (new)....Asset accounting...Information system...Define Sort versions.
    Take any standrd and copy it. Write the field name and table which i think should ANLA in this case.  Having creating this variant go to any asset report and assign this sort version and execute report.
    Regards

  • How can apple store match serial number on iphone 4s

    I brought my phone to apple store and the guy told that the serial number don't match the serial number inside the phone. My phone fell into water and it's not working. How can they detect that the serial number is not a match

    You can view the serial number by going to settings/general/about on your phone.  Also the number should be on the back of the phone

  • 'bios serial number' setting no longer working with 11.2.4.1

    We recently installed 11.2.4 and monthly update 1 (in 1 evening) and now we've started to notice that our workstations are not getting the proper device name.
    We have preboot set to give the workstation the bios serial number as device name (certain A brand ships computers with empty asset tags but has the serial set to the asset tag).
    This used to work with 11.2.3 so I am guessing something has changed. There currently does not seem to be a newer imaging set than the one with MU1.
    They are getting a windows-XXXXXXX where X is a seemingly random char hostname.
    Anyone know what might be up with this or has seen it ?

    Hi Joshua
    I tried a stripped down version with a 3 frame swf simply dropped onto the timeline - the problem does not occur. That means I would have to upload the full movie as it draws multiple slides from an external library and drops them onto the timeline at runtime. This package was developed to replace normal training material and is used widely to train some 120 000 candidates per annum by several companies. As such I cannot therefore post the full movie as I have to protect the code that drives the whole thing.I will have to stick with McGyver fix for the meantime.
    As each slide is pulled from a library, and the slide backgrounds from a separate swf library, I think that something new in 11.5 either has a problem with running multiple things at the same time, or has a problem in running a sequence of instructions.
    Brian

  • My iPhone serial number and IMEI is not the same as Apple server

    Hello,
    My problem started when I want to unlock my iphone 3gs via Imei.
    My old iphone broke about a month after i bought it (it was 2 years ago), so i sent it to Movistar to change it (i think that they sent it to appleCare). Now Movistar told me that i have to send the old iphone imei in order to unlock the iphone i have now, i ask apple for the repair order receipt, then i received an email and i could see the information about the 2 iphones: the old broken one and the new one.
    Then I realized that the iphone they sent me as a replacement (the new one) is not the same iphone i have. The serial number and the Imei are different, so, should apple change this data in their server in order to unlock my iphone or what can i do to solve it?
    There is any formal way to perform this data change?
    Thank you in advance,
    Francisco Marzabal

    Here we work with repairs for devices that does not have waranty (expired or other issue). In this case, I did the screen replacement. No other ipad was on my station, the ipad arrives, i took it change the glass, put everithing back, give to customer. Thats it. The job was done by me, the customer test his ipad in front on me, works fine, everything ok. Few days pass and he came back saying that it wasn't his ipad, he brings the box that the ipad came and ask me why the serial number does not match the serial number in the box (sorry NOT in the back of the ipad).
    There were no other part changed only glass. After 7 years working on this, thats the first customer complaining about a work done here. After this I was curious and look for more information and some forums, also one port here is claiming that the serial number on the device is not the same as the box where it came.
    I just want to make sure that there are possibilities that there could be such mistake during the packaging process.
    Thanks for the replies

  • Report based on Serial Number generated in the Production Order

    Hi,
    I wish to generate a Customized report, which shall include the total consumption based on Sales Order/Line Item/Serial Number/Production Order matching the Serial Number generated in the Production Order where in we can get the required data.
    Need your help and suggestions in creating this report..
    Thanks in advance..
    Ashok Vardhan
    Edited by: Ashok T Vardhan on Jan 19, 2012 11:38 AM

    Hello Tman,
    This is a slightly tricky question. The reason being, the report options like the report path etc, are set before you see the serial number prompt when you run your UUT. There might be other ways of getting around this, but a quick solution would be modifying the process model.
    I modified the PreUUT callback to set the report options. I passed the reportOptions as a parameter to this sequence. In the PreUUT sequence, I set the following fields:
    Parameters.ReportOptions.GeneratePath=False
    Parameters.ReportOptions.ReportFilePath= "c:\\"+ Locals.SerialNumber +"\\report.xml"
    I hope this would give you an idea.
    SijinK

Maybe you are looking for

  • How to process each records in the derived table which i created using cte table using sql server

    I want to process each row from the CTE table I created, how can I traverse from first row to second row and so on.... how to process each records in the derived table which i created using  cte table using sql server

  • Document document = builder.parse does not go in correct folder

    Hi, In code my directory is set to File directory = new File("C:\\java_training\\com\\XMLtoExcel\\orm\\"); when parsing public void generateExcel(ArrayList<String> array1) throws XPathExpressionException {   //System.out.println("in generateexcel " +

  • Cisco 876 ADSL over ISDN Router

    I am facing some problem in using ISDN bri S/T interface for connectivity to HO PRI router.I am not using the ATM interface of this router.The isdn status always shows that the isdn layer 1 and 2 is deactivated. IF i connect the same bri cable to oth

  • How to make Settl. rule mandatory before release ?

    Hi, I have project with settlement to AUC and to the superior wbs elements. I want to have the settlement rule to be made mandatory (before Release) for all those WBS elements, where it will be settled to superior WBS elements. How to make this manda

  • Importing .xmp sidecar file doesn't populate IPTC info??

    Good evening everyone.  I've been trying to import .xmp files alongside some of my old movies to save me from having to retype the IPTC info such as location, etc.  I have a folder which contains the .mov file I want to import, along with the .xmp fi