Tag Archives: SAN

Changing the time of Cisco DCNM

You’ve just deployed the DCNM appliance and you notice that the reports are displayed in the PDT timezone format. How do you change this into your own timezone?

For this you can log on to the command line of the appliance using SSH.

Check if DNS is working by performing a ping to your favorite NTP server.

To edit your timezone settings use your favorite editor (like “vi”).

vi /etc/ntp.conf

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

If you want to use your own NTP server, put a hashtag in front of the 4 example servers in the config file and put your own NTP server in.

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
ntp.mycompany.com iburst

The “iburst” parameter will try 8 times to collect new time info if necessary, instead of the default, which is only once per interval.

To change the timezone, remove the /etc/localtime file and create a new symbolic link to the file you need.

rm /etc/localtime

The list of location files can be found here:

/usr/share/zoneinfo

for example “Europe/Amsterdam” would be the file /usr/share/zoneinfo/Europe/Amsterdam. You can simply list the available locations by listing the available files in these folders.

ln -s /usr/share/zoneinfo/Europe/Amsterdam localtime

Now restart the NTP daemon:

service ntpd restart

And check the current date and time:

[email protected] etc]# date
Tue Jun 19 13:22:06 CEST 2018
[[email protected] etc]# date
Tue Jun 19 13:26:00 CEST 2018
[[email protected] etc]#

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]

Read more »

Brocade SAN Switch commands that prove to be very useful

Brocade commands are usually very easy to find out. Simply type “help” and look for the command you think you need, but what exactly does each command do? Here’s a list:

Info

uptime                          – Same as unix uptime
date                              – Same as unix date
version                          – Gives versions of firmwares & OS

Hardware State

faultshow                     – Show switch faults
fanshow                       – Show switch FAN faults
psshow                        – Show switch POWER SUPPLY faults
tempshow                    – Show switch TEMPERATURE values
switchstatusshow          – Overall status of switch

Config

Read more »

Using putty instead of the default ssh from Cisco device manager

DCNM

How do I configure Cisco DCNM so Putty starts when I select to go to the command line of a switch?

right click on switch

If you right click on a switch in the overview section in DCNM, you can go to the command line of that switch, but how do you change the default CLI SSH into Putty (or another telnet / SSH capable tool)?

Read more »

How to add new members to an existing Cisco smart zone

Cisco MDS

DCNM is down. I love the tool, but the downside is that you forget how to use the CLI. I faced downtime of our DCNM appliance and was forced to use the CLI instead. No big deal actually, but I still want to post the commands to use when you need to add new hosts to existing zones.

First you might want to create a new device alias for the new hosts:

device-alias database
device-alias name server1 pwwn 20:11:00:15:b9:00:00:00
device-alias name server2 pwwn 20:11:00:15:b9:00:00:01
device-alias commit

And then you want to add the new aliases to the existing (smart) zone:

config
zone name NameOfZone vsan 123
member device-alias server1 init
member device-alias server2 init
zone commit vsan 123

You can commit the whole zoneset now by running:

zoneset activate name ZoneSetName vsan 123

That’s it! there’s not much to it, and can save you a lot of time as well!