Backtrack:  
 
showing posts of October 2016
 
edited by on October 28th 2016, at 08:58

You can easily backup the complete configuration of a Brocade FC switch through the CLI. It works similar to that of a Dell or Cisco switch, allowing to copy the configuration to a remote server. FTP, SCP, SFTP and others are supported.

Log on to your switch through the CLI, then:

Switch1:admin> configupload
Protocol (scp, ftp, sftp, local) [ftp]: scp
Server Name or IP Address [host]: 1.2.3.4
User Name [user]: remoteuser
Path/Filename [<home dir>/config.txt]: /home/remoteuser/switch1.txt
Section (all|chassis|switch [all]): all
remoteuser@1.2.3.4's password:

configUpload complete: All selected config parameters are uploaded
edited by on October 27th 2016, at 11:34

If you encounter the following error message while trying to backup the internal database (IDB):

Error
Putting the Internal Database into the backup mode failed.

The reason might be due to the backup being initiated by the Inet process which may run as a certain user account that has not been added to the impersonation of the cell manager.

To resolve, follow these steps:

  1. Start the DP GUI. Choose "Clients"
  2. Right-click the cell manager, delete the existing impersonation.
  3. Add a new impersonation and enter the correct credentials (usually the service account).
edited by on October 12th 2016, at 15:46
I found this little snippet online that allows you to preparse your Powershell scripts to ensure there are no syntax errors in it. This is useful if you need to know the script is error-free but are otherwise unable to run it.

Source: https://rkeithhill.wordpress.com/2007/10/30/powershell-quicktip-preparsing-scripts-to-check-for-syntax-errors/# Contents of file TestScript.ps1param($path, [switch]$verbose)if ($verbose) { $VerbosePreference = ‘Continue’}trap { Write-Warning $_; $false; continue }& `{ $contents = get-content $path $contents = [string]::Join([Environment]::NewLine, $contents) [void]$ExecutionContext.InvokeCommand.NewScriptBlock($contents) Write-Verbose "  ...
 
showing posts of October 2016
 
 
« April 2024»
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    
 
Links
 
Quote
« I needed a password with eight characters so I picked Snow White and the Seven Dwarves. »