- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- Query HDD model/firmware from script - Windows
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2013 04:56 PM - edited 11-17-2013 04:57 PM
11-17-2013 04:56 PM - edited 11-17-2013 04:57 PM
Hi,
I am trying to find a way to query HDD model number and firmware revision programmatically to automate some things in our MSP package. We have multiple ML/DL servers sitting on various client sites and running through each of them manually is not an option.
I've tried the hpacucli but I can't see how can I script the commands and output is less from ideal from parsing point of view. Is there a way to make the output more machine-readable, like XML or CSV; or maybe some kind of WMI query would be even better?
Solved! Go to Solution.
- Tags:
- firmware update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2013 12:54 AM
11-21-2013 12:54 AM
Re: Query HDD model/firmware from script - Windows
I think we're looking at the same problem. I wanted to do for something similar in our msp package.
Instead of just pulling the firmware versions I'm looking for a way to run a query on each machine to let me know which patches need to be installed. The app exists - its just the output which I want to vary.
Still haven't worked out a way to do this though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2013 03:42 AM
11-21-2013 03:42 AM
Re: Query HDD model/firmware from script - Windows
I'm not sure how hpacucli runs under Windows. All of my servers are RHEL. In my script I use:
# Determined the slot number previously and set that to SLOT hpacucli ctrl slot=${SLOT} pd all show detail | \ grep -i -P '.*(physicaldrive|firmware|status|drive type|size|model).*' > /var/tmp/hpdisks
You might be able to use findstr under Windows. Not sure of your exact problem. Could you give a little more details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2013 04:47 AM - edited 11-22-2013 04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2013 06:15 PM
11-25-2013 06:15 PM
Re: Query HDD model/firmware from script - Windows
IanM:
WMI query would probably be much better but that will do.
Have to do some parsing in the script.