Tuesday, May 31, 2011

Call Remote Systems using Windows Powershell

Powershell for Remote Systems

Windows Powershell is a good component in the windows system. We can use powershell to call a remote system to execute a application without interfere the remote system. It is more secure and flexible.

How do connect a Remote PC using Powershell?
We need an IP, UserID and Password for the remote PC also install Powershell in local PC.

Start a Powershell with Administrator privileges option. Select a Powershell option in the windows and right click it. There is an option for Administrator privileges.

























Type the following commands in the powershell prompt.

get-service winrm
Enable-PSRemoting -force

You need to add a trusted hosts(Remote Hosts) in the powershell.

winrm s winrm/config/client '@{TrustedHosts="192.168.0.49"}'
Here 192.168.0.49 is an IP address for remote host.

$s=new-PSSession -Computername 192.168.0.49 -Credential Administrator

Then windows system Login wizard appeared, it shows the Login ID and Password text boxes. Provide the correct credentials in the wizard.
Type the command

Enter-PSSession $s



















Now it shows remote login command prompt, you can change the directory, start /stop services and applications.
Here I start remote application job using the following commands.
Add-PSSnapin VeeamPSSnapin
$job=get-VBRJob | where {_.Name -eq "Backup Job 4"}
Start-VBRJob -Job $job

It start the job and return the results.


















If you want to set the timeout for certain period.

Start-sleep 60

Here 60 is 60 seconds.

Sincerely,
Veera
Product Support Engineer,
Climb Inc,
http://www.climb.co.jp

Veeam Backup and Replication software for VMware ESX VM backup software. No.1 product in the virtual world.
http://www.veeam.com





EspresssReport

EspressReport provides an easy-to-use application programming interface (API) that enables users to create and customize reports within their own applications (and applets), be it server-side or client-side. It is written in 100% Pure Java, and thus can be run on any platform with none or minimal changes. Any and every part of the report is customizable using the API. You can use as little as a single line of code to generate a report.
Puts report development in the hands of information consumers, not developers, Can easily run reports without writing code, Includes many powerful reporting and charting features including parameterization, drill-down, custom functions, scripting, and over 30 different chart types.
Secure Reports
--------------
Information on the report can be changed by passing in a Security parameter,
when creating the report. The security levels are created in Designer and the
appropriate security level is passed, using the API.

Sub-Reports, Charts and Drill Down Reports
-------------------------------------------
We can save Reports, Sub-Reports, Charts and Drill Down Reports in a single template file, it is easy to deploy into the web application especially for Java. Java is platform independent so we can make a web service component and use any platform it may support web service.

Modifying Report Attributes
---------------------------
Adding New Cells, Adding Images/Charts, Adding Hyperlinks, Adding GridLines and Lines,
Modifying a Column to Show Bar Codes and cell scripts. The bar code symbolizes supported are Code 39, UPC A, EAN 13, Interleaved 2 of 5 and Codabar.

The patches are jar files and import into the lib folder in our application. It reduces the developers coding and improve the productions in the enterprise. very detailed user guide with different level of source codes to utilize in developers application.

Sincerely,
Veera
Product Support Engineer,
Climb Inc,
http://www.climb.co.jp

http://www.quadbase.com