All posts by bsdman

Currently working as an IT Manager. Worked for an OIT company as a Network Engineer in 2011. Worked for a Medical IT company as the Network Administrator 2009-2011. Worked as the Senior Systems Administrator at a computer reseller from 2005-2009. Worked as a Computer Consultant for several small companies from 2007-2009. Worked as a Computer Technician at a computer reseller from 2002-2004.

Citrix Licensing Issues

It’s been a while since I had to deal with Citrix – metaframe 3.5 was the last I had used. Now they’re on XenApp 6, XenDesktop 5, and Xenserver something or other. But this problem has to do with the Citrix Licensing server

Version according to Citrix’s website: 11.6.1 for Windows
Version according to Add Remove Programs: 7.1.10007
Meh.

Anyway, after a forced reboot of the server, it looked like the SQL table/database for the licensing server was corrupted. The Citrix Licensing server would not start and it was throwing off an error 1067:
Error 1000 in the eventviewer - Faulting application name: lmadmin.exe, version:0.0.0.0, time stamp: 0x4a01594d.
Could not start the Citrix Licensing Service on Local Computer. Error 1067: The process terminated unexpectedly

I tried the “remove all of your license files and try to start the service” technique. I also tried re-downloading the citrix_startup.lic file and the opt file. No dice.

Uninstall and reinstall the License server. It even leaves your licenses in place. Then it worked like magic.

ESEUTIL Exchange 2003 Errors

Customer had an exchange 2003 box running on a virtual VMWare ESXi infrastructure. After a reboot the store would not mount. Another technician had been checking it out so I came into the game a little late.

After trying various methods to fix the issue, the technician was able to mount the store. Unfortunately there were no mailboxes listed on the store – bad news bears.

The problem was escalated to me and I ran a checkdisk on their drive
chkdsk /r E:
This checkdisk found a few sector corruptions on the primary EDB database file and fixed them. It also found a few miscellaneous table errors and filename issues – which it fixed – but nothing really major besides the EDB file.

Restarted the server and all services came back up. Unfortunately, while mail started to actually flow, I was receiving other eventlog errors:

ESE Database Page Cache – event ID 474. Information Store First Storage Group: The database page read from (file) at offset (offset) failed verification due to a page checksum mismatch. The read operation will fail with error -1018 (0xfffffc06).

Awesome.
Then I got this gem:

MSExchangeIS Mailbox – event ID 1025. An error occurred on database “First Storage Group\Mailbox Store (servername)”. Function name or description of problem: SLINK::EcUpdate Error: Read verification error

Better, no?
Basically it looks like some data corruption had occurred. Now I needed to fix this and get it back up and running ASAP.
Open a command prompt
cd \program files\exchsrvr\bin
eseutil /g "path\to\mdbdata\priv1.edb"
This will check database integrity

/D will defrag mode
/P will repair mode
/C will restore mode
/R will recover mode
/M will file dump mode
/K will checksum check mode
/Y will copy file mode

***EDIT***
Well, looks like I have to do the /R to repair as it came back saying the database was corrupted. /R should only be used if you get a similar message as it attempts to reorganize the database instead of rebuilding from the log files.

Exchange 2010 Binding Issue

I was checking out the recent upgrade to 2010 from 2003 and I noticed the following in the eventlog:

Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/42194754
Exception: System.ServiceModel.ServiceActivationException: The service ‘/Autodiscover/Autodiscover.xml’ cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme http for the endpoint with binding CustomBinding. Registered base address schemes are [https].. —> System.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding CustomBinding. Registered base address schemes are [https].

This was popping up mostly when someone was logging into OWA for the webmail access, but it also showed up a slightly different way when someone would try to reserve resources (rooms) for meetings.

And here’s the easy fix for me:

remove IIS binding http 80 127.0.0.1
remove IIS binding https 443 127.0.0.1

This might not apply to you, but just make sure you only have ONE binding for each port (80 and 443) and the best practice is to have it bind to any (*)

Exchange 2010 OWA OOF Issue

New place I work recently upgraded from a 2-server Exchange 2003 (1FE and 1BE) to a 4-server Exchange 2010 (CAS and Mailbox, Mailbox, Hub, Edge) environment. Unfortunately some of the upgrade didn’t go quite as planned and there were quite a few issues remaining.

One such issue was when a user would log into OWA (Outlook Web App – or as I still like to call it Outlook Web Access) and attempt to open up the Out Of Office area, they would receive a permission denied. This means the user cannot view the ECP (exchange control panel) area of OWA.

Problem I found: Users did not have a role policy assigned to them.
Shows the role assignment – should show “Default Role Assignment Policy”
get-mailbox MAILBOXNAME | select-object roleassignmentpolicy

If nothing shows, you must set the default policy:
get-mailbox MAILBOXNAME | set-mailbox -roleassignmentpolicy "Default Role Assignment Policy"

shows the current membership roles – should show MyBaseOptions
get-managementroleassignment -roleassignee MAILBOXNAME | fl role

If nothing shows, you must add the base options:
add-rolegroupmember 'MyBaseOptions' -Member MAILBOXNAME

ALL USERS IN DOMAIN – just remove the mailbox name:
get-mailbox | ft name,roleassignmentpolicy
get-mailbox | set-mailbox -roleassignmenpolicy "Default Role Assignment Policy"

RHEL 3 or 4 Updates via CLI

I had the opportunity to work on a Red Hat Enterprise Linux box that was running version 3 of the software – but I’ve been told this should work on 3 or 4 (and possibly 2, but who cares about 2 anymore?). Starting with 4 and perhaps 5 through 6 you can use:
yum update

But before these good days, you had to use:
up2date -l
Lists all the available updates
up2date -u
Download and update all available packages (not kernels)
up2date -uf
Download and update all available packages
up2date PACKAGENAME
Update specific packages (up2date php for example)

Change the From Address for Users Emails

I was running a cron job script:
cat /var/log/syslog | mailx -s "Server 48 - Syslog - Daily" email@domain.tld
Unfortunately I setup all these cronjobs as root. All emails were showing up as from “root@domain” or “root@server”, or even just plain “root”. Awesome.

So here’s the easiest way to fix this issue:
chfn
Then change the information for first/last/etc. This will change it for the CURRENTLY LOGGED IN USER.

Otherwise you can always just run:
chfn -f "Full name" root
Usage is chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]