travis' brain dump

Disk Cleanup Utility on Win 2008 R2

by on Jul.06, 2016, under Tech Stuff

Ok, so the convenience of using the disk cleanup utility is sometimes nice for a quick cleanup of service pack files, etc. But it’s missing on 2008 R2. What a pain.

Two ways to get this:

  1. Install the desktop experience. Not the best route as this installs all kinds of stuff you don’t want on your server but it works.
  2. Manually copy the files from that overgrown beast that is WinSxS (finally something it’s good for) and run the utility directly. (my preference)

To install, copy the following files to the correct destination:

  • cleanmgr.exe
    • copy from: c:\windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe
    • copy to: c:\windows\system32
  • cleanmgr.exe.mui
    • copy from: c:\windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui
    • copy to: c:\windows\system32\en-us
  • Install the following update: https://support.microsoft.com/en-gb/kb/2852386 (reboot may be necessary)

 

Leave a Comment more...

Vera Scene/Device Mode Manipulation

by on Feb.11, 2016, under Tech Stuff

Anyone who’s into home automation with Vera devices, this is for you. Just filing this one under ‘random things I don’t want to forget’.

Use this Luup code in a scene to modify your home mode on an action. For instance, you come inside or wake up in the morning and disarm your alarm but want the home mode to change from Night, Away, etc to Home.

luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = value}, 0)

Where Mode = value, value = 1 – Home, 2 – Away, 3 – Night, 4- Vacation

ex Scene Configuration:

Step 1 Trigger – ‘Vista Alarm is DISARMED’
Step 2 Device Actions – Leave Empty
Step 3 Finish the Scene – Use the provided code under the section ‘ Also, execute the following Luup code:’
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = 1}, 0)

Leave a Comment more...

Updating HP Virtual Connect Modules With VCSU

by on Aug.20, 2015, under Tech Stuff

Ok, since there really isn’t a very good tutorial out there on this nor are there good resources to find the right links to this stuff, here’s a post for you and for me.

So you need update your Virtual Connect Module, right? Should be just as easy as updating the OA, right? riiiiight. Because HP, that’s why.

Ok, so a few things you’ll need:

1. A current version of the VCSU -> Click Here <-
2. A current version of the VCM firmware. (make sure you get the right firmware for your device type)
a. Flex-10/10D Module
b. FlexFabric 10Gb/24-port Module
c. FlexFabric-20/40 F8 Module
3. You don’t need this, but it’s handy. VCSU Useful Commands.

Now that you’ve made it through all that, the easy part. First we’re going to check the current version of the module, do this by running the vcsu utility with the following:

.\vcsu.exe -a version -i (ip.addr.of.active.oa) -u OA.Admin -p OA,Admin.Pass -vcu VCU.Admin -vcp VCU.Admin.Pass 

(yes, you really want to pass all of those lovely credentials, even if they are the same login/password for both the OA and the VCU)

You should then see some results sort of like this:
hp-vcu-version

 

Now to update. This is very similar to your version check, except changing version to update and adding the switch and path at the end.

.\vcsu.exe -a update -i (ip.addr.of.active.oa) -u OA.Admin -p OA,Admin.Pass -vcu VCU.Admin -vcp VCU.Admin.Pass -l ‘c:\path\to\firmware.bin’

You should now see something like the following:

hp-vcu-update

At this point you should now be updated.

I’ll try to keep these updated with the most current links as I update my equipment, however, if someone hits it and it’s out of date, please let me know and I’ll go update it.

 

Leave a Comment more...

ZFS, that moment you need rw on / (in single-user mode)

by on Aug.18, 2015, under Tech Stuff

Little FreeBSD one for this morning… mostly because I’m sure I’ll forget this.

So, here’s the scenario, common mistake… you put a typo in your rc.conf and you get slapped into single user mode. We’ve all been there, on multiple occasions. It’s typically one of those moments you forgot an end quote or something silly like that. No biggie right?

I guess that depends on if you’re a regular user of ZFS or if you’ve been using UFS2 for so long you run commands for that on auto pilot…
In my case this morning, it was just that. “oh yeah, I’m running zfs on this box…” and found myself with half a second of ‘tf?’ when I went to run ‘mount -w /’ and received ‘unknown special file or file system’.

Solution? Just as easy.

# mount -u /
# mount -a -t zfs

Fix issue, reboot. 🙂

 

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!