Pages

12/29/2006

Cisco::Tip::Reload in X



"reload in x" and "reload cancel"
When making configuration changes remotely that you think might disconnect you if you make a mistake, setup an automatic reboot in a few minutes, make the change, if you screw up and get disconnected, it will restart with the old config. After making a successful change, write the config and then cancel the restart.

The following example reloads the software on the router in 10 minutes:
Router# reload in 10

Router# Reload scheduled for 11:57:08 PDT Fri Apr 21 1996 (in 10 minutes)
Proceed with reload? [confirm]
The following example reloads the software on the router at 1:00 p.m. today:
Router# reload at 13:00

Router# Reload scheduled for 13:00:00 PDT Fri Apr 21 1996 (in 1 hour and 2 minutes)
Proceed with reload? [confirm]

The following example reloads the software on the router on April 20 at 2:00 a.m.:
Router# reload at 02:00 apr 20
Router# Reload scheduled for 02:00:00 PDT Sat Apr 20 1996 (in 38 hours and 9 minutes)
Proceed with reload? [confirm]
The following example cancels a pending reload:
Router# reload cancel
%Reload cancelled.

12/26/2006

Outlook: Problems Syncing Offline Folders



From: MS KB 842284

How to create a new .ost file and synchronize the folders

To create a new .ost file, rename the old .ost file, and then synchronize the new .ost file with the computer that is running Microsoft Exchange Server. When you rename the old .ost file, Outlook creates a new file. To do this, follow these steps:

1. Quit all programs.
2. Click Start, point to Search, and then click For Files or Folders.
3. In the search dialog box, click All files and folders.
4. In the All or part of the file name tab, type *.ost .
5. Do not type anything in the A word or phrase in the file box.
6. Click the hard disk in the Look in list. Then, under the More advanced options option, click to select the Include subfolders check box, and then click Search

In the Name column, you see the .ost file. The default location for the .ost file is as follows.

For Microsoft Windows 95 and Microsoft Windows 98:
C:\Windows\Local Settings\Application Data\Microsoft\Outlook

For Microsoft Windows 2000, Microsoft Windows NT and Microsoft Windows XP:
C:\Documents and Settings\user name\Local Settings\Application Data\Microsoft\Outlook

7. Right-click the .ost file, and then click Rename. Rename the file by using a different file name extension, such as an .old file name extension instead of the .ost file name extension.
8. On the File menu, click Close.
9. Start Outlook, point to Send/receive on the Tools menu, and then click Send/Receive All.
You see the status of the new synchronization in the lower-right part of the screen, and you now have a new .ost file.

Because the .ost file is a replication of the information that is stored in the Exchange Server mailbox, this procedure does not damage any information.

12/04/2006

Hey, Scripting Guy! How Can I Delete All the .BAK Files in a Folder That Are More Than 7 Days Old?:
"dtmDate = Date - 7

strDay = Day(dtmDate)

If Len(strDay) < 2 Then
strDay = '0' & strDay
End If

strMonth = Month(dtmDate)

If Len(strMonth) < 2 Then
strMonth = '0' & strMonth
End If

strYear = Year(dtmDate)

strTargetDate = strYear & strMonth & strDay

strComputer = '.'

Set objWMIService = GetObject('winmgmts:\\' & strComputer & '\root\cimv2')

Set FileList = objWMIService.ExecQuery _
('ASSOCIATORS OF {Win32_Directory.Name='C:\Scripts'} Where ' _
& 'ResultClass = CIM_DataFile')

For Each objFile In FileList
strDate = Left(objFile.CreationDate, 8)
If strDate < strTargetDate Then
If objFile.Extension = 'bak' Then
objFile.Delete
End If
End If
Next"