Comments (33)
  • Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

1 AnthonyEnglish commented Permalink

I've just sent this blog post out via Twitter. Hopefully your visitor count will shoot up. A great, well thought through blog post. Well done.

2 brian_s commented Permalink

Thanks Anthony! I'm a huge fan of your AIX Down Under blog.

3 frenger commented Permalink

Than you for the tweet of this genius script (and big thanks to Brian of course!). I hope the script finishes soon due it runs since over 2 hours (truss -p on the proces still shows activity, so it might just take really long in our environment). Is it normal that the script's progress is not seen in the html output, due the file still has 0 byte or am I doing somtiong wrong? I adapted the command to "./vscsimap.pl hscroot@hmcserver1 > output.html" due we can't contact the hmc over root account.

4 brian_s commented Permalink

There is no output until the script completes. Your user@hmc syntax should work. You can monitor if the script is progressing by running "ps -ef | grep ssh" and verifying these ssh processes are changing/progressing. How many total LPAR's / virtual SCSI disks do you have connected to the HMC? One thing that could slow down the script is if you have firewalls between where you run the script and some of the LPAR's as then the SSH attempts take time before they time out.

5 frenger commented Permalink

Finished after 3 hours, output (2,5 MB Html file about 5000 rows) looks great, maybe I find a way to extend it to include not only the Storage Box Serial but the CU/LDEV of the disk and a PVID as well. Thats the only Information thats missing in this great listing in my opinion. Disksize would be nice as well. "hdisk LUN ID" is a waste of space in my opinion, due it gives no useful "unique" information. By the way we have arround 230 Lpars (incl .Vios). Some of the Machines have hundreds of Disks connected. <br />

6 frenger commented Permalink

Looked a bit arround in Brian's Blog and ich have to say that man is a admin scripting genious. 4 scripts of his 8 posts are highly needed scripts that each bigger company (for Austrian measures) like us needs. Thank god that I found this ressource. I have added this blog via rss feed to my daily read google-reader list. Thanks again Brian, you made my day!!! I wished I were half as good as you in scripting...

7 AnthonyEnglish commented Permalink

Looks like the circulation via Twitter and RSS Feeds has boosted the visitor count from 52 to 313 (at last count). Maybe worth setting up your own Twitter account just to send out these excellent blog posts. Far too much good in them to have them hidden under a bushel. <div>&nbsp;</div> Also, if you have a chance, drop me a line - anthonyengl AT gmail DOT com <div>&nbsp;</div> - Anthony English

8 frenger commented Permalink

Brian, seems that you use lsdev -dev hdiskx -vpd to get the disk details. <br /> We have vendor storage from HP and HITACHI, their drivers show following information in the vpd output: <br /> HP: <div>&nbsp;</div> Manufacturer................HP <br /> Machine Type and Model......OPEN-V*3 <br /> Part Number................. <br /> ROS Level and ID............35303039 <br /> Serial Number...............50 0F2DA <br /> EC Level.................... <br /> FRU Number.................. <br /> Device Specific.(Z0)........00000332CF000002 <br /> Device Specific.(Z1)........0403 2D .... <br /> Device Specific.(Z2)............ <br /> Device Specific.(Z3)......... <br /> Device Specific.(Z4).........&gt;.. <br /> Device Specific.(Z5)........ <br /> Device Specific.(Z6)........ <br /> Hitachi: <div>&nbsp;</div> Manufacturer................HITACHI <br /> Machine Type and Model......DF600F <br /> Part Number................. <br /> ROS Level and ID............30303030 <br /> Serial Number...............87010738 <br /> EC Level.................... <br /> FRU Number..................0738 <br /> Device Specific.(Z0)........00000432B3001102 <br /> Device Specific.(Z1)........0081 <br /> Device Specific.(Z2)......... <br /> Device Specific.(Z3)......... <br /> Device Specific.(Z4).........&gt;.. <br /> Device Specific.(Z5)........ <br /> Device Specific.(Z6)........ <div>&nbsp;</div> In my html output the Serial Number of the HP Storage gets cut behind the value "50" and I need the wohle string. <br /> The other thing is that Device Specific.(Z1) shows the LUNid alone in the Hitachi case and LUNid &amp; Storageboxport in the HP example. Which part of the script would I need to adjust to get that Information into the Html output. The value "Machine type and model" would be nice as well to see the type of Storage thats behind the LUN. I can't script perl und would be very glad if you can help me out on this. My email is sebastian.thomas@a1telekom.at <br /> Lots of thanks in advance!

9 AnthonyEnglish commented Permalink

Speaking of possible enhancements, perhaps a variable for the HMC user name would be handy, as well as a link to the mkauthkeys command (http://goo.gl/UOQZe) for setting up SSH keys on the HMC along with an example. <div>&nbsp;</div> The script only works for AIX virtual servers (logical partitions) and for virtual disks, so perhaps a progress display which indicates something such as "interrogating managed system / interrogating LPAR / skipping LPAR (for non-vscsi disks and for Linux). <div>&nbsp;</div> Perhaps an alert for virtual servers that don't have vSCSI disks and a message such as "skipping Linux client". <div>&nbsp;</div> Also, we found the UUID didn't come out, or rather was a single dot (perhaps a truncation). From either the AIX host or the VIO using oem_setup_env you can extract it from the output of odmget -q"name=hdiskN and attribute=unique_id" CuAt <div>&nbsp;</div> It is really a remarkable script and has already saved us hours in laborious documentation.

10 Santhosh1985 commented Permalink

Well Brain Hats off to you !! <br /> Passwordless is very big security concern, Is there any way without Passwordless authentication ?? <br />

11 brian_s commented Permalink

Anthony and Sebastian, <br /> I posted a second link to an updated version based on your feedback: <div>&nbsp;</div> -Script outputs in real time as it is collecting information so it is much easier to track the scripts progress and view partial output before script is complete. <br /> -Full disk serial number should now be displayed even if it contains spaces (let me know if you don't see the expected results still) <br /> -The "Z1" and "Machine Type and Model" will now be displayed for the hdisk if this information is available. <br /> -I posted the link to how to setup the SSH keys with mkauthkeys (Thanks for the link Anthony) <div>&nbsp;</div> Unfortunitly the only AIX access I have for now is my POWER4 server so unfortunitly I won't be able to test the updated script. Please let me know if anything isn't working. <div>&nbsp;</div> And if anyone has a small, cheap, used POWER6 server with powervm for sale at a reasonable price let me know.. I'm looking in to purchasing one for home.

12 brian_s commented Permalink

Santhosh1985, <br /> The script works by connecting to the HMC and each LPAR over SSH to collected the information to create the report, so SSH must be setup with key authentication for it to work. The script doesn't require any root/admin access and can be run by a normal unpriveledged user. <div>&nbsp;</div> There are a few things you can do to improve security on a SSH key such as setting a passphrase on the private key and running an SSH agent, and/or using the "from=" option on the public key to specify it is only valid from a specific host/ip address.

13 frenger commented Permalink

Hi Brian, the result of the v2 is perfect (at least for our company, but I think many others use vendor storage with default mpio too)! It works like a charm and ist's a good idea to see the script's progress. I can't thank you enough for doing this marvelous script. I'm looking forward to your next asome creation :-). <br /> Big thanks from Austria to you!

14 brian_s commented Permalink

Awesome, I'm glad the new version is working for you. Thanks for the feedback.

15 AnthonyEnglish commented Permalink

Brian, <div>&nbsp;</div> I was so impressed with this blog post that I did a write-up of it. It's just been published on Power IT Pro, Thanks for the material you provided for this. <div>&nbsp;</div> http://goo.gl/PlrLR <div>&nbsp;</div> That article also includes a command to show you the vhost adapter and VIOS all from the VIO client (the AIX logical partition). <div>&nbsp;</div> # echo "cvai"|kdb|grep vscsi <br /> read vscsi_scsi_ptrs OK, ptr = 0x4240398 <br /> vscsi0 0x000007 0x0000000000 0x0 vios1-&gt;vhost8 <br /> vscsi1 0x000007 0x0000000000 0x0 vios2-&gt;vhost5