Tag Archives: Brocade

How to set the DNS server in a Brocade switch

In order to do DNS lookups in a Brocade SAN switch (for example to read the NTP server’s time), you need to configure DNS first.

By using the command “dnsconfig”, you can configure which 2 DNS servers the switch can use to do lookups:

dnsconfig

Now you see a 4-item menu:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4]

Use option 1 to display the current configuration. If you need to add 2 DNS servers, choose option 2:

Enter Domain Name: [] 50mu.net
Enter Name Server IP address in dot/colon notation: [] 172.18.2.11
Enter Name Server IP address in dot/colon notation: [] 172.19.3.111
DNS parameters saved successfully

Now choose option 1 to see the current configuration:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4] 1

Domain Name Server Configuration Information
____________________________________________

Domain Name = 50mu.net
Name Server IP Address = 172.18.2.11
Name Server IP Address = 172.19.3.111

Now enter option 4 to leave the configuration tool:

Enter option
1 Display Domain Name Service (DNS) configuration
2 Set DNS configuration
3 Remove DNS configuration
4 Quit
Select an item: (1..4) [4] 4

SAN-switch-12:admin> ping www.50mu.net
PING www.50mu.net (37.97.155.181): 56 octets data
64 octets from 137.97.155.181: icmp_seq=0 ttl=128 time=6.1 ms
64 octets from 37.97.155.181: icmp_seq=1 ttl=128 time=2.7 ms
64 octets from 37.97.155.181: icmp_seq=2 ttl=128 time=2.7 ms

Troubleshooting connectivity issues on a Brocade SAN

Fog

I recently had the “pleasure” to figure out what was wrong with a Brocade based SAN environment. Servers were loosing connectivity on one of the HBAs, but all links were online and further investigation was necessary.

Going through all the error counters on each of the long wave SFPs finally revealed one of the SFPs’ health as marginal (hence it was still online, but very buggy indeed). The webtools GUI showed this particular SFP als orange instead of green. Disabling and re-enabling this SFP didn’t help and I decided to shut this SFP for good. And guess what: all my troubles went away. The trunk this SFP was in went back to a non-redundant, but healthy state and all servers got back to normal operations and got their redundant paths back.

So to summarize the story: look for marginal or even faulted SFPs when vague connectivity issues arise. If links are redundant, shutting the faulty one might help.

How to set the NTP server, time and timezone in a Brocade switch

NTP server

Previously I wrote about setting the NTP, time and timezone settings in a Cisco switch and now it’s time for the same in a Brocade switch.

It’s in fact not that hard to do. Log in to the CLI and use the following commands:

tsclockserver 1.2.3.4

or

tsclockserver ntp.domain.ext (make sure the DNS is set up properly first)

This will set the NTP server address in this switch to ip address 1.2.3.4. Set this only on the principal switch, as this switch will propagate the time to the other switches in the fabric.

To set the timezone use the following command:

tstimezone –interactive

(please note that there’s a double “-” before “interactive”)
This will ask for the region and country the switch is located in.

Choose 8 for Europe and 34 for the Netherlands and after verifying the setting, choose 1 (yes) to set the TZ.

Use the “date” command to verify the current time and date and TZ region:

Wed May 13 01:08:32 CEST 2015

This makes life a lot easier when troubleshooting!