09-19-2016 04:56 AM
Can someone please help me with a simple for i script to nodefind all wwn's of a switch?
I tried this:
ssh admin@switch "for i in `cat testingscript` ; do echo $i; nodefind $i | grep -i "Aliases:"; done"
rbash: -c: line 2: syntax error near unexpected token `1/18'
rbash: -c: line 2: `1/18 ; do echo ; nodefind | grep -i Aliases:; done'
My file looks like:
root@vgrcd1ss:/home/adel# cat testingscript
I just want to place either ports either some WWN's and see their aliases.
What am I doing wrong?
Thanks and regards,
Solved! Go to Solution.
09-19-2016 05:18 AM
Which FOS version are you using?
09-19-2016 08:13 AM - edited 09-19-2016 08:26 AM
You can't use nodefind with Port number, only PID (Eg: 020100).
nsaliasshow can provide you the necessary information.