Oret Oretan
Tuesday, March 4, 2014
Import ksoap into an Android project in Eclipse
ksoap is a SOAP API suitable for the J2ME, based on kXML. We can use ksoap in Android to access soap based web services easily. In this tutorial I'm not going to develop any web service. This will describe how to add ksoap in to your Android project when you are using Eclipse IDE.
Pre-requisites
1. Eclipse with ADT.
2. Android SDK.
3. ksoap (Click here to download ksoap2 jar file).
Adding ksoap is very easy. In the same way we can add any other library file.
Follow this steps to add ksoap2(or any other library file) in to existing Android project.
1. First download & copy ksoap2.jar in to documents or any other accessible directory.
2. Right click on your Android project.
3. Select properties.
4. In properties window select Java Build Path > Libraries > Add External JARs.
5. Select ksoap2.jar file. Then click Open & finally click OK.
Wednesday, January 8, 2014
How to Reset the Local Administrator Password on Multiple Computers Remotely
The Pspasswd tool, which is part of the Sysinternals PsTools download, can be used
to reset the local administrator password across one or more machines
locally or remotely.
The tool must be run while logged on with an account that has administrative rights on the target computer, for example a domain admin account. You can also specify those credentials via the command-line. Pspasswd uses Windows authentication methods to authenticate to remote systems and does not put passwords in clear text over the network.
For a single computer:
For multiple computers:
For all computers in the environment:
For multiple computers using a text file containing the computer names:
pspasswd \\@file.txt Local_administrator_account_name “New_Password”
The tool must be run while logged on with an account that has administrative rights on the target computer, for example a domain admin account. You can also specify those credentials via the command-line. Pspasswd uses Windows authentication methods to authenticate to remote systems and does not put passwords in clear text over the network.
For a single computer:
pspasswd \\computer_name Local_administrator_account_name “New_Password”
pspasswd \\computer1_name,computer2_name,computer3_name Local_administrator_account_name “New_Password”
For all computers in the environment:
pspasswd \\* Local_administrator_account_name “New_Password”
For multiple computers using a text file containing the computer names:
pspasswd \\@file.txt Local_administrator_account_name “New_Password”
Monday, September 30, 2013
HP Switch Procurve Configuration TFTP
Upload
===========================================================
ProCurve# copy tftp startup-config 10.28.227.105
d:\configs\sw4100
Download
===========================================================
ProCurve# copy startup-config tftp 10.28.227.105
d:\configs\sw4100
copy startup-config tftp 10.1.0.245 switch61conf
===========================================================
ProCurve# copy tftp startup-config 10.28.227.105
d:\configs\sw4100
Download
===========================================================
ProCurve# copy startup-config tftp 10.28.227.105
d:\configs\sw4100
copy startup-config tftp 10.1.0.245 switch61conf
Wednesday, September 25, 2013
WASP - Maximum number of registrations reached
You need to make a change on the server to resolve this.
On the computer with your InventoryControl database:
Click Start > Run. Type 'regedit' in the blank and click Ok. Click the + next to HKEY_LOCAL_MACHINE > SOFTWARE > Wasp Technologies > Wasp License Manager > Products for 32 bit Windows, or HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > Wasp Technologies > Wasp License Manager > Products for 64 bit Windows.
You'll have folders under Products named ID70 and ID79. Check both of these for entries on the right that say "Client1" or "Client2" etc. The data for these keys will be the serial number in folder ID70 or activation code in ID79, followed by the client's machine name. Delete the keys for the machines that are no longer in use.
If you are seeing multiple keys for the same client machine, check the license to see if there are spaces in the license, i.e. "0679 107..." If that is the case, delete those keys, then go to the client machine, run regedit, and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wasp Technologies\InventoryControl\Options, or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wasp Technologies\InventoryControl\Options for 64 bit Windows. Right click License and select Modify, then remove the spaces from the license number.
Friday, August 16, 2013
Axis Camera Update Firmware - FTP
- You must be at the command prompt and in the directory that contains the upgrade file. Example: C:\Axis\213\4_02>
- From the command prompt, open an FTP connection to the unit you wish to upgrade. (Do not use a "Windows" based FTP-program to do this, use only command line FTP programs!)
- Log in as root. The default password for the root user is "pass", unless this has been changed by the user. You must be logged in as the root user to upgrade the unit.
- Change to binary transfer mode by typing "bin" and press enter. Type "hash" and press enter. (This will allow you to see how the upgrade progresses)
- Type the command "put XXX.bin flash" where XXX.bin is the name of the upgrade file you downloaded (and maybe decompressed) from our site.
- Wait for the flash load to complete, which may take 1-10 minutes.
Wednesday, July 24, 2013
Adding a TCP/IP Route to the Windows Routing Table
Syntax:
options :
ADD
DELETE
route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx xxx.xxx.xxx.xxxroute ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12
Means:
route ADD “network” MASK “subnet mask” “gateway ip”
options :
ADD
DELETE
Friday, July 19, 2013
How to Configure VPN on Sonicwall TZ 200 and TZ 215
1. Login to sonicwall
2. Click on Network and select WAN (by default X1) configure
Click on WAN interface link to change the red dot to green. This enables the SSL VPN feature.
In the SSL Server VPN settings, you may want to change the default
port to 443 if the VPN users travel frequently and find themselves
behind highly restrictive firewalls that block outbound access by port.
Port 443 is usually not blocked by even the most restrictive firewalls.
If you decide to do this, keep in mind that you will need to change the Sonicwall management port to something other than the default port 443. Do this under the system > administration menu. You will also need to double check that port 443 is not being used for other services such as an Exchange/OWA HTTPS connection.
In SSL VPN > Portal Settings you can customize the message that appears to VPN users. Just edit the HTML text to create custom messages or to link custom logos.
Under Client Settings, follow these instructions:
Interface: Select your LAN Interface, by default X0
NetExtender IP: SSL VPN will not use the DHCP address pool from either the firewall or from a server on your network . For this reason, you must specify a range of usable IP addresses for the VPN client. Make sure the address pool is outside the scope of your DHCP server's pool.
DNS Server: Configure your internal DNS server IP address
Domain: Configure the internal domain
WINS: If you use WINS, enter the IP address of your WINS server.
Default Session Timeout: I like to increase it from the default to avoid constant disconnects.
Enable Web/SSH Management over VPN: Enabled if you want VPN access to manage the Sonicwall device.
Exit Client after Disconnect: Enabled will shut down the NetExtender client program.
Uninstall Client after Exit: If enabled will uninstall client software after disconnect (not recommended in most cases).
Lastly, in the Client Routes, click on Add Client Routes and select LAN Subnet to allow the VPN client access to the LAN subnet.
Now that you have completed the SSL VPN setup, the two remaining things to do are:
2. Click on Network and select WAN (by default X1) configure
3. Next, navigate to SSL VPN > server settings.
Click on WAN interface link to change the red dot to green. This enables the SSL VPN feature.
SSL VPN Server Settings :
If you decide to do this, keep in mind that you will need to change the Sonicwall management port to something other than the default port 443. Do this under the system > administration menu. You will also need to double check that port 443 is not being used for other services such as an Exchange/OWA HTTPS connection.
In SSL VPN > Portal Settings you can customize the message that appears to VPN users. Just edit the HTML text to create custom messages or to link custom logos.
Under Client Settings, follow these instructions:
NetExtender IP: SSL VPN will not use the DHCP address pool from either the firewall or from a server on your network . For this reason, you must specify a range of usable IP addresses for the VPN client. Make sure the address pool is outside the scope of your DHCP server's pool.
DNS Server: Configure your internal DNS server IP address
Domain: Configure the internal domain
WINS: If you use WINS, enter the IP address of your WINS server.
Default Session Timeout: I like to increase it from the default to avoid constant disconnects.
Enable Web/SSH Management over VPN: Enabled if you want VPN access to manage the Sonicwall device.
Exit Client after Disconnect: Enabled will shut down the NetExtender client program.
Uninstall Client after Exit: If enabled will uninstall client software after disconnect (not recommended in most cases).
Lastly, in the Client Routes, click on Add Client Routes and select LAN Subnet to allow the VPN client access to the LAN subnet.
- Add SSL VPN users
- Install NetExtender and connect to the VPN
Subscribe to:
Posts (Atom)