natsidan

updated

16 years ago

N

natsidan

1 Rookie

•

34 Posts

0

1460

April 21st, 2011 13:00

Host information

I 'm looking for the best way to extract the below information.

Host name - IP address - Host Lun id and drive letter.

Viewing SP Collects with Unisphere Service Manager may be a way to go but my I would welcome any other suggestions

  • kelleg

    6 Operator

    •

    4537 Posts

    825

    0

    Posted April 27th, 2011 11:00

    Please remember to mark the question as Answered when you get the correct or best answer. Also, please award points to the person providing the best answer.

    glen

  • yaribhas

    2 Intern

    •

    134 Posts

    825

    0

    Posted April 22nd, 2011 05:00

    A host grab will have that information as well. Not sure if it will have a LUN ID but other's for sure.

  • hersh1

    197 Posts

    825

    1

    Posted April 22nd, 2011 08:00

    Try this command:

    naviseccli -h ARRAY_IP server -volmap -host HOST_IP_ADDRESS -local

    Here is a sample of the output. The Host LUN ID would be the last number in the Device ID field. Unfortunately you need to know the IP addresses up front. I believe there's a command to get those. I'll glance around for it.

    Server Info:
    Name:  SERVERNAME WOULD BE HERE

    IP Address:  IP_ADDRESS WOULD BE HERE

    Devices Info:
    Device Id:  \\.\SCSI3:0:0:7
    Device Name:  \\.\PhysicalDrive8
    Device Mapping:  M:\
    LOGICAL UNIT WWN:  60:06:01:60:51:60:25:00:77:8D:60:12:CF:9E:DE:11
    LOGICAL UNIT NUMBER:  107
    Current Owner:  SP B
    Default Owner:  SP B
    Trespassed:  NO
    LUN Capacity(Gigabytes):  1834.298
    LUN Capacity(Blocks):  3846801408

  • hersh1

    197 Posts

    825

    1

    Posted April 22nd, 2011 08:00

    Found it:

    naviseccli -h ARRAY_IP port -list

  • 825

    0

    Posted April 27th, 2011 23:00

    I was testing the command you listed Hersh, but I don't have the 'server' option available.

    Which version of NaviCLI are you using and do you have any non-standard objects/apps installed, e.g. storagescope for ECC?

  • hersh1

    197 Posts

    825

    0

    Posted April 28th, 2011 04:00

    Not using navicli only have used naviseccli version 29.5.0.66 (Flare 29 patch 13) and version 30.0.4.75 (also against Flare 29 patch 13).

    The only non standard features on the arrays I've run this against are snapview, mirrorview and analyzer. It's also worked against arrays with no addtional features.

    The commands I listed assumed you had a security file setup. If you don't then you need to add these switches:  naviseccli -user USER_NAME -password PASSWORD -scope [0,1,2] -h ARRAY_IP ...

  • kelleg

    6 Operator

    •

    4537 Posts

    825

    0

    Posted April 28th, 2011 10:00

    The "server" command was added in release 29 - in the CLI User Manual it's in the section called "Virtual Server Commands", same for release 30.

    In R31 (VNX) it's in the Host Agent Command section.

    glen