Friday, August 10, 2012

Quick Cisco 3845 IOS update

I have used several methods to update IOS but the easiest for me is old fashioned FTP.

Copy the image from an FTP server to the router.

copy ftp://user:pass@10.1.2.3 flash

Tell the router to boot form the new software image.

boot system flash c3845-advsecurityk9-mz.124-25a.bin

http://proisk.com/?q=c3845-sp (interesting site)


Monday, July 2, 2012

Simple script to clone a Vmware server.


I needed to clone a couple of virtual machines so I installed PowerCLI and created this small script. I can schedule this and have daily backups. I know cloning may not be the best form of backup but this is what I need today.

c:\>type clone.ps1
connect-viserver 10.1.2.3
remove-vm -deletefromdisk "vm1 - backup"
new-vm -name "vm1 - backup" -datastore ds1 -vm "vm1" -vmhost v01.example.com
disconnect-viserver
c:\>

Tuesday, June 26, 2012

Enable remote desktop from the command line.


For some reason the regedit gui would not connect to the remote Windows 7 pc. I used my favorite tool Psexec from the command line and this worked!
reg add "hklm\system\currentcontrolset\control\terminal server" /v fDenyTSConnections /t REG_DWORD /d 0x0
This is how to verify the change.
reg query "hklm\system\currentcontrolset\control\terminal server" 
   fDenyTSConnections    REG_DWORD    0x0

Tuesday, June 19, 2012

Quick speed test between two servers with Iperf.

Iperf for Windows - free and portable!
http://linhost.info/2010/02/iperf-on-windows/

Server A:
iperf -s

Server B:
iperf -c x.x.x.x -P 5

[SUM]  0.0-10.0 sec  1.08 GBytes   927 Mbits/sec
(Not bad for 1gb network.)

The default test is 10 seconds, add "-t 60" for a longer test.

Monday, May 14, 2012

Error 80070483 sending a fax from Windows 2003.

 Here is the code I used for testing. It would work for txt, pdf and docx but not tif or tiff.
C:\fax>type fax.vbs
Set FaxServer = WScript.CreateObject("FAXCOMEX.FaxServer")
FaxServer.Connect "my-fax-server"
Set FaxDoc = WScript.CreateObject("FAXCOMEX.FaxDocument")
FaxDoc.Body = "faxtest.tif"
FaxDoc.Recipients.Add ("4151234")
JobID = FaxDoc.ConnectedSubmit(FaxServer)
C:\fax>
 The problem is tif file association and here is my fix.

[HKEY_CLASSES_ROOT\TIFImage.Document]
@="shimgvw.dll"
[HKEY_CLASSES_ROOT\.tif]
"Content Type"="image/tiff"
@="TIFImage.Document"

[HKEY_CLASSES_ROOT\.tiff]
"Content Type"="image/tiff"
@="TIFImage.Document"




Thursday, March 15, 2012

DNS testing with dig

dig @8.8.8.8 azaleablooms.com -t ns

Google DNS
8.8.8.8
8.8.4.4

OpenDNS
208.67.222.222
208.67.220.220

I just needed a place to jot this down.

Tuesday, March 13, 2012

How to check for GPS tags embedded in your photos.

http://geotag.sourceforge.net/?q=node/3

Luanch the Java app and add photos. Quick and easy.