Use nsradmin for this. If you know the name of the storage node it is easy. Just enter the nsradmin prompt by typing "nsradmin" and hit enter. Inside the prompt you set the query by typing ". NSR client" and hit enter. After this, print the client information using "print name: client" and replace "client" with the name of you storage node.
If you want to script it, the below should work although i have not tested it. The client info will be stored in clients.txt. Run it with "scriptname.sh clientname"
---
#!/bin/sh
echo option hidden: On > nsradm.in
echo . NSR client >> nsradm.in
echo p name: $1 >> nsradm.in
nsradmin -i nsradm.in > clients.txt
more clients.txt
rm nsradm.in
---
nsradm.in should read like this:
. type: NSR device
print
The command would be "nsradmin -i nsradm.in > outfile".
Then search the file for the string "rd=". Right after the "=" character you will find the name of the SN host. If there is none, the device is attached at the server.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.