devid=$(/opt/MegaRAID/MegaCli/MegaCli -LdPdInfo -aALL|sed -n -e "s/Device Id: //p") | xargs ./smartctl -a -d megaraid,$i /dev/sda | awk '/Device|Serial|^read|^write|^verify|^Non-medium/ {print $0}';Looks like it's stopping after the first running device id. How do I get it to repeat for all the...
censored$ devid=$(/opt/MegaRAID/MegaCli/MegaCli -LdPdInfo -aALL|sed -n -e "s/Device Id: //p"); echo -e "$devid"
29
17
20
21
18
19
22
28
24
25
26
27Alright, just a little bit further...now, the question is, how do I get the system to run ./smartctl -a -d megaraid,$devid for each of those values?
Okay, I feel like I need to bow to the Linux gods on this one. Been at it for 2 hours now with no luck, and my Google Fu is spectacularly unhelpful. Here's the deal:
I have a bunch of different servers that have a bunch of LSI RAID controllers that I need to run a command on to output SMART...
Combination of -nodeps and --allmatches fixed my problem. Thanks! I was trying all sorts of shit to get an updated version onto that host; rsync and scp were involved. It was painful.
Thanks for the help. After trying everything imaginable, it turns out you can get the commands to pass by putting in [:3], i.e., not putting anything for enclosure id. Updating to a newer version of megacli would have been much easier, but unfortunately this is a cloud compute datacenter...
I've had to start using megacli quite a bit at my new job, and while it's generally a pain in the ass (why do some flags have no vowels while others randomly do...?) I've pretty much gotten the hang of it. However, I'm at something of an impasse right now. I've got a number of boxes that had...
From what I understand, I can take the exam without the class, it's just that VMware won't "recognize" a passing score without showing that I've taken the class. I'm aware I won't be able to say I have my VCP, I just want to be able to say I passed the exam. At that point, in theory, they'll...
I've got little-to-no experience with VMware specifically, but I understand virtualization concepts well. Essentially, I want to see if it's feasible to go from that point to VCP4 certified in 4 weeks (3-4 hours studying per day, more on weekends) as a kind of "Fuck you" to my company, who sent...
My company is exhibiting there, even though we're storage, and not really virtual. Management decided to get a booth to tout the fact that our storage has a VMWare storage management plug-in...
How sturdy does the phone feel? How accurate is the touch screen?
Phone looks good, and so do the specs. I have severe trust issues with Samsung after the Eternity, though.
I got a Samsung "Eternity" back in November 2008. Thought the touch screen performed well enough in the store, but I realized after using it daily that the entire phone is just slow as fuck. Oh, and the touch screen stopped working a month ago. Kinda shitty thing for a phone that can *only be...
Maybe my Google Fu is weak, but every search I've tried invariably leads to articles from sites like about.com from 8 years ago about how to make an Angelfire family album in HTML.
It's starting to become professionally desirable for me to jump into programming, specifically of the dynamic...