Well, directly, you cannot. The only way is to call nsradmin and to gather
for each client, client name and storage node affinity :
nsradmin> show name,storagenode affinity
nsradmin> print type:nsr device
Then, parse the output and build an array for each entry in client storage
node affinity like perl sampl, substituing generic nsrhost/nsrserverhost
entries by your server name :
SN_ARRAY{$storage_node_name}{$client}=1;
Once all of the nsradmin output is parsed, count amount of client per
storage node.
if you have more than 1 client per SN, then it's a storage node.
if you have 1 client per SN, then it's a SAN/dedicated storage node.
Another trick is to gather from nsr device list (version 7+) for name and
attribute "dedicated storage node".
nsradmin> show name,dedicated storage node
nsradmin> print type:nsr device
Then, from the device names, eg rd=host:/devicename, split to isolate SN
name, removing rd= and :/device.
It will give you an idea, nothing preventing, in V7, a SN to have
dedicated device and normal device, acting as SN and SAN SN at the same
time.
HTH,
Th
> Hi to all,
> there is a way to check which client use a dedicated storage node?
> And not with the guy, cause I have to do a report via scripts...
> With nsrlic I don't see nothing.
>
> Thank's a lot
> Antonio
>
> --
> Note: To sign off this list, send a "signoff networker" command via email
> to listserv AT listserv.temple DOT edu or visit the list's Web site at
> http://listserv.temple.edu/archives/networker.html where you can
> also view and post messages to the list. Questions regarding this list
> should be sent to stan AT temple DOT edu
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
>
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|