Thursday, August 20, 2009

Change iSCSI Client Registry Setting

An iSCSI client on a network experiencing temporary performance issues may lose connection to its virtual resources, causing any applications relying on those resources to crash.

The iSCSI timeout registry settings on the iSCSI client can be changed to be more resistant to temporary network issues.

By default, the Microsoft initiator is able to sustain a network disconnect for up to 60 seconds. Should the network issues last for more than a minute, this can cause issues to the iSCSI client.

To prevent possible influence caused by temporary network outages, the Microsoft iSCSI Registry keys can be altered to extend the disk timeout. Keep in mind that you will need to reboot the machine after modifying the registry key, so it is best to make this registry change during a scheduled maintenance window.

Run regedit and locate the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E97B-xxxxxxxxxxxxxxxx}

This is SCSI and RAID controller class and details can be viewed on the right-hand panel. The key tree can be expanded to reveal additional folders such as 0000, 0001, etc., which are separate adapter instances. Find the one with DriverDesc of Microsoft iSCSI Initiator and navigate to the Parameters folder. On the right hand pane will be several DWORD values such as DelayBetweenReconnect and EnableNOPOut

Change the DWORD value named MaxRequestHoldTime from its default value of 60 to 300 (or from 3c to 12c if the value is in hexadecimal). This change will allow the iSCSI client and its hosted applications to withstand a network outage of up to five minutes.

Determine Replication Throughput Parameter

Two parameters most often used to adjust replication throughput:

Window Size
This is the transport window for the IPStor SAN/IP protocol. The window size is in packets (1500 bytes). The default value is 320, for a window of about 480KB. FalconStor suggests a setting of 1024 for a window of about 1.5 MB. The total window size of data will not actually be sent unless it is generated by outstanding replication commands. Therefore, it doesn't hurt to make this a little larger than necessary.

The following formula can be used to figure out the best possible parameters for window size:

Window-size=Line speed (T1, T3, and OC3)*Latency (millisecond)*1.2(Overhead latency)*2(roundtrip)/1.5

Based on the formula above and a series of tests, we recommend using the default setting for T1 line. It is more than enough to handle even 100ms latency.

For a T3 line, the default setting is also recommended for most cases. If the latency is greater than 50ms, the recommended window-size=1024.

For OC3 line, if the latency is greater than 50ms, the recommended setting will be window-size=4096. However if the latency is greater than 10ms and less than 50ms, the use of such setting may not achieve the best performance. The recommended setting in this case is window-size=640.

Replication-cmdsout
This parameter controls how many outstanding commands are sent by the source IPStor server during replication. The default value is 4. Each command is 64KB in size, so the default is 256 KB of outstanding data. Make sure to specify an appropriate value that keeps the channel full of data.

The following formula can be used to figure out the best possible parameters for replication-cmdsout:

Cmdsout= Line speed (T1, T3, and OC3)*Latency (millisecond)*1.2(Overhead latency)*2(roundtrip)/64

Based on the formula above and a series of tests, we recommend using the default setting for T1 line. It is more than enough to handle even 100ms latency.

For a T3 line, the default setting is also recommended for most cases. If the latency is greater than 50ms, the recommended cmdsout=24.

For OC3 line, if the latency is greater than 50ms, the recommended setting will be cmdsout=84. However if the latency is greater than 10ms and less than 50ms, the use of such setting may not achieve the best performance. The recommended setting in this case is cmdsout=12.

Check the actual window size and replication activity: cat /proc/krudp

The line speed used in the above formulas is MB/s not Mb/s. The latency is one way only. If using the round trip latency, drop the *2 in the formula.

The window size is changed at the server level in the IPStor Console. Right click on the IPStor server name and open the properties window. Under the performance tab, set the window size.

To change the cmdsout, pull down the help menu on the top line bar of the IPStor Console and click ABOUT. Hit the TAB key until the OK button is highlighted. Type sysvar , this will open the system variable window where the replication cmdsout parameter can be adjusted.

Tuesday, August 18, 2009

Reset Websense Password

- Stop Network Agent, filtering service and user service.
- Stop Policy server service
- Edit Config.xml (file inside Websense>bin directory)
- Search for K2097153
- You will find an entry that looks like this: ….“K2097153”>8D8w3jDjksieddmkks
- Please delete the data portion. Should look like this: ….K2097153”>
- Safe file
- Start Policy server service
- Start all other Websense services.

Once this is done, just login to WS manager again and you will be prompted to enter new password.
Do not change anything else in the config.xml file.

SmokePing Installation (Ubuntu 9.04)

Install SmokePing
- Open Terminal
- Type sudo su to ensure you have Root priviledges
- Install Smokeping along with some other recommended packages

aptitude install smokeping curl libauthen-radius-perl libnet-ldap-perl libnet-dns-perl libio-socket-ssl-perl libnet-telnet-perl libsocket6-perl libio-socket-inet6-perl apache2

Configure SmokePing
- Smokeping configuration is in the file /etc/smokeping/config
- Modify some files from /etc/smokeping/config.d directory

vi /etc/smokeping/config.d/General
*** General ***

@include /etc/smokeping/config.d/pathnames

# Please edit this to suit your installation
owner = Falko Timme
contact =" me@example.com"
cgiurl =" http://www.example.com/cgi-bin/smokeping.cgi"
mailhost =" smtp.example.com"
syslogfacility =" local0"
concurrentprobes =" no

Make sure that mailhost contains the primary MX for your email domain

vi /etc/smokeping/config.d/Alerts
*** Alerts ***
to = me@example.com
from = smokealert@example.com
[...]

vi /etc/smokeping/config.d/Targets
[...]
remark = Welcome to the SmokePing website of 'Example Company'
[...]

vi /etc/smokeping/config.d/Targets and edit the configuration accordingly
[...]
+ Local

menu = Local
title = Local Network

++ LocalMachine

menu = Local Machine
title = This host
host = localhost

Save your changes and restart Smokeping
/etc/init.d/smokeping restart

Open a web browser and go to http://www.example.com/cgi-bin/smokeping.cgi

Monday, August 17, 2009

Essential Task in Deployment of BIG-IP Link Controller

Create Default Gateway Pool
- Expand Local Traffic and then click Pools
- Click the Create button
- Name box, type the name of the pool (example : site_gateway_pool)
- In New Members section, add IP addresses associated with each router (example: 10.251.25.1 & 10.251.40.1)
- Configure additional options for the pool as needed.
- Click Finished

Implement Default Gateway Pool
- Expand Network and then click Routes
- Click the Add button
- From the Type list, select Default Gateway
- From the Resource section, select Use Pool
- Select the pool name that represents the group of links you want to use as the default gateway pool (site_gateway_pool)
- Click Finished

Configure Links
- Expand Link Controller and click Links
- Click the Create button
- In the Name box, type a name for the link (example: WAN_Link_1)
- In the Router Address box, type the IP address to associate with the link (Example: 10.251.25.1 - IP address assigned to the router that belongs to the LAN interface)
- In the Uplink Address box, type the IP address to associate with the ISP to which outgoing traffic is sent (Example: 202.12.23.60 - Link Controller uses this address to obtain SNMP statistics from the routers WAN interface)
- In the Service Provider box, type the name of the ISP (Example: GITN)
- Select the health monitors
- Click Finished

Configure Listeners (Node Mode or Bridge Mode)
- Expand Link Controller,and then click Listeners
- Click Create
- In the Destination box, type the IP address on which the LC will listen for network traffic (Example : Wide-IP's IP, DNS IP, Asterix)
- From the VLAN Traffic list, select a VLAN setting appropriate for this listener
- Click Finished

Adding Pools
- Expand Local Traffic and then click Pools
- Click Create
- From the Configuration list, select Advanced
- For the Name setting, type a name for the pool
- Click Finished

Adding Virtual Server
- Expand Local Traffic and then click Virtual Servers
- Click Create
- In the Name box, type the name of the virtual server
- Define the destination of the virtual server (Host/Network)
- In the Address box, type the IP address of the virtual server
- In the Service Port option, type the port number that the virtual server uses
- Click Finished

Configure Wide IPs (FQDN mapping to a set of VS that host the domain content)
- Expand Link Controller
- Click Inbound Wide IPs and then Create button
- In the Name box, type a name that identifies the wide IP
- In the TTL box, type the time-to-live value you want to associate with this wide IP
- Select the appropriate load balancing modes (Preferred, Alternate, and Fallback)
- In the Fallback IP box, type the IP address that the LC uses when it cannot load balance inbound traffic
- For the Virtual Server setting, add the virtual servers that belong to this wide IP
- Click Finished

Configure Address Translation
- Expand Local Traffic, and then click SNATs
- Click Create
- In the Name box, type a unique name for the SNAT
- In the Translation box, select IP Address
- Type an IP address in the adjacent box
- Click Finished

Wednesday, August 12, 2009

Integrate Google Analytics With Juniper IVE Custom Pages

- Go to Juniper Central Manager Page (SA6000)
- Select Authentication > Signing In > Sign-In Pages
- Click Upload Custom Pages
- Click on Sample template link and download it
- Unzip it
- Edit LoginPage.thtml
- Insert Google Analytic Tracking Code (ga.js or urchin.js) before the body tag
- Zip all the files back
- Enter the page name and click Browse button to upload your new zip files
- Go to Authentication > Signing In > Sign-in Policies
- Select your newly created custom page at Sign-In Page drop down menu
- Click Save Changes
- Test your new page functionality using https://www.abc.net/test
- If everything working fine, you may use the login page for the root URL (https://www.abc.net) by changing Sign-In Page at '*/' URL

Monday, August 03, 2009

SQL Server 2005 : Reset SA Password

- Open the SQL Server Management Studio.
- Open a New Query.
- Copy, paste, and execute the following:

GO
ALTER LOGIN [sa] WITH DEFAULT_DATABASE=[master]
GO
USE [master]
GO
ALTER LOGIN [sa] WITH PASSWORD=N’NewPassword’ MUST_CHANGE
GO

(where NewPassword is the password you wish to use for the sa account)