193 Lotus blogs updated hourly. Who will post next? Home | Blogs | Search | About 
 
Latest 7 Posts
JVMCFRE003 bad major version; class=org/apache/derby/jdbc/EmbeddedConnectionPoolDataSource40, offset=6
Wed, Mar 15th 2017 83
WebSphere Application Server - DNS, you can't fool it - or can you ?
Mon, Mar 13th 2017 47
Weirdness - The database is not consistent with the BPM Product version
Sun, Mar 12th 2017 41
Scripting in Python and Jython with added OS commands
Sat, Mar 11th 2017 37
CTGSK3046W - IBM HTTP Server - Certificates and Permissions
Fri, Mar 10th 2017 28
CloudFoundry Enablement
Fri, Mar 10th 2017 23
At last, LDAP Test Query feature added to WebSphere Application Server
Fri, Mar 10th 2017 17
Top 10
JVMCFRE003 bad major version; class=org/apache/derby/jdbc/EmbeddedConnectionPoolDataSource40, offset=6
Wed, Mar 15th 2017 83
WebSphere Application Server - DNS, you can't fool it - or can you ?
Mon, Mar 13th 2017 47
Weirdness - The database is not consistent with the BPM Product version
Sun, Mar 12th 2017 41
Transport Layer Security (TLS) 1.2 and SoapUI
Fri, Jun 12th 2015 40
IBM HTTP Server / IBM WebSphere Plugin - Using Transport Layer (TLS) 1.2
Tue, Nov 10th 2015 40
Executing external Python/Jython scripts from within WebSphere Application Server's wsadmin tool
Thu, Feb 27th 2014 39
Scripting in Python and Jython with added OS commands
Sat, Mar 11th 2017 37
Hmmmm, HTTP404 and SRVE0190E seen with IBM HTTP Server and WebSphere Application Server
Fri, Nov 14th 2014 30
WebSphere Application Server 8.5.54 and IBM BPM Advanced 8.5.5.0 - Available commands
Sat, Jan 24th 2015 29
Securing the Database - IBM DB2 10.5 and Transport Layer Security 1.2
Wed, Jun 3rd 2015 29


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
7 hits



Recent Blog Posts
83
JVMCFRE003 bad major version; class=org/apache/derby/jdbc/EmbeddedConnectionPoolDataSource40, offset=6
Wed, Mar 15th 2017 9:37p   Dave Hay
I saw this today: -[ERROR ] An error has occurred in trying to access data source 'jdbc/ilogDataSource': Could not lookup datasource named 'jdbc/ilogDataSource'. Check that the data source exists on the application server or contact your administrator.An error has occurred in trying to access data source 'jdbc/ilogDataSource': Could not lookup datasource named 'jdbc/ilogDataSource'. Check that the data source exists on the application server or contact your administrator.[E
47
WebSphere Application Server - DNS, you can't fool it - or can you ?
Mon, Mar 13th 2017 7:12a   Dave Hay
I saw this: -[3/12/17 19:55:21:158 UTC] 00000001 LogAdapter E DCSV9403E: Received an illegal configuration argument. Parameter MulticastInterface, value: 9.20.65.171. Exception is java.lang.Exception: Network Interface 9.20.65.171 was not found in local machine network interface list. Make sure that the NetworkInterface property is properly configured! at com.ibm.rmm.mtl.transmitter.Config.(Config.java:238)while attempting to start a WebSphere Application Serve (WAS) Deployment Manager ( as
41
Weirdness - The database is not consistent with the BPM Product version
Sun, Mar 12th 2017 7:52p   Dave Hay
So we saw this issue last week: -[3/9/17 7:06:35:804 UTC] 00000001 WsServerImpl E WSVR0009E: Error occurred during startupcom.ibm.ws.exception.RuntimeError: The database [jndi = jdbc/PerformanceDB] version [8.5.7.201612] is not consistent with the BPM Product version [8.5.7.0], please ensure the database is updated successfully before starting server.during the build of a new IBM Business Process Manager (BPM) Advanced 8.5.7 Deployment Environment with an Oracle 12c database.The problem appea
37
Scripting in Python and Jython with added OS commands
Sat, Mar 11th 2017 7:42p   Dave Hay
I was writing a generic ( use anywhere ) script to add a BPM URL to my IBM BPM Advanced 8.5.7 environment.For me, all of the components ( IBM HTTP Server, WebSphere Plugin and WebSphere Application Server / BPM ) are on the same VM.For the record, I'm running the VM on OpenStack.Therefore, I wanted a script that would get the hostname of the VM on which IHS/WAS is running.This served as source: -How can I use Python to get the system hostname?and this was my test script: - foo.jy import socketh
28
CTGSK3046W - IBM HTTP Server - Certificates and Permissions
Fri, Mar 10th 2017 7:44p   Dave Hay
I saw this: -CTGSK3046W The key file "/tmp/ad2012.cer" could not be imported.whilst trying to add a CA Signer certificate to a keystore using IBM HTTP Server: -/opt/ibm/HTTPServer/bin/gskcapicmd -cert -add -file /tmp/ad2012.cer -db /opt/ibm/HTTPServer/BPM/ssl/keystore.kdb -stashedHaving checked and double-checked my command, I then tried to use openSSL to validate the certificate: -openssl x509 -inform der -in /tmp/ad2012.cer -text -nooutError opening Certificate /tmp/ad2012.cer140581419276192
23
CloudFoundry Enablement
Fri, Mar 10th 2017 12:05p   Dave Hay
Shared by one of my team: -Overview: Cloud Foundry BasicsJoin us for a hands-on training workshop to learn about deploying and managing applications on Cloud Foundry. We will give an overview of Cloud Foundry and how it works, including specifics relating to services, buildpacks, and architecture. We will also look at how to effectively work with Cloud Foundry in your organization.This training is targeted at people with little or no Cloud Foundry experience but some experience delivering web-ba
17
At last, LDAP Test Query feature added to WebSphere Application Server
Fri, Mar 10th 2017 9:04a   Dave Hay
So this is something that I've wanted FOREVER …I don't know precisely when it appeared, but I just realised that WebSphere Application Server (WAS) Network Deployment 8.5.5.11 ( 8.5.5 Fixpack 11 ) now includes the ability to test LDAP connectivity: -Specifically, this: -which returns: -whereas if, for example, I use the wrong Bind Password, I get: -SECJ7340E: Exception raised trying to connect to LDAP serverException Name=javax.naming.AuthenticationException Reason=[LDAP: error code 49 - 800
15
Reminder - Insufficient ulimit Value Causes Native OutOfMemory
Fri, Mar 10th 2017 7:36a   Dave Hay
This from IBM: -An out of memory may be observed on a system running WebSphere Application Server on Linux or AIX that is due to ulimit restrictions on number of process/threads per user. Further investigation may reveal a "Failed to create a thread:" message within the generated javacore which would indicate a native out of memory issue has been encountered. The cause of the problem may be an insufficient ulimit setting. While this type of issue can occur on any level of Linux, or AIX, the is
26
WebSphere User Group - London - Thursday 30 March 2017
Thu, Mar 9th 2017 4:07p   Dave Hay
This popped up in my inbox today: -It's only 3 weeks to go until the next WebSphere User Group event in London - it's on Thursday, March 30th at IBM South Bank.Agenda Topics:The provisional agenda is now available! Take a look here. Based on user feedback we have moved a bit of the focus to topics like DevOps, Docker, Microservices and Cloud as well as providing the latest updates in the Application Server, Integration and Messaging spaces that this event is know for.This year we have restruct
8
Customize the style of IBM BPM coaches - A pattern and a hierarchical approach
Wed, Mar 8th 2017 10:11a   Dave Hay
I feel like a proud father :-)This was authored, and peer-reviewed, by members of my team :-)Customize the style of IBM BPM coaches - A pattern and a hierarchical approachThis article focuses on how to customize responsive coaches and gives you a pattern for maintaining the customizations across an entire enterprise. If you don't want to make major customizations to the style of your coaches, but you still want responsive user interfaces that work well on all devices, see the Access IBM BPM fro




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