Monday, July 22, 2013

Releasing licenses from Citrix License Server 11.10.0

This is pretty easy actually.  

1. Right click the command prompt icon and open as administrator. (It won't work if you don't run as admin.
2. Navigate to C:\Program Files (x86)\Citrix\Licensing\LS
3. There you will find the udadmin.exe file.  This is how you will remove the licenses.

First run a list of all licenses in use by users and devices:  udadmin -list

To release a user:  udadmin -f XDT_ENT_UD -user {username} -delete

To release a device: udadmin -f XDT_ENT_UD -device {devicename} -delete

After you have deleted everything you need cleared just stop and restart the Citrix Licensing service.  When you rerun the -list command you'll see only the licenses still in use.

That's all there is to it. 

Windows XP can't access Server 2012 File Cluster

I ran into this one today and it took me all morning to finally find a fix for it.  It appears this is a known issue with Microsoft and even though they have a supposed "hot-fix" for it you can install on the 2012 file servers that doesn't fix it.

There is however a work around that immediately fixed the problem for me once I found it out about it.

The text of the error follows:

You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
Logon Failure: The target account name is incorrect.

I also noted in the event log on the client a kerberos event failure every time the share was attempted to be accessed.

kerb error
Event Type: Error Event Source: Kerberos
Event Category: None
Event ID: 4
Date: 14/05/2013
Time: 08:27:30
User: N/A
Computer: XPClient
Description:
The kerberos client received a KRB_AP_ERR_MODIFIED error from the server fileservernode$. The target name used was cifs/Server.domain.int. This indicates that the password used to encrypt the kerberos service ticket is different than that on the target server. Commonly, this is due to identically named machine accounts in the target realm (Domain.INT), and the client realm. Please contact your system administrator.


Open Failover Cluster Manager
Go to Roles - Resources Tab - File Server
Right Click the File Server role - Take Offline
Wait for it to go offline, then Right Click - More Actions - Repair
Wait for it to come back online

This seems to take care of the problem....also while you're at it upgrade from XP.  :)

Saturday, July 20, 2013

Capture Cisco confgs with Putty

You can easily capture the configuration file from any network devices like Cisco Routers, Switches etc.. with Putty.  Download Putty

Follow below steps..
1. Launch Putty and connect to your Cisco router/switch/ASA

2. Enter the user exec mode (router> enable)

3. Enter the terminal length 0 command (router# terminal length 0) in order to force the router to return the entire response at once, rather than one screen at a time.  
 
NOTE:  If this is an ASA the command is a bit different (ASA#terminal pager 0)

This allows you to capture the configuration without extraneous −−more−− prompts generated when the router responds one screen at a time.
 
4. Right-click on the menu bar of the putty screen and select “change Settings

5. Go to Session and click on Logging, select “Log all session output

6. Click on Browse and choose the location and name of the file (I like to place my config file on my desktop – C:\Documents and Settings\Administrator\Desktop\ASAconfig.txt or SW1config.txt)

7. Click apply

8. Now enter the show run command (router# show running-config), Logout and see the output in config.txt on your desktop (or the location you chose).


That's all there is to it.  I highly recommend that each time you make a config change you do a quick backup like this.  There's nothing easier to do to come back from a failure than to have a recent config just waiting to be pasted in to get your device back online as quickly as possible.