2016年7月29日 星期五

vmware 5.5 consolidate snapshot or delete snapshot

Consolidation operation deletes all your "redundant" redo logs. But delete all operation deletes your snapshots and consolidate to a single disk.
Consolidation wont cause any change in the number of snapshots. But delete / delete all will actually delete the snapshots and the changes present in that snapshot will be written back to its parent disk. And also always delete snapshot operation is initiated with a consolidation operation.

https://communities.vmware.com/thread/460542?start=0&tstart=0



The New Consolidate Snapshots VMware Feature

2016年7月27日 星期三

Transact-SQL Reference documentation

overview page for this reference
https://msdn.microsoft.com/en-us/library/bb510741.aspx
ELEMENT EXPRESSION ROLE
SELECT (SELECT LIST) Define which coloum to return
Data 5 Data 6

SELECT
FROM
WHERE

  • where this condition is true. So we have a predicate statement as it's called

    • that filters the rows that come back. Now a lot
    GROUP BY
    • So I might have a GROUP BY clause where I'm grouping the results by
    • order date or order month. 
    • Not just the individual sales orders, but perhaps the totals for each month

    HAVING

    • And then I might want to filter those groups. So I might want to said HAVING
    • a count of orders of over a hundred. So only bring back the months where we sold
    • more than a hundred items.
    • So there's an additional HAVING clause. And then the final cause that you usually see in a
    (I'm only interest if somebody's got an order, so I want order ID greater than one,
    so I know there's more than one order on that date so it will
    clear out all the empty dates, like Saturdays and Sundays or whatever, and handle
    the dates where there is only one in fact.
    Oh, greater than one! So if there is only one, it wouldn't display that.)

    ORDER BY

    •  return the results in any particular order.



    SELECT CONVERT(nvarchar(30), OrderDate, 102) AS OrderDate
    FROM SalesLT.SalesOrderHeader;




      
          Syntax for CONVERT:  
    CONVERT ( data_type [ ( length ) ] , expression [ , style ] )  
    
    
    ,102 = Date and Time Styles

    2016年7月25日 星期一

    How to configure HTTP access to a router using local authentication

    How to configure HTTP access to a router using local authentication



    Resolution

    This is a sample configuration of local authentication with Cisco IOS  Software Releases 11.3.3.T or later:
    aaa new-model
    !---Enable Authentication, Authorization and Accounting (AAA).
    aaa authentication login default local
    !---By default, use local authentication.
    aaa authorization exec default local
    username one privilege 15 password one
    !--- User one is given privilege Level 15 (L15) and can execute all L15 commands.
    username three password three
    username four privilege 7 password four
    !--- User four is given privilege Level 7 (L7) and can execute all commands for L7.
    ip http server
    !--- Enable HTTP connectivity to the router.
    ip http authentication local
    !---Specify local authentication for HTTP connections.
    privilege exec L7 clear line
    !---Change the clear line command to a privilege L7 command (so user four can execute it).
    The users configured experience this behavior when they attempt to connect:
    User one:
    • The user passes Web authorization if the URL is entered as http://#.#.#.#.
    • After the user Telnets to the router, the user can perform all commands after login authentication.
    • After login, the user is in enable mode (the show privilege command is L15).
    • If command authorization is added to the router, the user still succeeds in all commands.
    User three:
    • User fails Web authorization for not having a privilege level.
    • If there is a Telnet to the router, the user can perform all commands after login authentication.
    • User is in non-enable mode after login (The show privilege command is Level 1 [L1]).
    • If command authorization is added to the router, the user still succeeds in all commands.
    User four:
    • L1 commands plus the L7 clear line command appears.
    • After a Telnet to the router, the user can perform all commands after login authentication.
    • User is at privilege L7 after login (The show privilege command is L7).
    • If command authorization is added to the router, the user still succeeds in all commands.
    To address HTTP authentication problems, issue one of these commands:
    • debug aaa authentication: Displays information on AAA and TACACS+ authentication.
    • debug aaa authorization: Displays information on AAA and TACACS+ authorization.
    • debug radius: Displays detailed debugging information associated with RADIUS.
    • debug tacacs: Displays information associated with TACACS.
    • debug ip http authentication: Displays the authentication method the router attempted and authentication-specific status messages.

    Cisco IOS Software Version

    • 12.0
    • 12.1
    • 12.2
    • 12.3

    Autonomous: Configure A Cisco AP To Provide DHCP Services

    http://www.my80211.com/cisco-auton-cli-commands/2010/3/8/autonomous-configure-a-cisco-ap-to-provide-dhcp-services.html

    Autonomous: Configure A Cisco AP To Provide DHCP Services



    1. Lets start with the client exclusion. We will exclude the following ranges, so that the AP doesn't assign these specific addresses out: 
    192.168.1.1 - 192.168.1.10
    192.168.1.200 - 192.168.1.254 
    ap#config t
    ap(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
    ap(config)#ip dhcp excluded-address 192.168.1.200 192.168.1.254

    2. Next, we will name the DHCP Scope (pool) and set the network:
    ap(config)#ip dhcp pool WIRELESS
    ap(dhcp-config)#network 192.168.1.0
    3. Next, we will set the LEASE time for the addresses (3 days,4 hours, 20 min) , setup the gateway and DNS:
    ap(dhcp-config)#lease 3 4 20
    ap(dhcp-config)#default-router 192.168.1.1
    ap(dhcp-config)#dns-server 192.168.1.250
    4. Next, we connect a wired laptop to the switch on the VLAN and see the results:
    (Note this will also hand out Wireless DHCP as well)
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix  . :
            Description . . . . . . . . . . . : Intel(R) 82567LM Gigabit Network Connection
            Physical Address. . . . . . . . . : 00-2A-A1-13-C2-33
            Dhcp Enabled. . . . . . . . . . . : Yes
            Autoconfiguration Enabled . : Yes
            IP Address. . . . . . . . . . . . . . : 192.168.1.11  <-- This is the first IP in our Scope
            Subnet Mask . . . . . . . . . . . : 255.255.255.0 <-- Our class C 
            Default Gateway . . . . . . . . . : 192.168.1.1   <-- This is the GW we set up
            DHCP Server . . . . . . . . . . . : 192.168.1.2      <-- This is the IP of our AP
            DNS Servers . . . . . . . . . . . : 192.168.1.250  <-- This is the DNS we set up 
            Lease Obtained. . . . . . . . . . : Saturday, March 06, 2010 5:48:12 PM <--- This is our lease time we set up
            Lease Expires . . . . . . . . . . : Tuesday, March 09, 2010 10:08:12 PM

    2016年7月12日 星期二

    Use a TFTP Server to Backup and Restore a Configuration cisco

    CE_2#copy running-config tftp:
    Address or name of remote host []? 64.104.207.171
    Destination filename [ce_2-confg]? backup_cfg_for_my_router
    !!
    1030 bytes copied in 2.489 secs (395 bytes/sec)
    CE_2#

    Windows 7: Internet Explorer Zoom - Enable or Disable

    Through the Local Group Policy Editor
    1. Open the all usersspecific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.
    2. In the left pane, click/tap on to expand User ConfigurationAdministrative TemplatesWindows Components, andInternet Explorer. (see screenshot below)

    2016年7月1日 星期五

    Disable password complexity rule in Active Directory Windows 2008

    http://serverfault.com/questions/19611/disable-password-complexity-rule-in-active-directory

    Open Group Policy Management Console (Start / Run / GPMC.MSC), open the Domain, and right-click and Edit the "Default Domain Policy". Then dig into the "Computer Configuration", "Windows Settings", "Security Settings", "Account Policies", and modify the password complexity requirements setting.