6 Posts

1201

January 9th, 2023 00:00

PowerEdge and asset tag

Hello Everyone ,

i am new to this forum and hope someone can help me

we have a list of servers in our environment and was wondering if there is a way to have a command line utility or a script that i can use to set the Asset tag on all the servers.

we are talking about a long list so if there any way to automate this via a script and pending a reboot would be appreciated

 

 

1 Rookie

 • 

8 Posts

January 22nd, 2023 00:00

Yeah, don't listen to these other guys. They clearly aren't reading or understanding your question. Since you want to script it, you'll want to use racadm. The command is going to look like this:

racadm>>get BIOS.MiscSettings

racadm get BIOS.MiscSettings
[Key=BIOS.Setup.1-1#MiscSettings]
AssetTag=
ErrPrompt=Disabled
ForceInt10=Disabled
NumLock=On

racadm>>set BIOS.MiscSettings.AssetTag 12345

racadm set BIOS.MiscSettings.AssetTag 12345
[Key=BIOS.Setup.1-1#MiscSettings]
RAC1017: Successfully modified the object value and the change is in
       pending state.
       To apply modified value, create a configuration job and reboot
       the system. To create the commit and reboot jobs, use "jobqueue"
       command. For more information about the "jobqueue" command, see RACADM
       help.

After that, you'll want to create a job like this:

racadm jobqueue create BIOS.Setup.1-1 -r none

And then reboot the machine since most BIOS changes require a reboot. Not sure if this one does or not. You should test this first, of course.

racadm serveraction powercycle

 

How you wrap your script will be up to your scripting skills, preferred language, or environment. I use python with pexpect to simulate an interactive session. I use a lot of regex and catch expected output from racadm. Beware that output may vary from generation to generation (e.g. iDRAC8 and iDRAC9 have different output strings).

Moderator

 • 

4K Posts

January 9th, 2023 10:00

Hello,

what you mean as Asset Tag? If you are talking about service tag it doesn't exists.

Thanks

6 Posts

January 18th, 2023 01:00

hey Marco,

no i m ean there is an option if go within the BIOS menu to edit a field called Asset tag, that is different than Service tag which is hard coded and need to be changed if the mother board was changed

 

 

Moderator

 • 

4K Posts

January 18th, 2023 02:00

Hello,

no unfortunately it doesn't exist such command to set Asset tag on all the servers.

Regards

3 Apprentice

 • 

483 Posts

January 20th, 2023 01:00

Not all Power Edge allow for Service Tag editing. On Gen 13 and higher, many do.

  1.  Power off the server
  2.  On the system board, locate the PWRD_EN jumper. It covers pins 2 & 4
  3. PraveenSingh_0-1674205416902.jpeg
    1. Move the PWRD_EN jumper to cover pins 4 & 6
  4. PraveenSingh_0-1674206559462.jpeg

     

     
  5. Power up the server and press F2 to enter system setup
  6. PraveenSingh_1-1674206576387.jpeg

     

    1.  At the System Setup Main Menu, select ‘Service Tag Settings’


    Enter the Service Tag into the field provided, exit and save the changes


    6.  Switch off the server and put the PWRD_EN jumper back to its default position.

Hope this helps

 

 

4 Operator

 • 

3K Posts

January 22nd, 2023 04:00

Response from ichen will work. I can confirm setting asset tag also need a system reboot to apply. Can you share the system model and iDRAC/BIOS FW version you have on the server

6 Posts

February 13th, 2023 02:00

heey Shine ,sorry for the late reply , i was on a long vacation . just catching up to work since last week.

my servers are all iDRAC9 , BIOS FWs for all different models ( R440 , R640, M640 ...etc ) are variant but non are older than june last year

Top