cancel
Showing results for 
Search instead for 
Did you mean: 

HP Asset tag

 
SOLVED
Go to solution
JF441
Occasional Visitor

HP Asset tag

Hello,

I got 64 HP blades to commission next week. I use a bash script where I set partition/hostname/IP via asset name (On boot).

How can I set the asset tag ?

The 2 other major competitors provide a Linux command line tool to do so. Is there such approach at HP ?

Thanks a lot.
7 REPLIES
Steven E. Protter
Exalted Contributor

Re: HP Asset tag

Shalom,

Proliant Service Pack for Linux might have a tool to provide this information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JF441
Occasional Visitor

Re: HP Asset tag

Hello,

Thanks for your reply.

Quote : "provide this information"

I am not actually trying to get the information but want to get the value.

To get the asset tag on an HP machine use the following :

dmidecode | grep -A 10 'Chassis Information' | grep Asset

You should get an :
Asset Tag:

(Mine is empty right now)


Before installing that pack, I would like a confirmation. The pack is big and contain a lot of stuff (sometimes dirty stuff ..)
David Claypool
Honored Contributor
Solution

Re: HP Asset tag

See the SmartStart Scripting Toolkit for Linux. This has utilities not only to set the asset tag, but also to configure all of the BIOS settings and to set up the RAID configuration.
Steven E. Protter
Exalted Contributor

Re: HP Asset tag

Shalom,

PSP is no doubt bloatware.

It does however provide granularity, the ability to pick and choose components for installation.

It also provides a lot of management options to make your life easier.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JF441
Occasional Visitor

Re: HP Asset tag

Okay, now the answer to the question :

To set HP asset tag under Linux you need to :

- Download the "SmartStart Scripting Toolkit for Linux" (Look at http://h18000.www1.hp.com/products/servers/proliantessentials/foundationpack/downloads.html )
- Be sure to be root.
- I think its a simple tar archive. Uncompress it on the target machine.
- Move to directory "utilities".
- Create a file with any name (ex : setasset.dat) that contain :


INSERT_TAG_HERE


- Don't forget to replace INSERT_TAG_HERE with the content you want to put in asset tag. Note that there is a way to get 2 lines of asset tag with the XML .
- Execute :
./conrep -l -fsettag.dat ; echo $?
NOTE : There is _no_ space between -f and the file name.
NOTE1 : The echo $? will tell you if it did work.
NOTE2 : Be happy, there is no obscure library needed by this tool. Here what you need :
linux-gate.so.1 libxml2.so.2 libstdc++.so.6 libm.so.6 libgcc_s.so.1 libc.so.6 libpthread.so.0 libz.so.1 /lib/ld-linux.so.2
- Important step : reboot the machine
- After reboot, execute :
dmidecode | grep -A 10 'Chassis Information' | grep Asset
- Enjoy the result.

Thanks for the help.
JF441
Occasional Visitor

Re: HP Asset tag

Why we need to post a message to close a thread ?
Dennis Handly
Acclaimed Contributor

Re: HP Asset tag

>Why we need to post a message to close a thread?

I guess the intention is to have you mention that a solution solved your problem or say why you closed it. Which you added before you knew you had another chance.