Category Archives: Configuration - Page 4

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!

Useful EMC VMAX CLI commands

VMAX

Over the years I collected a number of useful CLI commands to control the DMX / VMAX machines I worked with. Even though nowadays Unisphere for VMAX is a useful tool, nothing really beats the command line!
Read more »

How to list Host LUN ids in VMAX Masking Views

VMAX

Creating tdevs and masking them to hosts (storage groups in a masking view) is relatively easy in the Unisphere for VMAX interface, but what if you add a few tdevs of exactly the same size and you want to make sure that the VMware administrator uses the right LUN for each VMFS he’s going to create? One way to make sure he knows which LUN corresponds with what tdev is the Host LUN id. To list the host LUN ids

symaccess -sid 1234 show view mv_some-maskingview-name

or (a bit more verbose)

symaccess -sid 1234 list view -name mv_some-maskingview-name -detail

The second command shows each initiator group nested within other initiator groups as well.

Both generate a table with the following headers:

Sym                                                            Host
Dev     Dir:Port    Physical    Device    Name    Lun    Attr    Cap(MB)

The column under “Host Lun” shows the Host LUN ids.

How to enable SSH on a VMware 5.5 ESXi host using the vSphere client

virtual machine

Recently I needed to make some edits on vmdk files in order to get rid of a reference to the change tracking files, as mentioned in Gabrie’s post: Cannot open the disk and could not open change tracking file. An SSH connection to a VMware ESXi host was required. SHH was disabled and I needed to enable it temporarily.

How to enable SSH on an ESXi host using the vSphere client

In vSphere, select the host you want to enable SSH on.

Select the “Configuration” TAB, then “Security Profile”. In the upper right select “Properties.

A new window opens, now select SSH (you may need to scroll down a bit) and in the lower right select “Options”.

Again a new window opens and here you can either “Start” or “Stop” the SSH daemon.

enable SSH