Friday, 31 July 2015

VMware Shared Folders - Now why did I not know that ?

I'm digging into VMware Shared Folders using Fusion on one of my Macs.

Specifically, I was trying to work out how to mount a Shared Folder called Repository as /Repository within the Red Hat Enterprise Linux guest, rather than having it appear as /mnt/hgfs/Repository.

Whilst there's nothing wrong with the default, it does tend to get in the way of scripts, and appears inconsistent when compared with a non-Fusion environment.

This article: -


on VMware.com led me here: -

/sbin/mount.vmhgfs -h

Usage: mount.vmhgfs <sharename> <dir> [-o <options>]
Mount the HGFS share, specified by name, to a local directory.
Share name must be in host:dir format.

Options:
  ro                    mount read-only
  rw                    mount read-write
  nosuid                ignore suid/sgid bits
  suid                  allow suid/sgid bits (default)
  uid=<arg>             mount owner (by uid or username)
  gid=<arg>             mount group (by gid or groupname)
  fmask=<arg>           file umask (in octal)
  dmask=<arg>           directory umask (in octal)
  nodev                 prevent device node access
  dev                   allow device node access (default)
  noexec                prevent program execution
  exec                  allow program execution (default)
  sync                  file writes are synchronous
  async                 file writes are asynchronous (default)
  mand                  allow mandatory locks
  nomand                prevent mandatory locks (default)
  noatime               do not update access times
  atime                 update access times (default)
  nodiratime            do not update directory access times
  diratime              update access directory times (default)
  ttl=<arg>             time before file attributes must be
                        revalidated (in seconds). Improves
                        performance but decreases coherency.
                        Defaults to 1 if not set.
  bind                  perform bind mount
  bind                  move an existig mount point
  serverino             Use server generated inode numbers.
  noserverino           Use client generated inode numbers.
  remount               remount already mounted filesystem

This command is intended to be run from within /bin/mount by
passing the option '-t vmhgfs'. For example:
  mount -t vmhgfs .host:/ /mnt/hgfs/
  mount -t vmhgfs .host:/foo /mnt/foo
  mount -t vmhgfs .host:/foo/bar /var/lib/bar


This allowed me to do THIS: -

mkdir /Repository
mount -t vmhgfs .host:/Repository /Repository/
ls -al /Repository/

total 17
drwxr-xr-x   1 db2inst1 games  408 Jul 31 10:57 .
dr-xr-xr-x. 26 root     root  4096 Jul 31 19:19 ..
drwxr-xr-x   1 db2inst1 games  374 May 31  2014 BAM
drwxr-xr-x   1 db2inst1 games  306 May 30  2014 BPM
drwxr-xr-x   1 db2inst1 games  102 Jul 31 07:32 DB2
drwxr-xr-x   1 db2inst1 games  136 Jul 31 10:57 Fixes
drwxr-xr-x   1 db2inst1 games  102 Jul 31 07:33 IIB
drwxr-xr-x   1 db2inst1 games 1054 Jul 31 11:05 IIM
drwxr-xr-x   1 db2inst1 games  136 Jul 31 07:46 ODM
drwxr-xr-x   1 db2inst1 games  340 Jul 31 13:11 ResponseFiles
drwxr-xr-x   1 db2inst1 games  510 Jul 31 07:37 WAS
drwxr-xr-x   1 db2inst1 games 1360 Jul 31 07:48 WMQ

which is precisely what I want.

For the record, this is what I've got configured in VMware Fusion Professional 7.1.2: -


and this is what I've got on the host Mac: -

total 0
drwxr-xr-x  12 hayd  staff   408 31 Jul 10:57 .
drwxr-xr-x  20 hayd  staff   680 31 Jul 07:34 ..
drwxr-xr-x@ 11 hayd  staff   374 31 May  2014 BAM
drwxr-xr-x@  9 hayd  staff   306 30 May  2014 BPM
drwxr-xr-x   3 hayd  staff   102 31 Jul 07:32 DB2
drwxr-xr-x   4 hayd  staff   136 31 Jul 10:57 Fixes
drwxr-xr-x   3 hayd  staff   102 31 Jul 07:33 IIB
drwxr-xr-x  31 hayd  staff  1054 31 Jul 11:05 IIM
drwxr-xr-x   4 hayd  staff   136 31 Jul 07:46 ODM
drwxr-xr-x  10 hayd  staff   340 31 Jul 13:11 ResponseFiles
drwxr-xr-x  15 hayd  staff   510 31 Jul 07:37 WAS
drwxr-xr-x  40 hayd  staff  1360 31 Jul 07:48 WMQ




IBM HTTP Server and CRIMA1137W

In the spirit of cross-posting my posts from elsewhere, I've just submitted a post: -


to the Global WebSphere Community (GWC) aka the WebSphere User Group.

Hope it's of use.

Monday, 27 July 2015

How to handle SIB messaging engine functionality, if fail over occur at database server side (in case of data store as message store)?

Have I mentioned how good developerWorks Answers is ?

If not, it's really very good.

Here's an example: -


Question

Would like to know more details about Messaging Engine functionality if data base is failed over to other other server. Is there any way to configure the failover database server names in WebSphere Application Server if primary database server is down and secondary take over the DB functionality?

Answer

...
If you are using data store as message store and lost the connection to the database you can tune the detection of database connection loss to decide how messaging engine functionality should behave. If the connection between a running messaging engine and its data store is lost, either due to a failure or because you stop the database for maintenance, you can ensure that the messaging engine functions correctly after the connection is restored, by configuring the server to restart automatically.
...

Saturday, 25 July 2015

Apple Watch - My first few days

This is NOT a review of the Apple Watch, I've not yet had it long enough, and there are FAR better reviews including this: -


and: -


However, I did struggle ( albeit briefly ) to set up Apple Pay.

I've got an iPhone 5s and have the Watch app set up and connected via BlueTooth.

When I tried to set up Apple Pay in the Watch app on the iPhone, I saw this: -


Could Not Connect to Apple Watch
Make sure your Apple Watch is nearby, powered on, and not in Airplane mode.

Having confirmed that both Watch and iPhone were both powered on AND not in Airplane Mode, I was at a bit of a loss.

The watch was showing this: -


which implied that all was well.

In true The IT Crowd tradition, I thought .... ah hah, why don't I try turning it off and on again.

Therefore, I powered off the iPhone, and turned it back on again.

And ....

guess what ?

Yep, it worked.

I'm now up and running with  Pay, ready to go and spend some money :-)

Thursday, 9 July 2015

Apple Music, Apple Music, Wherefore Art Thou ?

I'm loving  Music, as people who know me no doubt know.

Having got things nice and smooth on my Mac and on my iPhone, I was somewhat disappointed to find that my chosen music ( that which I'd "liked" and added to my music library: -

did not appear in ... my music library on another iOS device: -


Thankfully the Music app came to my rescue when I attempted to add a song to My Music on the iOS device, I was kindly presented with this: -


That's what I was missing :-)

Off to the Settings app, and select: -


and we're all good to go :-)

Wednesday, 8 July 2015

IBM Integration Bus - Where's my WSDL ?

I'm playing with HTTP Input and SOAP Input Nodes in IBM Integration Bus 9 right now, which is nice.

I'm following someone else's tutorial: -




In part 2, he says: -

which confused me because I did NOT have the Generate option: -


Then I checked the IBM Integration Bus Knowledge Centre: -


which says, in part: -

Tip: If you need to generate a WSDL document, you must first enable message set development in the IBM® Integration Toolkit. For more information, see Enabling message set development.

I did as instructed, and saw: -


Once I checked the Enable menus for Message Set development box and clicked OK, I was back in the game: -


To be fair, this does make sense, given what the IIB preferences page says: -


The tutorial was written in 2011 for WebSphere Message Broker.

I'll experiment further ....

Note to self - Firefox and local connections

 Whilst trying to hit my NAS from Firefox on my Mac, I kept seeing errors such as:- Unable to connect Firefox can’t establish a connection t...