Syed Jahanzaib – Personal Blog to Share Knowledge !

February 29, 2012

IBM DOMINO: Howto increase Mail Quota for Already Registered Users


Howto increase user mail quota who is already registered:

Open Domino Admin
Goto FILES  /  MAIL
on your right , Right click on user and select QUOTA
As shown in the image below . . .

Now click on User and set its database limit as per requirements.

 

For more info,

http://www.ibm.com/developerworks/lotus/library/domino-mail-quotas/

Regard’s

Syed Jahanzaib

February 28, 2012

Howto View and Kill Tasks on Local/Remote PC


TASKLIST / TASKKILL  on  LOCAL PC

To view Tasks on Local PC.

tasklist

you will see running tasks and there PID
As shown in the image below
. . .

To kill any task on Local PC.

taskkill /F /IM notepad.exe

To kill multiple task on Local PC.

taskkill /F /IM notepad.exe /IM mspaint.exe

To kill task by PID on Local PC. First find out PID of your program by running
tasklist

then note down the PID, its the numeric number written just after application name, for example
notepad.exe                 5768 Console                 0      3,644 K
so 5768 is the PID number, to kill it by PID number, use the following

taskkill /F /PID 4556

TASKLIST / TASKKILL  on  REMOTE PC

To view Running Tasks on Remote PC.

tasklist /s remote_comp_name
(or ip

To kill any task on Local PC.

taskkill /F /S COMP_NAME /IM notepad.exe

To kill task by PID on Local PC. First find out PID of your program by running

tasklist /s remote_comp_name
(or ip
then note down the PID, its the numeric number written just after application name, for example
notepad.exe                 3624  Console                 0      3,644 K
so 3624 is the PID number, to kill it by PID number, use the following

taskkill /F /S COMP_NAME /PID 3624

Howto Create Scheduled Task on Remote Computer


To create Scheduled Task on Remote Windows PC.
You can use the following command.
[Note: You must belong to Administrators group to perform this action.]

schtasks /create /s computer_name /tn "Weekly Backup" /tr c:\Backup_folder\backup.bat /sc weekly  /D FRI /st 13:00:00 /sd 02/28/2012 /ru "domain\admin_user" /rp "admin_password"

The above command will create an scheduled task which will run on every Friday at 1:00pm and it will execute backup.bat  file.

You can copy backup.bat to remote pc using \\computer_name\c$ and paste it where ever you like.
backup.bat can contain any action like taking backup. For example

C:\windows\system32\xcopy.exe c:\Backup_folder\*.* d:\Autobackup /S /D /C /Y

The above command will copy all data from c:\Backup_folder to d:\Autobackup. Next time when this file will be executed it will run as incremental backup, means only files that have been changed or added will be copied to destination folder.
We used this method to copy user data file to remote File Server :)~

 

Regard’s

Syed Jahanzaib

February 27, 2012

Ubuntu in HYPER-VISOR / Network Card not detected [SOLVED]


If you have installed ubuntu in HyperV and network interface cards not detected. then you have to load the hyper visor modules in ubuntu.

To do this, edit the file /etc/initramfs-tools/modules by following command

nano /etc/initramfs-tools/modules

and add the following four lines:

hv_vmbus
 hv_storvsc
 hv_blkvsc
 hv_netvsc

Then, update the initramfs image:

sudo update-initramfs –u

Now reboot your ubuntu box. after rebooting, issue command

ifconfig

and you will see you network interface cards. Finally configure the interface cards either via GUI or CLI.
For example:

https://aacable.wordpress.com/2011/11/29/ubuntu-howto-configure-ip-address-via-cli-command/

🙂

VMWARE Workstation: Windows not detecting LAN card in Guest OS:

Add the line in vmx file of your vm guest.

ethernet0.virtualDev = “e1000”

Cheers

Syed Jahanzaib

February 23, 2012

Forefront TMG 2010 installation failed “SQL Installation Error” [Solved]


Today at my company I was installing TMG 2010 on Windows 2008 R2 64bit on MS Hyper-visor VM and encounter following errors during installation related to SQL 2008  ,
Example:
# Forefront TMG Installation terminates – SQL Express 2008 Could Not Be Installed
# Error installing TMG 2010: failed to install SQL Express 2008 (reporting instance)
After some googling, I managed to resolved this problem. This is what I did:

#    Go to Control Panel   >   Uninstall Programs
#    Uninstall Microsoft SQL Server 2008
#    Uninstall Microsoft SQL Server 2008 Native Client
#    Go to C:\Program Files
#    Delete folders ‘Microsoft Forefront Threat Management Gateway‘ and ‘Microsoft SQL Server’
#    Go to C:\Program Files (x86)
#    Delete folders ‘Microsoft SQL Server’
#    Reboot your windows
#    Right click on TMG Setup and select ‘Run as Administrator‘ , and follow on the screen setup.

This time installation went smooth.

After this I installed TMG SP1 and SUP1 from

You can download SP1 from : http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=f0fd5770-7360-4916-a5be-a88a0fd76c7c

and you can download SU1 from : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=695d0709-0d8b-45ee-afdb-727c4428ca4d

Afterwards, download TMG SP2 , and install it.

http://www.microsoft.com/download/en/details.aspx?id=27603

 

 

 

Forefront Remote Management Tool error
Refresh Failed. The parameter is incorrect.

If you have installed Forefront Remote Management tool to manage your tmg remotely via your workstation, and you received following error

Forefront Remote Management Tool error
Refresh Failed. The parameter is incorrect.

error

 

Make sure that you have the same level of Service packs and patches that are installed on TMG Server. Also make sure that your ip is added TMG Rmote Management Policy Section. (In Firewall System Policy)
E.g:

SU1,  SP1 , SP2  (Software Update 1, Service Pack 1, Service Pack 2)

I hope these steps will help you too 🙂

Regard’s

Syed Jahanzaib

February 22, 2012

Vmware ESXi 4.x Installation Guide [Short Reference]

Filed under: VMware Related — Tags: , , , — Syed Jahanzaib / Pinochio~:) @ 12:35 PM

I received many emails regarding howto install and configure Vmware ESXi Server .
Following is an short reference guide for beginners. This guide will illustrate you howto install ESXi from beginning till creating Virtual machines in ESXi using VSPHERE Client. Believe me its realy simple :)~

First, Some Overview to VMWARE ESXi and it’s features.

ESX and ESXi do not run on a general purpose OS like Windows or Linux.  They install and run directly on your server hardware, which is why they are called “bare-metal hypervisors
it does not run atop a third-party operating system,but instead includes its own kernel. Up through the current ESX version 5.0, a Linux kernel is started first, and is used to load a variety of specialized virtualization components, including VMware’s vmkernel component. This previously-booted Linux kernel then becomes the first running virtual machine and is called the service console.

Ok let’s START 🙂

First you have to register yourself at vmware site, the registration is free 🙂
Just goto

https://www.vmware.com/tryvmware/index.php

and on the right side ” Register to download your Free Product ” window, click on CREATE an ACCOUNT,
After registration process, login with your id and you will see all vmware products for downloads.
Select VMware vSphere Hypervisor 4.1 License (ISO Format)

https://www.vmware.com/tryvmware/p/activate.php?p=free-esxi&cmp=FP-ESXiFreeActivation&a=DOWNLOAD_FILE&baseurl=https://download2.vmware.com/software/vi/&filename=VMware-VMvisor-Installer-4.1.0.update1-348481.x86_64.iso


After downloading, burn it to CD (or if you trying it in vmware workstation , use it to boot)

Boot from ISO image OR CD, You will see VMware Boot screen.
As shown in image below

Select ENTER to select ESXi installer,

Now It will start detecting  your hardware After it, Welcome screen will appear.

Press ENTER to continue

END User license screen will appear,

Press F11 to continue

Now HDD / Storage Selection screen will appear,
select your hdd and press ENTER
As shown in the image below

.
Now Confirm Install screen will come.
Press F11 to confirm and the installation will begin.

It usually takes 3-5 minutes to install, After Installation complete screen appears, press ENTER to Reboot. By default you have 60 days time to enter License, after 60 days it will expire. (See the Tips ‘n Trick section of this article)

After reboot completes, VMWARE ESXi will start loading its kernel and other components
Now you will see following window.

To customize ESXi for id/password and network management,
Press F2 and you will be prompted to ENTER id password
default id is ‘ root
and password is empty, just ENTER ,
Now you will see something like

First configure your root password. (its necessary so that it can secured)

Now set IP address for ESXi so that you can manage it remotely using vmware Vshpere Client 😀
Select “Configure Management Network
Select “IP configuration

Here Select “Set Static IP Address
and enter your IP Address information.
As shown in the image below . . .

After entering info,
Press ESC to continue
Again Press ESC to continue, and it will ask you to Apply changes
Press Y to continue

ESXi basic setup is complete,
its time to test it
open your browser and open http://esxi-ip-address
and you should see something like below image

OK, ESXi is installed and ready to be explored , its time to hit the road,
I mean configure ESXi and then create virtual machines using Vsphere client to manage ESXi server.

From your Management pc (Winxp, Win7 or any version)
Download VSphere Client from

http://vsphereclient.vmware.com/vsphereclient/3/4/5/0/4/3/VMware-viclient-all-4.1.0-345043.exe

Installation of vmware vsphere client is very simple,
After installation is done, Open it, You will see something like below image

Enter your IP address of ESXi server, id and password (that you have configured in management section.). If you see any certificate warning , you can safely ignore it.

Now you will see your VMware ESXi Server.
As shown in the image below . . .

From here you can create virtual machines.
But first you have to add some STORAGE to store vm related material.

On the main screen , click on “Click here to create a database

and follow on the screen below.

Done, Now that you have created STORAGE, you can create new VM to get started.

TIP’s N TRICK SECTION

Howto create New Virtual machine in ESXi

Connect to ESXi using VSPHERE client, on the main screen, click on “NEW VIRTUAL MACHINE
As shown in the image below . . .


ESXi 4.x Keys

*** I used this one on 4.1 esxi
MU412-DH3E7-48908-R0AEK-13K40 (Unlimited VMs)

vSphere Enterprise Plus
5V0NA-A2K05-H85Q1-FT1EM-CG8P8 (Unlimited CPUs)
MU412-DH3E7-48908-R0AEK-13K40 (Unlimited VMs)

vCenter Server
1C0T2-AVK5H-089X1-ZA0X4-C6052

vCenter Server Foundation
0G41R-AZ247-088Q1-0K3ZP-9U204

vSphere Standard
4U6JK-DGJ17-M88V8-VHAEM-3P068 (Unlimited CPUs)
0G6T2-07L5P-H8071-DUCE6-0U82F (Unlimited VMs)

vSphere Advanced
JZ0TK-D1304-48DK1-2V8EK-3QKN8 (Unlimited CPUs)
0G4WR-FCK13-48E28-3JAQ6-C3AQ8 (Unlimited VMs)

vSphere Enterprise
NY018-AQK07-M89Z0-U32NP-C28H0 (Unlimited CPUs)
4U6RU-49KDN-48190-XC3Z6-CCH3D (Unlimited VMs)

ESXi 5.0 U1

JM294-02306-18448-01C0M-CXCNJ

vCenter 5 Standard Edition License Key

0G03V-2F1EL-ZZCY8-QT27P-93421   ***
MU6JT-6AJ87-KZRP9-A9CQ2-9CXJR

VMware vSpher 5.0 Enterprise Plus (Unlimited CPU)
JA46K-4M1EQ-YZ581-PU2N4-2C81V
1Y0ZK-AA25J-PZFJ0-GUAZM-23WJ3
NY0KH-FJL93-TZFG1-LA1G4-02T0E

VMware vSpher 5.0 Enterprise Plus (Unlimited VM)
0G03V-2F1EL-ZZCY8-QT27P-93421
1F0RM-2HL8N-4ZKP1-J185K-1AT2L
MV2JW-090E5-KZP19-D02Z4-A325U

VMware vSpher 5.0 Desktop Host (12 Core)
1Y2NX-0V21N-MZEX0-7K9GP-A2UP6
1F25H-AA2E6-FZNW1-7L25H-833KX
MY2AC-2C2E2-ZZEK0-JH0GP-03MQ3

VMware vSpher 5.0 Desktop Host (Unlimited VM)
JG2Y2-0A1EH-CZYE0-1J9XH-03L44
MG6T9-22JD3-RZ168-98AQM-8A6PX
HG2Y1-0Y1D0-ZZ5U8-DK2E6-8CH7A

VMware vSpher 5.0 for VCloud Service Provider Standard
JV6P4-F8J5M-MZEY1-600G6-9CGM6
MG6CU-D6H0J-QZQQ0-7VAQ4-CC8PQ
NU0PC-FD10K-HZ5P8-ULCN6-CARHN

VCenter Server 5.0 Foundation
NA0DP-60317-3ZYU0-LC8NP-9CGHU
NU69R-AM00P-6Z0L1-H0AQK-0C1KM
HU2KK-0DHDL-YZ7J9-X8072-8CE69

VCenter Server 5.0 Essentials (Unlimited Server)
5Z2K4-0V34H-HZ178-MC9ZH-ACN71
MC27U-49K1L-5ZTM8-YK0Z6-8A34Z
JA45Y-8431N-EZYM9-X105P-83EN5

VCenter Server 5.0 Essentials (Unlimited Vram)
0G0RV-61L5P-DZ5D0-L90ZH-1ADHY
4A02R-80J1M-CZFZ0-GH37M-33UN6
0Y0WG-D335K-CZ9M8-R9AG2-23Y1C

VMware View Premier
ZA5N2-DUZ03-0845Z-EDP5Z-M60ZD
VV302-25W83-080XP-NEWZX-MZKD4
CU5EU-FAX55-M88RY-J5Y5C-MQUZ0

VMware View Enterprise
CV3NU-AWX4Q-0845Q-CXNN9-M3KVD
FA35H-A4G42-M8E0Z-W7YZG-QLHED
UV3J0-AHY9N-484LY-QXXEE-WKA96

Difference between “I COPIED”  &  “I MOVED

I copied it

If you select “I copied it” the following setting in the target Virtual Machine .vmx configuration file are changed.

uuid.location
uuid.bios
ethernet0.generatedAddress

Which makes the copied Virtual Machine appear uniquely different the the original.  Useful if you are running multiple copies of same VM on the same network.

I moved it

If you’re running a single copy of the target Virtual Machine at a time then you may want to chose “I moved it” to avoid possible activation issues with come OSes and or Software that registers the Ethernet MAC as part of its checksum.

Regard’s

SYED JAHANZAIB

February 21, 2012

IBM XSERIES SystemX3650 DASD Light Error !

Filed under: IBM Related — Tags: , — Syed Jahanzaib / Pinochio~:) @ 1:21 PM

Today, one of our IBM system3650X series server encountered an DASD error.

An orange Exclamation light turned ON and the server was not booting properly. This server have 2 HDD running in RAID mode. both HDD green lights were flashing properly which was showing that the HDD are in good condition. So I applied the Power Recycling solution and it worked like a charm 🙂 .

Howto do Power Recycling / Cold Restart

# Shutdown the Server
# Remove Power cables (both) from power supply.
# Wait for 10 Minutes,
# Now plugin the power cables and turn ON the servers and you won’t see orange light 🙂

More information can be found here
http://www.google.com.pk/search?q=ibm+system+x3650+dasd+error&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

Regard’s

Syed Jahanzaib

February 14, 2012

DMASOFTLAB Radius Manager V4 Released :D

Filed under: Linux Related, Mikrotik Related, Radius Manager — Tags: — Syed Jahanzaib / Pinochio~:) @ 1:42 PM

At last, RM v4 have been released with good features, specially SMS for welcome/Expiry/warning messages. 😀

Complete Features added in v4 are as follows.

ACP:
http://radmandemo.dmasoftlab.com/admin.php

UCP:
http://radmandemo.dmasoftlab.com

More informations:
http://www.dmasoftlab.com/cont/radman

 

*** v 4.0.0 *** 2012-02-13 ***
NEW FEATURES:

-support for DHCP based cable modem accounts (DOCSIS)
-RADIUS IP pool support
-the default mobile number is displayed upon verifying a self registered account
-ACP list users more sortable columns
-contract id search option
-Hotspot MAC and CM users can purchase credits in UCP
-already used email address or SMS number is not allowed in self registration
-already used SMS number cannot be used for account verification
-notify admin in email when a new user is registered
-self registration welcome email with username / password
-self registration welcome SMS with username / password
-notify admin in email when a new IAS is registered
-IAS welcome email (username / psw)
-IAS welcome SMS (username / psw)
send email upon adding credits (ACP, UCP)
-password recovery through SMS, email
-automatic MAC binding option for regular, card and IAS accounts
-write off option for managers
PIN prefix field in card generator
-carry over remaining credits to next month (auto renew option)
-VAT id as optional self registration mandatory field
-remember last selected account type in new user form
-remember last selection in search invoices form
-account type selector in find users form
-option for disabling the grouping of decimals on invoice form
-filter postpaid payment status in list invoices form
-search for active / expired users, cards and IAS accounts
-search for used / unused accounts
-find users form remembers last selected checkbox status
-list and search refill cards
-the default sim-use value can be specified in system_cfg.php (useful for pfSense)
-definable additional traffic unit
-search invoice by account owner
-card print pdf series number
-online RADIUS users list show groups
-wireless signal monitoring
-enhanced online RADIUS users view
-geolocation field in edit user form
-CTS access permission flag
-enhanced traffic summary view
-new service flag: ignore static IP
-default sim-use is definable for self registered users

 

BUGFIXES:
-Hotspot MAC user uses blank password for NAS authentication and regular password for UCP
-disconnect daily quota enabled users every day at midnight
-authorize.net IAS purchase problem fixed
-PayPal Express Checkout total price decimal problem fixed
-PayPal Express Checkout security hole fixed
-special characters are allowed in NAS secret
-data rate for pfSense sent in bps instead of kpbs
-logout next service user when refilled in UCP
-automatically disconnect renewed postpaid users to return to the original service if next service is used
-scheduled service change logs out the user (POD)
-enhanched counters for available online time (no more ~800 hours limit)
-the fallback language (English) is used only if selected language is unavailable
-search invoices bug fixed
-traffic summary own users bug fixed
-special pricing periods 2 GB limit bug fixed
-IP address sort order problem fixed
-admin can list hidden services

 

Regard’s
SYED JAHANZAIB

 

February 12, 2012

Mikrotik PCC with HOTSPOT

Filed under: Mikrotik Related — Tags: , , , — Syed Jahanzaib / Pinochio~:) @ 12:45 PM

I received many emails regarding hotspot not working with PCC. Its very simple to run hotspot and PCC together on same Mikrotik Server.

(Personally I don’t like hotspot due to various security reasons, but still its useful in many environment)

First configure your mikrotik with PCC and HOTSPOT. Then Just add hotspot=auth in every pcc rules and it will work like a charm.
For example . . .

/ip fi man

add action=mark-connection chain=prerouting disabled=no dst-address-type=!local hotspot=auth in-interface=LAN new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0

add action=mark-connection chain=prerouting disabled=no dst-address-type=!local hotspot=auth in-interface=LAN new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1

Cheer’s

Syed Jahanzaib

February 11, 2012

Resignation Letter Sample

Filed under: General IT Related — Tags: , , — Syed Jahanzaib / Pinochio~:) @ 12:58 PM

Following is an resignation letter sample. Just in case any one need it :p

To
The Director,
A.B.C (Pvt) Ltd.

Subject:          RESIGNATION LETTER

Respected Sir,

I am currently working in A.B.C (Pvt) Ltd. as a “Network Engineer” in IT Department, currently appointed at XYZ Branch Office . With reference to the above noted subject, I would like to resign from your company for some of my personnel reasons. Therefore it is humbly requested that kindly accept my resignation and relieve me from my duties.

My resignation is effective from today. I am providing A.B.C with four weeks notice. My last working day will be 28th February, 2012

Thank you for the opportunities for professional and personal development that you have provided me during the last 3 years. I have enjoyed working for the company and appreciate the support provided to me during my time with the company.

If I can be of any help during this transition, with training or hiring please let me know as I would be happy to make myself available.

Regard’s
Yours Sincerely,


SYED JAHANZAIB

Network Engineer
XYZ IT DEPT.
27th January, 2012

%d bloggers like this: