/build/static/layout/Breadcrumb_cap_w.png

Service Tag = Null?

Hello,

I have a few laptops at work that do not report their service tag to the kbox. I'd like to report on these so I can manually look them up and replace them when their warranties expire.

Is it possible to do a SQL query and return this info?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: dchristian 12 years ago
Red Belt
0
It's possible to query off ANY field in the database.

My question is, if there not reporting the service tag, how to we get the information?

If the service tag is truly being returned null in inventory, you may want to open a ticket.
Posted by: BFonts 12 years ago
Senior Yellow Belt
0
I think it is a problem with the laptops more so than the KBOX. Our old inventory system did the same thing. For whatever reason the chipset forgets the service tag.

To be more specific, on the KBOX it simply says that it cannot retrieve the information from Dell's website, but if I check on our old inventory system (which is still running, for now) it shows the Service Tag as N/A.

A query with a null tag would also grab all of our BootCamp VMs but maybe we could also include a Manufacturer = DELL tag.
Posted by: RichB 12 years ago
Second Degree Brown Belt
0
This is a smart label "SerialBlank" we use to detect a blank serial number:

select *, UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(LAST_SYNC) as LAST_SYNC_TIME,
UNIX_TIMESTAMP(MACHINE.LAST_SYNC) as LAST_SYNC_SECONDS
from MACHINE
where (( BIOS_SERIAL_NUMBER = '))


Note: That's two single quotes with nothing between them: BIOS_SERIAL_NUMBER = '
Posted by: dchristian 12 years ago
Red Belt
0
OOOOOOOOHHH

Now i get what your looking for.

Try this, see if it works.
SELECT M.NAME,
M.BIOS_SERIAL_NUMBER
FROM MACHINE M
WHERE M.BIOS_SERIAL_NUMBER IS NULL
AND CS_MANUFACTURER NOT LIKE '%DELL%'
Posted by: GillySpy 12 years ago
7th Degree Black Belt
0
ORIGINAL: dchristian

OOOOOOOOHHH

Now i get what your looking for.

Try this, see if it works.
SELECT M.NAME,
M.BIOS_SERIAL_NUMBER
FROM MACHINE M
WHERE M.BIOS_SERIAL_NUMBER IS NULL
AND CS_MANUFACTURER NOT LIKE '%DELL%'


I looked at the definition of BIOS_SERIAL_NUMBER and technically it can be NULL but not likely in practice. However, I did notice that it can contain a single space so this should CYA just in case:


SELECT MACHINE.ID, MACHINE.NAME,
BIOS_SERIAL_NUMBER
FROM MACHINE
WHERE (BIOS_SERIAL_NUMBER IS NULL OR BIOS_SERIAL_NUMBER=' OR LENGTH(BIOS_SERIAL_NUMBER)<2)
AND CS_MANUFACTURER NOT LIKE '%DELL%'


I also wrote it such that you could make a smart label out of it just by copying and pasting. If you see any weirdness not covered by this query then please let me know.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ