How to determine in a script whether firmware updates needed ... using DSU?

<[email protected]>
Newsgroups gmane.linux.hardware.dell.poweredge
Message-ID <[email protected]>
All,

With DLR it was super-easy to ascertain whether a firmware update was needed or not.  Here's an example:

NEEDED_RAW=`update_firmware |grep "Found firmware which needs to be updated." |wc -l`
NEEDED=`echo $NEEDED_RAW | sed -e 's/^ *//' -e 's/ *$//'`
if [[ $NEEDED = 0 ]]; then
        echo "Firmware is at latest revision..."
        exit
else
        echo "*********************THERE IS A FIRMWARE UPDATE NEEDED************
fi

For instance, suppose you wanted to survey your env to report back to management how up-to-date you are on firmware.

How do you accomplish the equiv in DSU?  A simple  "up-to-date/not up-to-date"  response?

Spike

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.