Monday, April 8, 2013

How To Configure Cisco's Syslog Logging


In this blog entry I will outline the steps you need to take on your Cisco Router or Catalyst device to configure syslog logging.

If you are configuring a Cisco Router for syslog logging then please follow the steps below:

1. In order to ensure that logging is enabled, issue the logging on command.

Router(config)# logging on

2. In order to specify the Essentials server that is to receive the router syslog messages, issue the logging ip_address command. ip_address is the address of the server that collects the syslog messages.

Router(config)# logging 1.1.1.1

3. In order to limit the types of messages that can be logged to the Essentials server, set the appropriate logging trap level with the logging trap informational command. The informational portion of the command signifies severity level 6. This means all messages from level 0-5 (from emergencies to notifications) are logged to the Essentials server.

Router(config)# logging trap informational

Valid logging facilities are local0 through local7.

Valid levels are:

emergency
alert
critical
error
warning
notification
informational
debug
4. In order to verify if the device sends syslog messages, run the sh logging command. You see all the syslog messages that are sent. If you do not see syslog messages, ensure that this is configured:

logging on logging console debug logging monitor debug logging trap debug

If you are configuring a Cisco Catalyst device for syslog logging please follow the steps below:

1. Ensure sure logging is enabled with the set logging server enable command.

Catalyst> (enable) set logging server enable

2. Specify the Essentials server that is to receive the router syslog messages, with the logging server_ip command. server ip is the IP address of the Essentials server.

Catalyst> (enable) set logging server 1.1.1.1

3. Limit the types of messages logged to the Essentials server. Enter set logging level informational, where informational signifies severity level 6. This means that all messages from level 0-5 (from emergencies to notifications) are logged to the Essentials server.

Catalyst> (enable) set logging server severity 6

4. In order to see if syslog messages are sent, use the sh logging buffer command. You see syslog messages that are sent. If you experience problems with switches, try this configuration:

set logging level all 7 default

set logging server enable

set logging server 1.1.1.1 (your unix syslog server ip address)

set logging server facility LOCAL7

set logging server severity 7 #syslog

set logging console enable

set logging server enable

set logging server 1.1.1.1

set logging level cdp 7 default

set logging level mcast 7 default

set logging level dtp 7 default

set logging level dvlan 7 default

set logging level earl 7 default

set logging level fddi 7 default

set logging level ip 7 default

set logging level pruning 7 default

set logging level snmp 7 default

set logging level spantree 7 default

set logging level sys 7 default

set logging level tac 7 default

set logging level tcp 7 default

set logging level telnet 7 default

set logging level tftp 7 default

set logging level vtp 7 default

set logging level vmps 7 default

set logging level kernel 7 default

set logging level filesys 7 default

set logging level drip 7 default

set logging level pagp 7 default

set logging level mgmt 7 default

set logging level mls 7 default

set logging level protfilt 7 default

set logging level security 7 default

set logging level radius 7 default

set logging level udld 7 default

set logging level gvrp 7 default

set logging server facility LOCAL7

!

Enter: sh logging

You see this output:

Logging buffer size: 500

timestamp option: enabled

Logging history size: 1

Logging console: enabled

Logging server: enabled {1.1.1.1}

server facility: LOCAL7

server severity: debugging(7)

Current Logging Session: enabled

Your Cisco device will now be configured for syslog logging.


Software 4 win: http://www.geardownload.com/internet/syslog-watcher-personal-edition-download.html

http://www.joshd.ca/content/how-configure-ciscos-syslog-logging

Wednesday, April 3, 2013

How To Sign Up Google Apps For Free


Signing Up Google App For Free

Here’s how to sign up Google Apps for free via Google App Engine.
  1. Sign up a Google account.
  2. After that, sign in appengine.google.com with your Google Account. Click on "Create Application" to proceed.
  3. Fill in the requested information with dummy data and click "Create Application" to proceed.
  4. In “Application Registered Successfully” page, click on “dashboard” text link.
  5. In dashboard, look for "Application Settings" on the left panel and click on it.
  6. Under "Domain Setup" section, click on the Add Domain… button.
  7. Now you will be able to see a link named Sign up for Google Apps Standard. Click on it to sign up Google Apps for free.
  8. You’ll be redirected to a sign up page where you’re allowed to get started with Google Apps for free.

Conclusion

With the steps above, you can sign up Google Apps for free, but only for 1 user. It is a pretty useful workaround to use Gmail or other services to fit your business with your custom email address.
http://www.hongkiat.com/blog/google-app-mail-for-free/

Xử lý lỗi IIS 6

To work around this issue, add the EnableAggressiveMemoryUsage registry entry to the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
Then, set the EnableAggressiveMemoryUsage registry entry to 1. 

To do this, follow these steps:
  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type EnableAggressiveMemoryUsage, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. On the File menu, click Exit to exit Registry Editor.
  8. Restart the HTTP service. To do this, follow these steps:
    1. Click Start, click Run, type cmd in the Open box, and then click OK.
    2. At the command prompt, type net stop http /y, and then press ENTER.
    3. At the command prompt, type iisreset /restart, and then press ENTER.


Relate Article:

http://blogs.msdn.com/b/amol/archive/2012/02/29/troubleshooting-quot-connections-refused-quot-errors-seen-httperr-logs.aspx

http://support.microsoft.com/kb/934878

http://zachbonham.blogspot.com/2007/11/httperr-connectionsrefused.html

http://blogs.msdn.com/b/david.wang/archive/2005/09/21/howto-diagnose-iis6-failing-to-accept-connections-due-to-connections-refused.aspx

http://support.microsoft.com/?id=177415



Friday, March 22, 2013

Script Backup MS SqlServer

-- Backup Database to .bak File
DECLARE @fileName VARCHAR(90);
DECLARE @db_name VARCHAR(20);
DECLARE @fileDate VARCHAR(20);

SET @fileName = 'D:\backups\'-- change to the relevant path 
SET @db_name = 'my_db';     -- change to the relevant database name 
SET @fileDate = CONVERT(VARCHAR(20), GETDATE(),112);
SET @fileName = @fileName + @db_name + '_' + RTRIM(@fileDate) + '.bak';

BACKUP DATABASE @db_name TO DISK = @fileName; 


sqlcmd -S SQLEXPRESS\AMPER -i "D:\DBA_scripts\backup_database.sql" 

Friday, March 15, 2013

3 thủ thuật câu "Like" facebook hướng dẫn đầy đủ và chi tiết

Facebook ‘Like’ là một công cụ mạnh mẽ mà bạn có thể sử dụng căn bản để tăng lượng người hâm mộ cho các thương hiệu, các công ty và các sản phẩm của bạn. Là một phần của chiến lược tiếp thị cho nhiều trang, nút Like Cũng được sử dụng như là một 'cổng' trước khi bất kỳ khách hàng có khả năng được xem thông tin chi tiết hoặc thực hiện tải về.




Thực tế, có ba hành động mà bạn có thể lập trình nút 'Like' để làm. Nó có thể là một cổng chuyển hướng, cho phép tải cũng như tiết lộ một trang web. Và chúng tôi sẽ cho bạn thấy làm thế nào trong hướng dẫn này.

# 1. Tạo một cổng Like
Bạn có thể sử dụng nút 'Like' như là một 'cổng' sẽ ẩn nội dung gốc của bạn từ công chúng. Độc giả muốn truy cập đến nội dung đầy đủ có sẵn trên trang Facebook phải "Like" trang đầu tiên. Về mặt kỹ thuật, đây là cách đơn giản nhất để đạt được "Likes"





Tạo một cổng Like với Woobox
Với Woobox, bạn đơn giản là có thể cài đặt các ứng dụng đến trang Facebook của bạn và bắt đầu tạo ra các tab với một cổng "Like", miễn phí.


  1. Để bắt đầu đến websites của Woobox và click vào nút đăng ký.
  2. Đăng ký tài khoản Facebook của bạn/





  1. Bạn sẽ được chuyển hướng đến trang mà bạn có thể bắt đầu cài đặt ứng dụng Woobox của bạn. Trên menu bên trái, bấm HTML Fangates.


  2. Nếu bạn đã có các tab được tạo ra với Woobox, nó sẽ được liệt kê ở đây. Để tạo ra một tab mới với một cổng Like, nhấp vào liên kết ở phía dưới Add a new HTML Fangate Tab


    .
  3. Bạn sẽ nhận được một thông báo nói rằng tab mới của bạn đã được tạo ra. Bây giờ bạn có thể chỉnh sửa tab của bạn ở đây hoặc trực tiếp từ trang Facebook của bạn.


  4. Để làm cho nó trực quan hơn cho bạn, hãy vào trang Facebook của bạn, nơi các tab đã được thêm vào, tìm các tab mới và click vào nó.


  5. Nhấp chuột vào nút ‘Authorize’ để tiến hành
  6. Sau khi ủy quyền, bạn sẽ được chuyển hướng đến trang cài đặt của nội dung Tab . Cuộn xuống phía dưới và bạn sẽ thấy phần chính nơi bạn có thể thiết lập nội dung trang của bạn dưới 'Source' và sau đó thiết lập ‘Non-Fan Page Source’.


    .

    ‘Non-Fan Page Source’ sẽ hoạt động như cổng Like.




    ‘Page Source’ là những gì fan hâm mộ của bạn sẽ thấy. Một khi họ "Like: trang của bạn, nội dung mà bạn đã thiết lập vào ‘Page Source’ sẽ xuất hiện.


  7. Khi bạn đã hoàn thành các hình thức với nội dung có liên quan, không quên để di chuyển xuống và bấm vào nútSave Settings .
  8. Sau khi lưu lại, Tab của bạn đã sẵn sàng với một cổng Like ! Đó là cách dễ dàng, và click vào nút View Tab để xem kết quả cuối cùng của bạn.


  9. Trong trang này, như là admin, bạn sẽ thấy ‘Admin Tab Options’ở trên cùng của nội dung của bạn. Nhấp vào View as Non-Fan để xem trước nội dung của non-Fans của bạn.







# 2. Tạo 'Like To Download ' 

‘Like to download’, cũng có chức năng giống như một 'cổng' trước khi 'download' có thể được thực hiện. Nếu bạn có một phần mềm miễn phí để cung cấp cho khách truy cập trang web của bạn, bạn có thể yêu cầu họ click vào nút "Like" trước khi họ có thể thực hiện bất kỳ tải về. Các link để tải về sẽ chỉ xuất hiện sau khi một người nhấp vào ‘Like’.







Để làm điều này,đến trang chính thức 
Facebook Like To Download, di chuyển xuống và điền vào các mẫu đơn giản với địa chỉ trang Facebook của bạn hoặc địa chỉ trang web mục tiêu, sau đó cung cấp các liên kết để tải về, thiết lập chiều rộng và màu sắc ưa thích và sau đó nhấn nút‘Create Your Like Gate Now’.





Sau đó bạn sẽ được xem trước cùng với mã làm việc. Sao chép mã nhúng và dán nó vào trang web hoặc blog của bạn.




Sau khi thêm mã vào trang web của bạn, khách truy cập của bạn sẽ thấy các hướng dẫn để Like trước khi tải về có thể được thực hiện, và một khi họ nhấp vào "Like", nút download sẽ xuất hiện.


.


# 3. Tạo 'Like Để chuyển hướng'' (Đến một trang khác nhau)

‘Like to redirect’ sẽ giúp bạn chuyển hướng truy cập của bạn đến một trang bên ngoài hay trang web sau khi nhấp vào nút ' Like ' trên trang Facebook Tap của bạn. Bây giờ, thay vì chuẩn bị một trang đích hoặc "page source", bạn thực sự có thể chuyển hướng người hâm mộ mới tới trang đích của riêng bạn sau khi họ bấm vào nút 'Like'.






Tạo 'Like To Redirect; với ​​Woobox
Để chuyển hướng với Woobox, theo phần đầu của bài viết này cho đến'Bước 8' dưới ‘Page Source‘, chọn ‘Redirect‘. Điền vào các trang bên ngoài với các URL mà bạn muốn chuyển hướng người hâm mộ của bạn.


.


Đừng quên để thiết lập Non-fan page source’, và lưu các thiết lập. Bây giờ, bất cứ khi nào một người nhấp chuột vào nút 'Like' từ trang tab này, họ sẽ được chuyển đi từ Facebook, đến các URL mà bạn chỉ định.




Lưu ý:
 Facebook thay đổi hầu hết các tính năng của nó mọi lúc, và trước đó bạn cũng có thể chuyển hướng người dùng thích trang của bạn trực tiếp từ trang web của bạn, nó có vẻ khó khăn để đạt được khi Facebook bổ pop-up bật lên tùy chọn 'chia sẻ' bất cứ khi nào bạn nhấp vào ‘Like’.

Kết luận
Với những thủ thuật, bạn sẽ có thể đạt được nhiều "Likes" trên Facebook và tăng lượng fan hâm mộ của bạn. Yêu cầu họ muốn trước khi tải về như là một dấu hiệu của sự đánh giá cao, hoặc chuyển hướng họ đến một trang cung cấp đặc biệt sau khi nhấp vào "Like".


http://forum.idichvuseo.com/social-marketing-tiep-thi-qua-mang-xa-hoi-20/3-thu-thuat-cau-like-facebook-huong-dan-day-du-va-chi-tiet-9996/#.UULYcBzIYbp