Monday, October 3, 2016

vsphere 6 reset administrator@vsphere.local fails

Following VMWare KB 2146224 I was trying use the to reset the password Administrator@vSphere.local account so that I could sign in an make changes to the SSO identity providers.

When following the instructions and choosing option 3 I was getting a response  

VmDirForceResetPassword failed (5)

I found that there is a known bug in vSphere and no fix, but just a work around. It was fairly simple, just logon to the server as the local administrator and run it again.



Tuesday, August 30, 2016

vCenter operations produce login to the query service failed an ssl error occurred message

Once logged into vCenter managment console and trying to do operations like look at performance stats or sort the virtual machine list I received this message "login to the query service failed an ssl error occurred"

I found a quick an easy fix at https://communities.vmware.com/thread/538636?start=0&tstart=0

It seems that a microsoft update removed some Security Key Exchange Algorithms.

Here was the quick fix.  Basically add this registry entry and you're back in business:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman]
"ClientMinKeyBitLength"=dword:00000200

Tuesday, May 3, 2016

SQL match orphaned users after DB restore

Restoring a DB to another DB server will not restore users to the SQL server itself, only the users in the DB.  But to use those users, they will need to be created in the SQL server and then mapped to the appropriate user in the DB.

Quick notes on how to do this.

List the orphaned users:
use RestoredDBName
EXEC sp_change_users_login 'Report'

Fix the users
use RestoredDBName
EXEC sp_change_users_login 'Auto_Fix', 'user'
-or-
EXEC sp_change_users_login 'Update_One', 'OrphanedUser', 'OrphanedUser'


More Details here.
https://msdn.microsoft.com/en-us/library/ms174378.aspx

Wednesday, April 13, 2016

Cisco IOS automatic config backups

Backing up configuration files from Cisco switches and routers is an important part of maintaining a network.  Solarwinds has their config management suite, but it can get rather expensive.  There has to be a way to backup Cisco IOS configs in a more automated and cost effective way.  I'm not looking for automated notification when a config changes, just the backup where I can validate configurations as well as have a backup in case of equipment failure.  

I'm pleased to have discovered the Archive function in Cisco IOS.

Here are the simple setup steps.

  1. Run a TFTP Server service (Solarwinds has one) 
  2. Update the IOS config with the following commands
Switch1#conf t
Switch1(config)#archive
Switch1(config-archive)#path tftp://10.1.1.1/$h-$t
Switch1(config-archive)#write-memory
Switch1(config-archive)#end
Switch1#write mem

Note a few things.
  • The IP address of the TFTP server needs to be your IP address
  • The $h variable adds the switch/router host name to the file that is written
  • The $t variable adds a time stamp to the file name that is written
  • Each file that is written appends a hyphen and incremental numeric value.
** To do file comparison, it's fairly easy with the Compare Plugin in Notepad++.  Simply add Compare plugin (Go to the Plugins menu > Plugin Manager , check the Compare checkbox and press install) and compare the two files.

Other Reference Links
https://learningnetwork.cisco.com/blogs/vip-perspectives/2013/10/30/understanding-cisco-auto-archive-feature-to-backup-configuration-file



Tuesday, February 9, 2016

GitHub https pull Credential helper

When trying to do a pull from Git and receiving the following.
 
git pull
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/
 
Take a look at 

thanks for the post 

Cisco Prime Infrastructure NCS 1.3 can not start DB

I ran into a problem recently where our Cisco Prime Infrastructure Manager (v1.3) wouldn't load the web interface.  I could ping the system, I could SSH into the CLI, but no response from the Web Management Interface.

After a bit if diagnosis from the CLI, using the following commands:

ncs status (the result was similar to the following)
Health Monitor is running, with an error.
initHealthMonitor(): can not start DB
Reporting Server is Stopped
Ftp Server is Stopped
Database server is stopped
Tftp Server is Stopped
Matlab Server is Stopped
NMS Server is stopped.
SAM Daemon is not running ...
DA Daemon is not running ...
Syslog Daemon is not running ...

ncs stop
ncs cleanup

ncs start (the system still wouldn't start)
Starting Network Control System...
Unable to verify hardware.
This may take a few minutes...
Health Monitor is already running.
Failure during Network Control System startup.  Check launchout.log for details.

I figured I could have done a ncs DB reinitdb but why would I want to lose all of our data.

Thanks to 42wim's blog I found the solution.  It has to do with an Oracle DB issue.

http://blog.42.be/2013/02/cisco-prime-infrastructure-ncs-12-and.html


Monday, January 18, 2016

Cisco MX700/800 Speaker Diagnostics

Recently installed an MX700 Dual Screen with Speaker Track.  I was having some odd audio issues and come to find out some of the speaker cables were installed wrong.  After a bit of digging I came across this Cisco article.  Great help (just be sure to enable CLI access to the unit).

http://www.cisco.com/c/en/us/support/docs/collaboration-endpoints/telepresence-mx700/118764-technote-mx700-00.html


A few quick snippets from the article...

First verify the cables

Dual Camera

 

Single Camera
 

 

After the cables are verified, SSH into the CLI using your admin user ID and password.  Run this command in order to test that the speakers function (TC Version 7.3 and later):

xcommand experimental audio speakercheck

Be sure to not block audio path between the speaker and table mics.  You should hear white noise from each speaker in numeric order which is from left to right