UNSOLVED

puttshys

updated

16 years ago

P

puttshys

1 Message

0

29745

July 8th, 2010 10:00

Service Tag Report

Hi,

I have requirement where in, I have to get the report of service tag for the connectors (Enclosure MD1000) for all he Dell servers,

How To generate report of Service Tag or any thing I require, for all the Dell servers

 

Thanks & Regards

Shyam

  • DELL-Jeff M

    2 Intern

    •

    793 Posts

    1399

    0

    Posted July 13th, 2010 17:00

    Thanks for posting!  There might be a way to do it with SNMP, but depending on your scripting skills, it might be more than you're ready to tackle.  Check the OMSA manual for the omreport command, there is proabably a command string to get that information, and you can write a program to generate the report.

  • tommo666

    4 Apprentice

    •

    1211 Posts

    1399

    0

    Posted July 15th, 2010 16:00

    Spiceworks will do he job plus it can warranty status for all Dell servers etc. Plus it's free

  • bradje1

    2 Intern

    •

    743 Posts

    1399

    0

    Posted July 18th, 2010 21:00

    Looks good Tommo.

     

    Would u have a basic outline for getting this working in SpiceWorks?

    Thx

    John Bradshaw

  • tommo666

    4 Apprentice

    •

    1211 Posts

    1399

    0

    Posted July 21st, 2010 15:00

    install it on a workstation. As it's a community project, you create an account with spice works and use it to log on to the web page each time you start. From there, there are wizards to scan your network, inventory and manage. You can use it to run a help desk, track tickets etc.

    It's an active community and how much you participate is up to you. Your home page does have targeted ads but not too intrusive and more than makes up for it being free.

  • bradje1

    2 Intern

    •

    743 Posts

    1399

    1

    Posted July 21st, 2010 17:00

    Been using it a couple of days now....Seems very good.

    Thx,

    John Bradshaw

  • 1399

    0

    Posted July 22nd, 2010 09:00

    For Linux, i use the following script which leverages the sg3-utils to get SCSI Enclosure Services (SES) data, which DELL embeds the SVCTAG in.

    (this gets  Service tags on MD* and PV* units, there may be other devices for which this works, change the egrep regex if needed)

    #!/bin/bash
    # Title:   dell_svctags
    # Purpose: Get MD1000 and PV220 service tag info
    # Author:  Stephen Dowdy <ADMIN NOTE : Email id removed per privacy policy>

    is_debug() { [ -n "${DEBUG}" ] ;}
    debug() { is_debug && echo "DEBUG: " "$@" 1>&2 ;}

    if ! type -p sg_scan > /dev/null ; then
        echo "Sorry, it appears sg3_utils is not installed"
        echo "This script requires sg3_utils to get SES data"
        exit 1
    fi

    sg_devs=$(sg_scan -ia | paste - - | egrep 'DELL[[:space:]]+(MD|PV)' | cut -d: -f1)

    debug "sg_devs=$( echo ${sg_devs} | fmt -900) "

    for dev in ${sg_devs}; do
        vendor=$(sg_inq ${dev} | grep 'Vendor identification:' | cut -d: -f2 | tr -d ' ')
        product=$(sg_inq ${dev} | grep 'Product identification:' | cut -d: -f2 | tr -d ' ')
        dell_svctag=$(sg_ses -p 0x4  ${dev} | grep '^ 20[[:space:]]\+' | cut -b68-74)
        echo "${dev} : Vendor=${vendor} ; Product=${product} ; Svctag=${dell_svctag}"
    done

    exit 0