vSphere Standard Switches CDP e LLDP

Spesso è necessario identificare su che apparato di rete e su quale porta sono attestai i nostri host ESXi senza accedere direttamente alla sala server dove sono posizionati.
Per poter recuperare queste informazioni abbiamo la possibilità di sfruttare due protocolli:
CDP (Cisco Discovery Protocol)  Protocollo proprietario di CISCO
LLDP (Link Layes Discovery Protocol) Protocollo neutrale
LLDP e CDP sono entrambi supportati da switch CISCO e HPE dove:
CISCO  à CDP abilitato di default su tutte le porte, LLDP solo su determinati switch con un determinato livello di OS.
HPE à CDP abilitato su tutte le porte ma solo in modalità di ricezione e LLDP abilitato su tutte le porte.
Per tornare alla nostra infrastruttua VMWare vSphere con ESXi abbiamo due scenari:
          Distributed Switch
          Standard Switch
vDistributed Switch
          CDP abilitato di default
o   Vengono ricevute le informazioni inviare dallo switch fisico
          LLDP da abilitare da webclient
o   Necessario abilitarlo per inviare le informazioni allo switch fisico
vStandard Switch
          CDP abilitato di default
o   Vengono ricevute le informazioni inviarte dallo switch fisico
          LLDP da abilitare da riga di comando sul singolo host ESXi
o   Necessario abilitarlo per inviare informazioni allo switch fisico
          è necessario farla da command line configurando il vswitch in modalita “Both”
o   esxcfg-vswitch <nome vswitch> -B both
per verificare la configurazione 
o   esxcfg-vswitch <nome vswitch> -b 
Il comando da dare sullo switch HPE per verificare su quali porte è attestato il                        nostro ESXi:
o   show lldp info remote-device

vSphere Standard Switches CDP e LLDP

UPGRADE SW FC MDS9124

I need upgrade switch mds9124 for compatibility with San Volume Controller 7.4
Now  NX-OS on MDS switch is :

  kickstart: version 5.0(4d)
  system:    version 5.0(4d)

Command for view NX-OS is “show ver”

After this i have checked free space on bootflash dir:

dir bootflash:

       315    May 19 09:04:25 2010  MDS20100519015906567.lic
        315    May 19 09:05:15 2010  MDS20100519020136847.lic
        318    May 19 09:05:51 2010  MDS20100519020443144.lic
      46080    Aug 17 21:36:20 2011  lost+found/
   18832896    May 18 10:57:02 2010  m9100-s2ek9-kickstart-mz.4.2.5.bin
   18788352    Aug 17 21:33:05 2011  m9100-s2ek9-kickstart-mz.5.0.4d.bin
   52767390    May 18 11:03:06 2010  m9100-s2ek9-mz.4.2.5.bin
   56800543    Aug 17 21:30:34 2011  m9100-s2ek9-mz.5.0.4d.bin
       2064    Aug 17 21:41:19 2011  mts.log

Usage for bootflash://sup-local
  160452608 bytes used
    2519040 bytes free
  162971648 bytes total

In this switch i have less free space. I need old version.

MDS-CP-02# del bootflash:m9100-s2ek9-kickstart-mz.4.2.5.bin
MDS-CP-02# del bootflash:m9100-s2ek9-mz.4.2.5.bin

Ok i am ready to load news fw in to bootflash dir i use tftp server:
copy tftp://10.1.1.207/m9100-s2ek9-kickstart-mz.5.2.8e.bin bootflash:m9100-s2ek9-kickstart-mz.5.2.8e.bin
copy tftp://10.x.x.x/m9100-s2ek9-mz.5.2.8e.bin bootflash:m9100-s2ek9-mz.5.2.8e.bin

UPGRADE SW FC MDS9124

How to mange controller raid with MegaCli over vmware esxi

xseries 2350 M4  + vmware esxi 5.1
Donwload megacli software from ibm site

How to install?

You need have active ssh connection to the esxi server 
Install to esxi server :

esxcli software vib install /tmp/vmware-esx-MegaCli-8.04.07.vib –no-sig-check

(The installation probably need put the host in manintenece mode and reboot server)

How to use?

Go to /opt/lsi/MegaCli/ and run ./MegaCli with option :

Check the status all of HD:

./MegaCli -PDList -aALL

or single HD

./MegaCli -PDInfo -PhysDrv [E:S] -aALL          (E is the enclosure and is the slot)

Download the log of controller:

./MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat event.log

Show info configuration:

./MegaCli -AdpAllInfo -aALL

Show controller configuration:

./MegaCli -CfgDsply -aALL

Battery status:

./MegaCli -AdpBbuCmd -aALL

Show rebuild status:

./MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aALL

And more info:

./MegaCli -h

 
How to mange controller raid with MegaCli over vmware esxi

Find serial number P2000 G3 HP

Use telnet or serial cable to connect

xxx.xxx.xxx.xxx login: admin
Password:

HP StorageWorks MSA Storage P2000 G3 iSCSI
System Name: SANxxx01
System Location: xxxxxxxx
Version: TS240P004-02
# show enclosure-status
Chassis                          Vendor   Product ID       CPLD EMP A CH:ID  Rev      EMP B CH:ID  Rev      WWPN
  Status
—————————————————————————————————————————–
2S6249C294                       HP       SPS-CHASSIS      22         00:031 2018           01:031 2018     500c0ff015fa2e3c
  OK
—————————————————————————————————————————–
Type     #  Status    FRU P/N      FRU S/N              Add’l Data
——————————————————————————-
FAN      01 OK        592267-002   CN8245T302           —
FAN      02 OK        592267-002   CN8245T303           —
PSU      01 OK        592267-002   CN8245T302           —
PSU      02 OK        592267-002   CN8245T303           —
Temp     01 OK        BK829B       CN8243M044           temp=41 C

Find serial number P2000 G3 HP

Show configuration and status HP raid esxi 5.1

Use iso esxi 5.1  customized HP

~ # /opt/hp/hpacucli/bin/hpacucli
HP Array Configuration Utility CLI 9.40.12.0
Detecting Controllers…Done.
Type “help” for a list of supported commands.
Type “exit” to close the console.

=> ctrl all show config

Smart Array E200i in Slot 0 (Embedded)    (sn: QT7AMV7298     )

   array A (SAS, Unused Space: 0  MB)

      logicaldrive 1 (558.7 GB, RAID 5, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

Show configuration and status HP raid esxi 5.1