193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
WebSphere MQ - Advanced Message Security - Some tinkering and AMQ9021
Fri, Apr 21st 2017 59
IBM Operational Decision Manager - Adding a LDAP server via the Decision Center Business Console
Thu, Apr 20th 2017 63
JMSMQ1112: The operation for a domain specific object was not valid. The operation 'createProducer()' is not valid for type 'com.ibm.mq.jms.MQQueue'
Thu, Apr 13th 2017 48
IBM Business Process Manager - RESTing on my laurels
Thu, Apr 13th 2017 44
WebSphere Application Server - manageprofiles.sh and the missing Java security policies
Thu, Apr 13th 2017 51
IBM Operational Decision Manager - Where's my Decision Center Business Console gone ?
Thu, Apr 13th 2017 43
IBM Business Process Manager 8.5.7 Cumulative Fix (CF) 2017-03 - Out on Friday 31 March
Wed, Apr 5th 2017 16
Top 10
IBM Operational Decision Manager - Adding a LDAP server via the Decision Center Business Console
Thu, Apr 20th 2017 63
WebSphere MQ - Advanced Message Security - Some tinkering and AMQ9021
Fri, Apr 21st 2017 59
Transport Layer Security (TLS) 1.2 and SoapUI
Fri, Jun 12th 2015 57
WebSphere Application Server - manageprofiles.sh and the missing Java security policies
Thu, Apr 13th 2017 51
JMSMQ1112: The operation for a domain specific object was not valid. The operation 'createProducer()' is not valid for type 'com.ibm.mq.jms.MQQueue'
Thu, Apr 13th 2017 48
IBM Business Process Manager - RESTing on my laurels
Thu, Apr 13th 2017 44
IBM Operational Decision Manager - Where's my Decision Center Business Console gone ?
Thu, Apr 13th 2017 43
Hmmm, macOS Sierra and XQuartz and X11
Thu, Oct 27th 2016 40
IBM HTTP Server / IBM WebSphere Plugin - Using Transport Layer (TLS) 1.2
Tue, Nov 10th 2015 39
"SECJ0371W: Validation of the LTPA token failed because the token expired with the following info..." - much more useful with WAS 8.5
Wed, Feb 12th 2014 37


Red Hat Enterprise Linux 7 - Driving Network Manager via Command-Line
Twitter Google+ Facebook LinkedIn Addthis Email Gmail Flipboard Reddit Tumblr WhatsApp StumbleUpon Yammer Evernote Delicious
   

This is definitely a WIP, and results from my experiences with Red Hat Enterprise Linux 7.3, which does networking subtly differently to older versions of RHEL.

Having restored a VM from an OVA export ( using VMware Fusion on macOS ), I realised that I no longer had any network connectivity, even though the VM configuration hadn't changed.

I saw this from the VM console, whilst logged in as a root.

Firstly I checked the IP stack with ifconfig : -

ifconfig -a

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 00:50:56:38:a3:ca  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0  KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4  bytes 340 (340.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 340 (340.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


So I've got an Ethernet interface - ens33 - which has no IP address.

Using Network Manager CLI, I checked the connection: -

nmcli connection

NAME         UUID                                  TYPE            DEVICE 
eno16777736  13756690-ac77-b776-4fc1-f5535cee6f16  802-3-ethernet  

which showed that the internal connection ( eno16777736 ) wasn't mapped to the ens33 interface.

This is easily resolved: -

nmcli connection modify eno16777736 connection.interface-name ens33

where I join the connection to the interface.

Now ifconfig shows a pukka IP address: -

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.153.130  netmask 255.255.255.0  broadcast 192.168.153.255
        inet6 fe80::20c:29ff:fefe:a16a  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fe:a1:6a  txqueuelen 1000  (Ethernet)
        RX packets 127  bytes 15722 (15.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 84  bytes 11401 (11.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 4  bytes 340 (340.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 340 (340.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


The actual IP configuration is, as before, handled via a script: -

/etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777736"
UUID="28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc"
DEVICE=ens33
ONBOOT="yes"
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


which shows that the connection is using DHCP.

If I wanted to allocate a static IP address, I'd change the file as follows: -

TYPE="Ethernet"
BOOTPROTO="static"
IPADDR=192.168.153.133
NETMASK=255.255.255.0
GATEWAY=192.168.153.2

DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16777736"
UUID="28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc"
DEVICE=ens33
ONBOOT="yes"
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes


and restart the network service: -

service network restart

Restarting network (via systemctl):                        [  OK  ]

we now have this: -

ifconfig ens33

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.153.133  netmask 255.255.255.0  broadcast 192.168.153.255
        inet6 fe80::20c:29ff:fefe:a16a  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:fe:a1:6a  txqueuelen 1000  (Ethernet)
        RX packets 961  bytes 88811 (86.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 539  bytes 75366 (73.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

So, to conclude, we have an interface - ens33 - and a Network Manager connection - eno16777736 - and NMCLI can show the join: -

nmcli connection

NAME         UUID                                  TYPE            DEVICE 
eno16777736  28ca0f72-3f90-41d1-a2f7-5ec6ea5fffbc  802-3-ethernet  ens33  

Thanks to this: -


and this: -


for inspiration.

For the record, at some point, I also had to do this: -

Map physical connection to interface

nmcli connection add type ethernet con-name ens33 ifname eth0

but I can't recall precisely how/why I got there, so we'll bank that for now :-)


---------------------
http://portal2portal.blogspot.com/2017/02/red-hat-enterprise-linux-7-driving.html
Feb 08, 2017
6 hits



Recent Blog Posts
59
WebSphere MQ - Advanced Message Security - Some tinkering and AMQ9021
Fri, Apr 21st 2017 7:18p   Dave Hay
This is the first of a few posts about my voyage of discovery with WebSphere MQ ( now IBM MQ ) Advanced Message Security (AMS), in the context of message authentication and encryption.Thus far, I've broken it twice :-)I'm following this tutorial: -Quick Start Guide for IBM MQ AMS on UNIX platformsand was able to successfully send messages from Alice to Bob, via a MQ Queue Manager.However, I did hit two exceptions: -/opt/ibm/mqm/samp/bin/amqsput TESTQ TESTQMSample AMQSPUT0 starttarget queue is
63
IBM Operational Decision Manager - Adding a LDAP server via the Decision Center Business Console
Thu, Apr 20th 2017 7:07p   Dave Hay
This has been on my To-Do list for some time.One of my colleagues was looking to configure connectivity between the IBM ODM Decision Center Business Console and an LDAP server.He, like me, is using ODM Advanced 8.8.1.I'd previously installed and configured this version on WebSphere Application Server (WAS) Network Deployment 8.5.5.This is what I have installed: -/opt/ibm/InstallationManager/eclipse/tools/imcl listInstalledPackagescom.ibm.cic.agent_1.8.6000.20161118_1611com.ibm.websphere.IBMJAVA
48
JMSMQ1112: The operation for a domain specific object was not valid. The operation 'createProducer()' is not valid for type 'com.ibm.mq.jms.MQQueue'
Thu, Apr 13th 2017 7:12p   Dave Hay
We saw this exception today: -Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSMQ1112: The operation for a domain specific object was not valid. The operation 'createProducer()' is not valid for type 'com.ibm.mq.jms.MQQueue'. A JMS application attempted to perform an operation on domain specific object, but the operation is valid only for the other messaging domain. Make sure that the JMS objects and operations used by your application are relevant for the required messaging domain
44
IBM Business Process Manager - RESTing on my laurels
Thu, Apr 13th 2017 9:28a   Dave Hay
A friend asked me about REST, in the context of the WebSphere Liberty Profile and the "new" Collectives management interface.Having provided some context about REST, I demonstrated how I can use a Firefox addon, REST Easy, to access the IBM BPM REST UI: -which returns: -and: -However, I also asked my Slack buddies for recommendations on other REST clients, and someone rightly pointed out the Swiss Army Knife that is curl which is built into most Unix OS, including macOS.So here's me accessing
51
WebSphere Application Server - manageprofiles.sh and the missing Java security policies
Thu, Apr 13th 2017 7:01a   Dave Hay
We saw a problem the other day, whilst creating a new IBM BPM Deployment Environment via the BPMConfig.sh script.When we dug into the problem further, it was apparent that the underlying manageprofiles.sh script was failing.Having resolved the problem ( more later ), I replicated it on a clean VM this morning.So, to start with, I attempt to create a new WAS profile: -/opt/ibm/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /opt/ibm/WebSphere/AppServer/profileTemplates/managed -pr
43
IBM Operational Decision Manager - Where's my Decision Center Business Console gone ?
Thu, Apr 13th 2017 6:33a   Dave Hay
This is a new build of IBM ODM Advanced 8.8.1, and I'm trying to log into, and use, the Decision Center Business Console: -https://bpm857.uk.ibm.com:9443/decisioncenter/loginHaving logged in, with a valid user, I get this: -and, in the logs: -tail -f /opt/ibm/WebSphere/AppServer/profiles/AppSrv01/logs/Node1-DCServer/SystemOut.log[13/04/17 07:21:27:130 BST] 000000ac ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [teamserver] [/decisioncenter] [/WEB-INF/views/login
16
IBM Business Process Manager 8.5.7 Cumulative Fix (CF) 2017-03 - Out on Friday 31 March
Wed, Apr 5th 2017 5:20a   Dave Hay
From this: -IBM BPM 8.5.7 CF2017.03 will be available on 31 March 2017…IBM Business Process Manager (BPM) updates are now released as quarterly cumulative fixes to enable you to get the latest fixes and product enhancements with a simple in-place upgrade. IBM BPM 8.5.7 Cumulative Fix 2017.03 is now available for you to download and upgrade today. Key highlights are outlined below. See Knowledge Center for full details.…and this: -What's new in security IBM BPM 8.5.7.201703...This 2017.03 cu
13
IBM Microservice Builder (Beta): Come Build Dockerized Microservices With Us - TODAY - April 4, 2017
Tue, Apr 4th 2017 1:00p   Dave Hay
Saw this on Slack earlier today: -Webinar - Microservice Builder (Beta): Come Build Dockerized Microservices With UsYou are INVITED to attend webcast titled "Microservice Builder (Beta): Come Build Dockerized Microservices With Us" sponsored by Chicago N-W Integration and Cloud Computing WUG.Overview: Microservices architecture is rapidly gaining traction as the choice of software architecture pattern to compose and release software more rapidly and predictably which in turn allows organizatio
12
DecisionCAMP 2017 - July 13-14 2017, Birkbeck University of London, London UK
Thu, Mar 30th 2017 5:37a   Dave Hay
DecisionCAMP 2017Business Rules and Decision Management TechnologyBest Practices, Standards, Real-World Business Cases, and SupportingJuly 13-14 2017, Birkbeck University of London, London UKDecisionCAMP is the latest incarnation of the series of popular events for Decision Management practitioners. It started in 2008 as October RulesFest, continued in 2009-2011 as RulesFest, became IntelliFest in 2012, and DecisionCAMP in 2013-2016. See the entire history of the events. DecisionCAMP-2017 is org
8
IBM WebSphere Liberty App Accelerator
Mon, Mar 27th 2017 9:14p   Dave Hay
I heard about this at InterConnect last week: -Liberty app acceleratorEasily start building apps for WebSphereLiberty, a Java EE application serverConfigure WebSphere Liberty with a set of selected technologies. Then download the project as a zip file.https://liberty-app-accelerator.wasdev.developer.ibm.com/start/




Created and Maintained by Yancy Lent - About - Planet Lotus Blog - Advertising - Mobile Edition