Monday, 30 September 2019

Fields/Sections in the Brocade 6510 Supportshow Output (FOS 8.1.0b)

These are the fields/sections in the Brocade 'supportshow' output for a Brocade 6510 running Fabric OS 8.1.0b. I'm sure there's a good article somewhere describing all the fields/sections but I could not find it with a quick google. I’ve highlighted a few sections of interest.

Non-VF

Fields/Sections in Supportshow

Date
Time Zone
Version

supportshow groups enabled

 os         enabled
 exception  enabled
 port       enabled
 fabric     enabled
 services   enabled
 security   enabled
 network    enabled
 portlog    enabled
 system     enabled
 extend     disabled
 filter     disabled
 ficon      disabled
 iswitch    enabled
 asic_db    enabled
 fcip       disabled (not applicable to this platform)
 ag         enabled
 dce_hsl    enabled

portlogdump
portlogdump 0,1
top -n 1
mii-tool -vvv
sort
hostname
ps exfcl
rpm -qa
cat /var/log/dmesg
dmesg
cat /etc/fstab
cat /etc/mtab
cat /proc/cmdline
cat /proc/cpuinfo
cat /proc/devices
cat /proc/filesystems
cat /proc/interrupts
cat /proc/meminfo
cat /proc/modules
cat /proc/mounts
cat /proc/mtd
cat /proc/partitions
cat /proc/pci
cat /proc/slabinfo
cat /proc/stat
cat /proc/tty/drivers
cat /proc/uptime
cat /proc/version
cat /proc/fabos/iu/stats
cat /proc/fabos/mediafail
cat /proc/driver/iic/perf_stats
cat /proc/system/fpga
cat /proc/fabos/switch/0/route_info
cat /proc/fabos/switch/0/logical_info
cat /proc/fabos/switch/0/throttle_info
cat /proc/fabos/switch/0/pt_throttle_info_all
cat /proc/fabos/blade/0/info
rpm -Va
errdump -a
pdshow
fabricshow
fabricshow -version
dom
islshow
fabretrystats --show
trunkshow
fabriclog --show
fabriclog --show dport
fabswitchshow
ess show
ess show dcl
fabstatsshow
fabportshow all_ports
fspfshow
zone stateshow
zone alihashshow
portzoneshow
portcamshow
cfgsize
ad --exec 255 cfgsize
cfgshow
ad --show
ad --exec 255 /fabos/link_abin/ad --validate
ad --exec 255 zone --validate
defzone --show
zone --show
bcastshow
rcssmshow
rcsinfoshow
rcsregistryshow
ipfilter --show
iptables -L -vvv
ip6tables -L -vvv
porttrunkarea --show enabled
porttrunkarea --show disabled
porttrunkarea --show all
porttrunkarea --show trunk
fcplogshow
fcprlsprobe --show
fcprlsprobe --show 5
fcprlsprobe --show 7
fcprlsprobe --show 12
fcprlsprobe --show 13
fcprlsprobe --show 14
fcprlsprobe --show 15
fcprlsprobe --show 16
fcprlsprobe --show 17
fcprlsprobe --show 18
fcprlsprobe --show 19
portdporttest --show all
wwnaddress --show
topologyshow -1
ms agshow --all
fabchassisshow
nsshow -r
nsallshow
nszonemember -n
nscamshow -t
ns portshow
fdmishow
fdmicacheshow
nbrstateshow
lsdbshow -1
interfaceshow -1
appserver --domaininfo -all
appserver --show -all
authUtil --show
fddCfg --showall
secpolicydump
secstatsshow
secglobalshow
seccertutil show -all
pkishow
authUtil --dump -a
aaaConfig --show -npage
secactivesize
secdefinesize
ipaddrshow
userconfig --show -a
fipscfg --showall
fipscfg --verify fips
tail -200 /var/log/user.log
cat /tmp/netfilter.rules.ipv4
cat /tmp/netfilter.rules.ipv6
bootenv
sin
df
hostname
route -n
ifconfig -a
arp -n
mii-tool -vv eth0
ethtool eth0
ethtool eth2
ip -s link
ip -s addr
cat /proc/net/tcp
cat /proc/net/udp
cat /proc/net/netstat
netstat -a
netstat -i
netstat -s
netstat -nap
cat /proc/net/sockstat
cat /etc/ipadmd_log.txt
myid
chkconfig
firmwareshow -v
firmwareshow --history
firmwaredownloadstatus
cat /etc/.pd_data
cat /etc/version.conf
cat /mnt/etc/version.conf
clihistory --showall
dbgshow
uptime
switchshow
tempshow
sensorshow
psshow
fanshow
licenseidshow
licenseshow
licenseport --show
cat -v /etc/fabos/licenses
cat -v /etc/fabos/licensedb
portcfgshow
sfpshow -all
porterrshow
snmpdsupportshow
slotshow -d576
emtraceshow
emtraceshow2
emhsmtraceshow
systraceshow -d
chassisshow
timeout
historyshow
portswapshow
fosconfig --show
hadump
creditrecovmode --show
ficonshow rnid table
configshow -all (Check out the [Zoning] section)
cat -v /etc/fabos/fabos.chassis.conf
ls -l /var/log
lscfg --show
lscfg --show -ge
portcfgexport 0-47
portcfgvexport 0-47
fcrconfigure --show
lsanzoneshow -d
fcrproxydevshow -a
fcrproxyconfig
fcrxlateconfig
fcrphydevshow -a
fcrrouteshow
fcrfabricshow
fcrfabricshow --name
fcredgeshow
fcrresourceshow
fcrrouterportcost
fcrlsan --show -enforce
fcrlsan --show -speed
fcriclpathbwmonitor --show
fcrdbgdevshow
fcrdbgportshow
fcrdbgrouteshow
fcrdbghashow
fcrdbgportshow --state
fcrdbgcmds --spm
fcrdbgcmds --lsdb
fcrlogshow
sloterrshow -c2 -r
bladeportmap 0
asicswdump -s 0 -m 0
asicswdump -s 0 -m 0 -g 5
asicswdump -s 0 -m 0 -g 7
c3regdump 0/0/0
portbuffershow
portaddress --show
diagshow

Image: Brocade logo

Sunday, 29 September 2019

Upgrading SnapCenter Server 4.1.0 to 4.1.1P4

A lab run through of upgrading SnapCenter build 4.1.0.1341 to 4.1.1P4. Download link for SnapCenter 4.1.1P4 = https://mysupport.netapp.com/products/snapcenter/4.1.1P4/index.html

Note: This lab just has SnapCenter for Exchange running. Read the official documentation as I’ll skip some things not relevant to this lab scenario.

Official Documentation:
SnapCenter Software 4.1: Installation and Setup Guide
See page 170.


2) Create a copy of the web.config

Located at C:\Program Files\NetApp\SnapCenter WebApp

3) Create the SnapCenter MySQL database dump
(if the repository backup is not configured.)

md d:\SCBackup

mysqldump --all-databases --single-transaction --add-drop-database --triggers --routines --events -u root -p > D:\SCBackup\SCRepoBackup.dmp

When prompted, enter the password.

4) Run the downloaded .exe file to launch the SnapCenter upgrade wizard.

4.1) Welcome...

Click Next >

Image: Welcome to the Upgrade Wizard for NetApp SnapCenter Server...

4.2) Prerequisites Validation

Click Next >

Image: Prerequisites Validation

4.3) Credentials Upgrade

Enter the password.

Click Next >

Image: Credentials Upgrade

4.4) MySQL Database Connection

Enter the password.

Click Next >

Image: MySQL Database Connection

4.5) Ready to Upgrade

Click Upgrade

Image: Ready to Upgrade

Action/acknowledge any popups.
Note: Powershell ISE needs to be closed.

4.6) InstallShield Wizard Completed

Click Finish

Image: SnapCenter Server Upgrade Completed

The log files are (where xxx is a timestamp):
- MySQLInstaller_xxx
- SC_Package_Extraction_Log_xxx
- SMCoreInstall_xxx
- SMSInstall_xxx

5) Login to SnapCenter and Check the Version

About SnapCenter should say:
SnapCenter Server 4.1.1P4

6) Upgrade plugins

SnapCenter > Hosts > Managed Hosts
Select host
Click Modify

6.1) Modify: Select Upgrade plug-ins and click Next
6.2) Plug-ins: Make sure the correct Upgrade package is selected and click Next
6.3) Preinstall checks: click Next
6.4) Summary: click Finish

SnapCenter > Monitor > Jobs

Wait for the plugins to be upgraded.


THE END

Note: If your Dashboard headings don't display correctly after the upgrade, just reboot the SnapCenter server (that did the trick for me.)

Other tips (for upgrading SnapCenter plugins):

If a plugin is complaining that it cannot acquire information (cannot acquire .NET or PowerShell version so has red cross against their version status), rebooting the plug-in host server will fix this (restarting SnapCenter services does not fix.)

If the plugin appears to have installed (when checking the version on the plug-in host) but SnapCenter seems to be stuck on installing, try to manually update the plugin using the PowerShell in link [1] below:

[1] Upgrade SnapCenter Plug-in versions using PowerShell command for all Hosts in the environment:
https://kb.netapp.com/app/answers/answer_view/a_id/1087719/loc/en_US

[2] Upgrading SnapCenter Plug-in Package for Microsoft Windows or SnapCenter Plug-in for Microsoft SQL Server might fail on hosts with SQL databases on VMDK:
https://kb.netapp.com/app/answers/answer_view/a_id/1086820/loc/en_US

[3] How to Install a SnapCenter Plug-In manually and directly from the Plug-In Host:

[4] Manual remove SnapCenter Plug-Ins from Plug-In host:
https://kb.netapp.com/app/answers/answer_view/a_id/1074263/

Testing out SnapCenter All Hosts Maintenance Scripts

The scripts below are for putting SnapCenter application plugin hosts into maintenance mode and then exiting maintenance mode. This might be useful say if you’re upgrading your SnapCenter server. Everything highlighted needs to be modified accordingly. The scripts could be improved on, here we’re just testing.

Note: These scripts are designed to be run on the SnapCenter server itself (we just specify a credential for ‘open-smconnection’, don’t specify ‘-SMSbaseURL’.)

Script 1) Enter-MaintenanceMode.ps1


import-Module Snapcenter
$SC_admin = "domain\username"
$SVM_Password = ConvertTo-SecureString "user_Password" -AsPlainText -Force
$cred_Admin = New-Object -TypeName System.Management.Automation.PSCredential ($SC_admin, $SVM_Password)

# open connection
open-smconnection -Credential $cred_Admin

# Set all Windows hosts under Maintenance mode
Foreach ($hostname in ((Get-SmHost).Hostname)){set-SmMaintenanceMode -Hostnames $hostname -MaintenanceStatus UnderMaintenance -Confirm:$false}


Script 2) Exit-MaintenanceMode.ps1


import-Module Snapcenter
$SC_admin = "domain\username"
$SVM_Password = ConvertTo-SecureString "user_Password" -AsPlainText -Force
$cred_Admin = New-Object -TypeName System.Management.Automation.PSCredential ($SC_admin, $SVM_Password)

# open connection
open-smconnection -Credential $cred_Admin

# Set all Windows hosts under Maintenance mode
Foreach ($hostname in ((Get-SmHost).Hostname)){set-SmMaintenanceMode -Hostnames $hostname -MaintenanceStatus Production -Confirm:$false}


Testing/Example

The below screenshots show before and after of running the above scripts against a SnapCenter with Microsoft Exchange environment with one DAG and 3 mailbox servers.

Image 1: SnapCenter Managed Hosts before running Enter-MaintenanceMode.ps1

Image 2: SnapCenter Managed Hosts after running Enter-MaintenanceMode.ps1

Notice that the DAG is ‘Suspended’.

Image 3: Checking ‘Details’ for our DAG object in SnapCenter

Notice that – even thought we only see the DAG suspended above – all the mailbox servers are saying “Scheduled jobs for host ... are suspended.”

Image 4: SnapCenter Managed Hosts after running Exit-MaintenanceMode.ps1

To understand the Cmdlet’s check out the ‘SnapCenter Software Cmdlet Reference Guide’.

SnapCenter PowerShell Modules

As per the ‘SnapCenter Documentation Center’ (check out SnapCenter Software: Documentation Resources here: https://www.netapp.com/us/documentation/snapcenter-software.aspx)

“Preparing the PowerShell environment...
“On either the SnapCenter Server or the application host where a SnapCenter plug-in is installed, open a PowerShell session window and verify that the proper modules are loaded by using the get-module cmdlet.”

So, if you’re wondering (I was):

Q: How do I download and install SnapCenter PowerShell Modules?
A: You can’t, either find them on the SnapCenter server, or a SnapCenter application host.

But (there’s always a but), of course if you really wanted to run SnapCenter PowerShell modules from a machine other than SnapCenter or a SnapCenter plug-in host, you could do this.

Copy the SnapCenter folder from the below location on your SnapCenter server:

C:\Windows\System32\WindowsPowerShell\v1.0\Modules

To the below location on your machine that doesn’t have SnapCenter or any SnapCenter plug-ins installed:

C:\Windows\System32\WindowsPowerShell\v1.0\Modules

Note: Paths might very. Here both SnapCenter and non-SnapCenter server were Windows 2012R2.

Get-Module -ListAvailable

Will reveal under (after closing and reopening PowerShell):

Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules...
Manifest   1.0        SnapCenter...

And importing the snapcenter module will now work.

Import-Module SnapCenter

Image: SnapCenter PowerShell Modules Imported

Tuesday, 24 September 2019

NetApp INSIGHT 2019 (October 28-30, Mandalay Bay, Las Vegas) and UAV Expo


 

NetApp’s Insight 2019 conference is just over a month away. The sessions catalog and schedule builder are live here:


Whilst you’re there:

“Heading to NetApp Insight?  While in Vegas, you might wish to swing over to see the world’s top commercial drone show, an important cloud market. www.expouav.com – free expo to see 180 exhibitors if you preregister”.

“The NetApp user community can register for a free expo pass to see the world's top commercial drone companies while they are in Las Vegas.  But they have-to register in advance to get the free pass ($125 at the door).”

Image: A drone