Windows 2008 Ping Command Switches

Posted on November 23rd, 2008 in Server 2008 by Gil Kreslavsky

-t Pings continuously until terminated by Ctrl+C. Press Ctrl+Break to view statistics. Perform extended testing or check for intermittent problems.
-a Resolves address to host name. Test name resolution and troubleshoot Hosts file.
-n count Specifies number of packets to send Perform extended testing.
-l size Specifies packet size in bytes; the default is 64, the maximum is 8,192 Check for packet fragmentation and response time.
-f Sets Don’t Fragment flag in packet Prevent routers from fragmenting packet.
-i ttl Sets packet time-to-live Increase timeout on slow connections.
-v tos Sets Type of Service field Specify type of action remote router should perform on the packet.
-r count Records packet route; specify from 1 to 9 Determine route of outgoing and incoming packets.
-s count Sets timestamp for number of hops specified by count Set current hop count for the packet.
-j HostList Routes packets using host list; specify maximum of 9 hosts Direct traffic through specific route; hosts can be separated by intermediate gateways (loose source route).
-k HostList Routes packets using host list Similar to -j but hosts can’t be separated by intermediate gateways (strict source route).
-w timeout Sets packet timeout in milliseconds Increase timeout value to overcome timeout on slow connections.
-R Traces a round-trip path Trace back to client; used on IPv6 only.
-S srcaddr Source address to use Specify source address to ping from; used on IPv6 only.
-4 Forces IPv4 Force ping to use IPv4; not necessary if specifying IPv4 address.
-6 Forces IPv6 Force ping to use IPv6. target_name Specifies remote host(s) to ping Specify destination to ping.

Outlook status shows disconnected.

Posted on June 25th, 2008 in Excahnge 2003, Microsoft, Other, Outlook 2002 XP, Outlook 2003 by Gil Kreslavsky

On errors:

Mapi session “/o=COMPANY/ou=Europe/cn=Recipients/cn=User1? exceeded the maximum of 32 objects of type “session”.

Task “Microsoft Exchange Server” reported error (0×80040115): “The
connection to the Microsoft Exchange Server is unavailable. Outlook must be
online or connected to complete this action.”

Task ‘Microsoft Exchange Server’ reported error (0×8004011d): ‘The server is
not available. Contact your administrator if this condition persists.’

Don’t waste your time on profile recreation … It doesn’t help!!!

Things to check .

1.      Ping to exchange server by short name and FQDN

a. If no ping check connectivity and name resolution.

b. Consider adding exchange name/ip to hosts file

2.      Go to file and check if “Work Offline” is not checked

a. If it is uncheck it.

3.      If you have check point client try to

a. Disable security policy

b. Stop Vpn client

c. Remove checkpoint secure remote “v” on local area connection properties ( do it only for testing – remember if you remove the “v” user will be not able to dial VPN.

4.      Run Outlook.exe with rpcdiag switch “outlook.exe /rpcdiag” see where is hanging

5.      On exchange system manger open user related mailbox store in logons section check if user exceeded maximum of 32 connections to the store.

a. If do : To solve this problem for this user, download the sysinternals tool called TCPView and run it on your Exchange server. You will see a whole bunch of connections. Work out the IP address of user, and then using TCP view terminate all sessions to that IP address.

b. Other option is to mount / unmount store – not recommended

6.      In order to Increase default 32 MAPI connections limit do the following things

a. Click Start, click Run, type regedit in the Open box, and then click OK.

Locate and then click the following registry sub key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem

If the Maximum Allowed Sessions Per User entry does not exist, do the following:

On the Edit menu, point to New, and then click DWORD Value.

Type Maximum Allowed Sessions Per User as the entry name, and then press ENTER.

Right-click the Maximum Allowed Sessions Per User entry, and then click Modify

Click decimal, type the value that you want to set in the Value data box, and then click OK.

Exit Registry Editor.

Click Start, click Run, type services.msc in the Open box, and then click OK.

Click the MSExchange Information Store service, and then click Restart Service.

Didn’t solve the problem ? Read Related Microsoft solutions

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

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

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

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

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

http://support.microsoft.com/default.aspx?scid=898060

Configure BlackBerry Enterprise Server to work with LDAP instead MAPI

Posted on June 18th, 2008 in BES Server, Black Berry by Gil Kreslavsky

Reasons to do do the update.

If you receive errors

  1. Unable to initialize the MAPI using profile BlackBerry Server Management! Please contact your BlackBerry administrator.
  2. Unable to initialize the RIMDatabase class
  3. Unable to save configuration settings or statistics

If you are moving mailboxes across information stores and you don’t want to reboot server or restart services.

And if you are using multiple domains

Procedure

The LDAPDomain , LDAPSearch , LDAPport , LDApssl , LDAPALPSearch registry entries are used to configure the Lightweight Directory Access Protocol (LDAP) for the BlackBerry Enterprise Server. These registry entries allow the BlackBerry Enterprise Server to use LDAP instead of the default Messaging Application Programming Interface (MAPI) for specific functions.


LDAPDomain

The LDAPDomain entry configures the BlackBerry Enterprise Server to use a specific domain when performing LDAP searches.

Note: In an environment with multiple domains, the LDAPDomain key is required.

  1. Open the Registry Editor by clicking Start > Run . Type regedit and click OK .
  2. Go to the following path in the registry:
    • For BlackBerry Enterprise Server software version 4.0 and laterHKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents
    • For BlackBerry Enterprise Server software versions 3.5 and 3.6HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Servers\
  3. Create a new String Value called LDAPDomain and change the entry in the Value data field to the Global Catalog and Port that the BlackBerry Enterprise Server will use. If the BlackBerry Enterprise Server must connect to multiple Global Catalogs for name resolution, specify all of them in this value with their fully qualified domain names (FQDNs) as follows:: : :

Example : dc01.domain.com:389
<!– /* Font Definitions */ @font-face {font-family:”Cambria Math”; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:”"; mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:11.0pt; font-family:”Calibri”,”sans-serif”; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;} span.paracode {mso-style-name:paracode; mso-style-unhide:no;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} –>

  1. Press ENTER .
  2. If you are not configuring other entries, close the Registry Editor.

LDAPSearch

The LDAPSearch entry is used for address resolution only.

  1. Go to the following path in the registry:
    • For BlackBerry Enterprise Server software version 4.0 and laterHKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents
    • For BlackBerry Enterprise Server software versions 3.5 and 3.6HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Servers\
  2. Create a new DWORD Value called LDAPSearch and change the entry in the Value data field to 1 .
  3. Select the Hexadecimal option and press ENTER .
  4. If you are not configuring other entries, close the Registry Editor.

LDAPport

The LDAPport entry configures the BlackBerry Enterprise Server to use a specific LDAP port for searches.

  1. Go to the following path in the registry:
    • For BlackBerry Enterprise Server software version 4.0 and laterHKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents
    • For BlackBerry Enterprise Server software versions 3.5 and 3.6HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Servers\
  2. Create a new DWORD Value called LDAPport and change the entry in the Value data field to the specific LDAP port that will be used.
  3. Press ENTER .
  4. If you are not configuring other entries, close the Registry Editor.

LDAPssl

The LDAPssl entry enables the use of LDAP over Secure Sockets Layer (SSL) for searches or lookups.

  1. Go to the following path in the registry:
    • For BlackBerry Enterprise Server software version 4.0 and laterGo to HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents
    • BlackBerry Enterprise Server software versions 3.5 and 3.6Go to HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Servers\
  2. Create a new DWORD Value called LDAPssl and change the entry in the Value data field to 1 .
  3. Select the Hexadecimal option and press ENTER .
  4. If you are not configuring other entries, close the Registry Editor.

LDAPALPSearch

The LDAPALPSearch entry is used for address lookups from the BlackBerry smartphone.

Note: This entry only applies to BlackBerry Enterprise Server software version 4.1.

  1. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents .
  2. Create a new DWORD Value called LDAPALPSearch and change the entry in the Value data field to 1 .
  3. Select the Hexadecimal option and press ENTER .
  4. Close the Registry Editor.

Post installation actions after installing VMware ESX server

Posted on December 25th, 2007 in ESX Server, VMware by Gil Kreslavsky

Check Name resolution

For the host lookups /etc/nsswitch.conf and /etc/host.conf should be configured to use DNS. Also DNS servers list as well as the primary domain prefix (‘search’ or ‘domain’ parameters in /etc/resolv.conf ) should be set. The ‘A’ record should be specified for the server’s hostname.
As you might know the host names are retrieved from the following files and they should be identical:

The localhost entry should be in the /etc/hosts .
Network configuration should be in the etc/sysconfig/network.

  • /etc/vmware/esx.conf
  • /etc/sysconfig/network
  • /etc/hosts

Enable SSH access to VMware ESX server

To allow the root user to login to a VMware ESX Server over the network using SSH, do the following:

  1. Go to the service console on the physical server & login
  2. vi /etc/ssh/sshd_config
  3. Change the line that says PermitRootLogin from “no” to “yes”
  4. Restart sshd with command /etc/init.d/sshd restart