Search This Blog

Showing posts with label ibm ioc. Show all posts
Showing posts with label ibm ioc. Show all posts

Tuesday, April 4, 2017

Port forward not working from my Dlink router to Vmware machine

Port forwarding using VBOX/VMWARE to GUEST

A few days back I tried to do a POC, where I had to use some of the IBM Watson and Blue mix services and my hosted application on IOT platform had to access one of the REST api hosted on my VM(Windows) which was running IBM IOC.

So after a long tiring journey I could some how make IBM IOC work and all the REST services were working fine but now I had to integrate it with outside world and then this problem started.

Problem 1 VM not acquiring IP address.

 

I tried all options – NAT/BRIDGED/HOST/ (Tried configuring adapters again)

Tried restarting VM again and again after changing configurations.

But nothing worked, the solution that worked was:

I had to go to Windows 10 my host and check disable all the Ethernet adapters for VMWARE.

I did one ipconfig again on guest and, my IP was there( 192.168.1.10) Bridged.

 

 

Problem no 2 My D link router was not able to port forward

This was actually a bug I just discovered, we all use google input box to find our IP address right ?

Till now I used to think that it is correct address, but today after scratching my head for so long thinking why my port forwarding is not working, I got to know Google ‘my ip’ thing was the problem.

I used to be an expert in port forwarding, using the same router and it wasn’t working, I tried telnet also and it wasn’t working either.

It could be the problem with my ISP or whatever but I actually faced this and had no idea what to do to fix this dlink router problem.

I used canyouseeme.org and I could find the real IP address of my router.

 

After these two problems were solved I could open my IBM intelligent operations control from public IP.

imageimage

 

This fix explained here is a major part of integration in any of the IOT or cloud based system like AWS or Blue mix, where your public cloud is trying to access your POC machine which is running on your windows,since you have local IP address of the virtual machine it becomes difficult for the  online services to access those.

Hope I was clear, I have done a lot of POCs on Maximo and IOT and will post them soon.

I had the same problem while I tried to integration IBM Watson for IOT with my Maximo installations running on VMWARE. In this article I have explained how I integrated IBM WATSON node red with my Maximo application.

Keep Reading !

 

Action Item for your : Subscribe

Monday, April 3, 2017

IBM IOC EMC–Intelligent operations center for emergency management



IBM IOC Setup

IBM IOC is an initiative by IBM for smart city initiative,I thought of doing a proof of concept on it.
Since it is a POC and VM with Developer edition for windows x86-64 will work fine and I downloaded it from IBM passport advantage. By the way you need to have either passport advantage or partner world access to download or trial IOC or any other IBM demos.
So get in touch with your IBM site administrator and get the access before you start the POC.
So I downloaded the iso file IBM_IOC_V5.1_DevEd_Win_ML and used the read me to install it on my VM, I used windows 8 if that helps Smile

image
Exploded file will look like this, make sure you use the java included in iso.
I followed this document install_IOC_51_dev_windows and didn’t face any problem. except the part where you have to login as db2admin and run the scripts to create IOCDB and IOCDATA
*By mistake I created with my user, make sure you run by db2admin.
* Make sure that log files for trace have no errors and all tables are created properly.

Your trace files should be generated like this.
image
Your folder structure should look like this.

image


Also I couldn’t execute the last Junit part for round rock, it was giving some crappy class errors.I am yet to fix and try that.

You can move on to next part of this article if your installation is done and all the files are created properly , else comment on it I will try to help you.
Please not ask.ear is optional and I got some SPSS@localhost errors while using so for a while I removed it from liberty and tried to run it only with following modules.
image
Now since we are using liberty server, while you start the liberty server for IOC it will run for a while and it will stop after a while, in a minute or two.
It made me confused for a long time and I was thinking IBM just randomly makes these products and there are lot of bugs in IOC.
After a while and lot of googling I came across a tech note from IBM explaining that this bug is with liberty and we need to start liberty in command line of eclipse.

Please see below, this server is started from the command line and is running from days without any issues.
image
It fixed that bug and I could concentrate on the rest of my POC.

What next in IOC series

This is the setup part, in the next section of this article I will explain you how to show various data sources inside the IBM IOC for Emergency management and how to display them on a map like arcGIS or other tile based maps.
And there will be a series of articles on this where I will display on how IOC can be integrated with WATSON and real world data can be integrated for a better emergency management.

Keep reading !