Fibre Channel (SAN)

Reply
New Contributor
Posts: 2
Registered: ‎06-24-2016
Accepted Solution

A simple for script not working

Hello everyone,

 

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"
admin@switch's password:

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
8/30
1/18

 

I just want to place either ports either some WWN's and see their aliases.

 

What am I doing wrong?

 

Thanks and regards,

Adel

Brocade Moderator
Posts: 318
Registered: ‎08-31-2009

Re: A simple for script not working

Hello,

 

Which FOS version are you using?

Any and all information provided by me is not reviewed, approved or endorsed by Brocade and is provided solely as a convenience for Brocade customers. All systems and all networks are different and unique. If you have a service affecting network problem, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution"
New Contributor
Posts: 2
Registered: ‎06-24-2016

Re: A simple for script not working

Hello Thierry,

 

Fabric OS: v6.3.1a

 

Is this the cause?

 

Thanks,

Adel

Brocade Moderator
Posts: 318
Registered: ‎08-31-2009

Re: A simple for script not working

[ Edited ]

You can't use nodefind with Port number, only PID (Eg: 020100).

nsaliasshow can provide you the necessary information.

Any and all information provided by me is not reviewed, approved or endorsed by Brocade and is provided solely as a convenience for Brocade customers. All systems and all networks are different and unique. If you have a service affecting network problem, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution"

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook