Danté's Inferno

Music, Photography, Motorsports & Politics

Danté's Inferno header image 1

How to determine zone type for Solaris 10 container

January 9th, 2012 · No Comments

Click on this link. It tells you how to use pkgcond:

http://nilesh-joshi.blogspot.com/2009/08/how-to-tell-if-server-is-global-or-non.html

Click This 2

That’s all!

→ No CommentsTags: Tech Tips

Linux Routing

October 6th, 2011 · No Comments

Ubuntu 11.04 Network Manager with 2 Interfaces

Lately I’ve been using my T-Mobile Jet Stick Broadband to connect to the Internet from my current customer. The reason for this is mainly that I’m not allowed to put my laptop on their network for security reason (and HIPPA, probably).

This morning I setup the HP ILO2 service processor on a DL380 G5 that I’m rebuilding with Oracle Linux 5.2 and wanted to be able to connect to directly to the ILO2 via the physical Ethernet port in my laptop. Additionally, I needed to simultaneously connected to the Internet via the T-Mobile stick.

For some reason, no matter the order I put the interfaces in, Network-Manager would always set the preferred routing over the physical cable!. Since that is only connected to a single ILO2, without a switch or router in between, that’s pretty useless as it tries to route all IP traffic via the ILO2!

So, I decided to plug both things in, then manipulate the routing table. Hopefully, here are all the commands to share:

Initial Routing Table

Routing table with the T-Mobile plugged in and with the ethernet plugged in. You can see the entry for the T-Mobile has an Iface entry of ppp0 (point-to-point) and the HP ILO2 has the interface of eth0.

netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.64.64.64     0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
126.10.8.0      0.0.0.0         255.255.252.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         126.10.8.33     0.0.0.0         UG        0 0          0 eth0

The important thing to notice is the default gateway, Flags=UG, is 126.10.8.33, which is the IP address of the HP ILO2 device. Not what we need!

Step 1: Remove that weird 169.254.0.0 entry

sudo route del -net 169.254.0.0/16
[sudo] password for dante:
dante@dexter:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
126.10.8.0      0.0.0.0         255.255.252.0   U     1      0        0 eth0
0.0.0.0         126.10.8.33     0.0.0.0         UG    0      0        0 eth0

Step 2: Now remove the UG route

sudo route del -net 0.0.0.0 netmask 0.0.0.0 gw  126.10.8.33 eth0
dante@dexter:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
126.10.8.0      0.0.0.0         255.255.252.0   U     1      0        0 eth0

Step 3: Add 10.64.64.64 as the default gateway

sudo route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.64.64.64 ppp0
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.64.64.64     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
126.10.8.0      0.0.0.0         255.255.252.0   U     1      0        0 eth0
0.0.0.0         10.64.64.64     0.0.0.0         UG    0      0        0 ppp0

Step 4: Check traceroute for internet and lan

dante@dexter:!$traceroute -n 126.10.8.33
traceroute to 126.10.8.33 (126.10.8.33), 30 hops max, 60 byte packets

dante@dexter:~$ traceroute -n 74.1.46.163
traceroute to 74.1.46.163 (74.1.46.163), 30 hops max, 60 byte packets
 1  10.168.187.42  96.535 ms  96.455 ms  96.419 ms
 2  10.168.187.45  96.386 ms  96.354 ms  96.242 ms
 3  10.168.187.68  96.204 ms  106.176 ms  106.149 ms
 4  10.168.187.49  106.124 ms  106.099 ms  106.078 ms
 5  10.170.206.5  106.058 ms  89.680 ms  89.613 ms
 6  10.170.206.10  89.580 ms  89.517 ms  89.484 ms
 7  10.161.59.13  89.454 ms  89.424 ms  99.408 ms
 8  10.176.188.194  99.377 ms  99.288 ms  89.795 ms
 9  10.176.188.150  89.728 ms  89.697 ms  89.666 ms
10  4.53.73.145  99.592 ms  99.476 ms  89.621 ms
11  * * *
12  166.90.203.2  89.443 ms  89.290 ms  89.255 ms
13  192.168.7.14  89.590 ms  89.474 ms  89.441 ms
14  74.1.46.161  99.324 ms  109.329 ms  109.300 ms
15  74.1.46.163  119.147 ms  109.635 ms  109.556 ms

→ No CommentsTags: Tech Tips

Some thoughts on Seth Godin’s Recession Piece

September 29th, 2011 · No Comments

I was just reading one of Seth’s blog entries, refered to my by Lighting Essentials via his facebook page. Seth’s blog post can be found at: The forever recession (and the coming revolution) Trackback at “http://www.typepad.com/services/trackback/6a00d83451b31569e2015391e6aa1b970b”.

I basically agree with most of Seth’s points about the death of the Industrial Revolution and the decline of the proximity workers who could demand higher wages. In fact, this is something near and dear to my heart and I really don’t understand why there are no governments in the world, AFAIK, that are actually dealing with this.

I went to a trade show with some brass at Ford Motor Company way back in 1993. This event was to show the brass the new and improved machinery to use in plants to make components of automobiles. The thing that struck me most was when a vendor told us:

The beauty of these new products is that they only require a basic 8th grade education. By basic, I mean, the worst schools in the US, if a person gets through 8th grade he/she is fully capable of operating this machine at peak efficiency!

The VP from Ford looked at me and said,

That’s fine and dandy for the bottom line, but what the hell are we going to do with all the people we put out of work…no one has a plan for that eventuality!

Wow!This was 1993, and you know what, we still don’t have a plan!

It’s fine and dandy for Seth to say that if you have a connection, you have a factory. But that works for maybe 10% of the world’s population. You figure another 10% is basically agrarian, so what the hell do we, the remaining 80%, do for a living? How do we earn money so we can spend it on the 10% factory owners with their single laptop and the 10% of the folks that want to feed us????

It’s painfully obvious to me that the whole ‘Higher Education’ will save us, is a crock. Mind you, I’m a strong believer in education as long as it’s education that teaches you how to think, how to solve problems, how to better communicate, how to have empathy and spirituality, but that ain’t what we got anymore. Higher education became an industry.

I communicate daily with college grads with some real world experience (>5 years) world-wide on almost a daily basis, and they haven’t learned the basics of how to learn! Great, as long as someone produces a manual, but who are we going to get to produce that manual? Some factory on a laptop operated by some unknown person with no references or credibility??? And who’s going to have a job to pay for this manual, so that the factory owner can afford their laptop and government subsidized Internet and electricity and health benefits????

Why is it only a handful of people world-wide are even asking this question???

→ No CommentsTags: Uncategorized

Tomcat Thread Starvation Issue

August 3rd, 2011 · 2 Comments

Here are the issues we are having:

Tomcat stress tests show that Tomcat reaches max_threads, then hangs, no more connections are made. System must be restarted to allow further processing.

Package Versions:

Apache: Apache HTTP Server Version 2.2 – prefork with mpm
Tomcat: 6.0.20
JK Connector: Same as whatever is bundled in with Apache 2.2 (from customer)
Solaris Solaris 10 10/09 s10s_u8wos_08a SPARC

Current? Startup CommandLine

JAVA_OPTS="-Xss128k -Xms1024m -Xmx2564m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -verbose:gc -XX:+PrintGCDetails -XX:SurvivorRatio=6 -XX:NewSize=512M -XX:MaxNewSize=512M -XX:+DisableExplicitGC -Xloggc:gclog_tomcat.txt -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"

Apache Version Info

sh-3.00# ./httpd -V
Server version: Apache/2.2.17 (Unix)
Server built:   Nov  4 2010 07:26:31
Server's Module Magic Number: 20051115:25
Server loaded:  APR 1.4.2, APR-Util 1.3.10
Compiled using: APR 1.4.2, APR-Util 1.3.10
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/apache2_cgems"
 -D SUEXEC_BIN="/usr/apache2_cgems/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

prstat output when hung

   PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID

 13030 ems       43  20 0.2 0.0 0.1 6.8  29 0.0  15   6  1K   0 java/349
 13030 ems      3.3 0.5 0.1 0.0 0.1 0.5  95 0.0   4   0 328   0 java/364
 13030 ems      2.9 0.5 0.0 0.0 0.0  62  34 0.0  10   0 353   0 java/344
 13030 ems      2.8 0.5 0.0 0.0 0.0 0.3  96 0.0   4   0 316   0 java/377
 13030 ems      2.2 0.1 0.0 0.0 0.0  28  70 0.0   4   0  19   0 java/10194
 13030 ems      2.0 0.1 0.0 0.0 0.0  34  64 0.0   4   0  20   0 java/10132
 13030 ems      2.0 0.1 0.0 0.0 0.0  49  49 0.0   3   0  16   0 java/10166
 13030 ems      2.0 0.1 0.0 0.0 0.0  38  60 0.0   3   0  16   0 java/10123
 13030 ems      1.9 0.1 0.0 0.0 0.0  36  62 0.0   3   0  18   0 java/10157
 13030 ems      1.9 0.1 0.0 0.0 0.0  38  60 0.0   3   0  17   0 java/10143
 13030 ems      1.8 0.1 0.0 0.0 0.0  39  59 0.0   3   0  17   0 java/10126
 13030 ems      1.8 0.1 0.0 0.0 0.0  35  63 0.0   3   0  18   0 java/10174
 13030 ems      1.8 0.1 0.0 0.0 0.0  33  65 0.0   3   0  17   0 java/10133
 13030 ems      1.8 0.1 0.0 0.0 0.0  36  62 0.0   3   0  17   0 java/10145
 13030 ems      1.8 0.1 0.0 0.0 0.0  39  59 0.0   3   0  17   0 java/10162
 13030 ems      1.7 0.1 0.0 0.0 0.0  50  48 0.0   3   0  16   0 java/10208
 13030 ems      1.7 0.1 0.0 0.0 0.0  43  55 0.0   3   0  16   0 java/10211
 13030 ems      1.7 0.1 0.0 0.0 0.0  47  51 0.0   3   0  15   0 java/10137
 13030 ems      1.6 0.1 0.0 0.0 0.0  35  63 0.0   3   0  16   0 java/10152
 13030 ems      1.6 0.1 0.0 0.0 0.0  34  65 0.0   3   0  16   0 java/10067
 13030 ems      1.6 0.1 0.0 0.0 0.0  48  50 0.0   3   0  15   0 java/10191
 13030 ems      1.6 0.1 0.0 0.0 0.0  40  59 0.0   3   0  15   0 java/10148
 13030 ems      1.5 0.0 0.0 0.0 0.0  37  62 0.0   3   0  15   0 java/10173
 13030 ems      1.5 0.1 0.0 0.0 0.0  33  66 0.0   3   0  15   0 java/9973
 13030 ems      1.5 0.0 0.0 0.0 0.0  44  54 0.0   3   0  14   0 java/10165
 13030 ems      1.5 0.0 0.0 0.0 0.0  53  45 0.0   2   0  13   0 java/10150
 13030 ems      1.4 0.0 0.0 0.0 0.0  40  58 0.0   3   0  14   0 java/10076
 13030 ems      1.4 0.1 0.0 0.0 0.0  41  58 0.0   3   0  14   0 java/10006
 13030 ems      1.3 0.0 0.0 0.0 0.0  67  31 0.0   2   0  12   0 java/10207
 13030 ems      1.3 0.0 0.0 0.0 0.0  38  60 0.0   3   0  14   0 java/9924
 13030 ems      1.3 0.0 0.0 0.0 0.0  41  58 0.0   2   0  13   0 java/10080
 13030 ems      1.3 0.0 0.0 0.0 0.0  45  54 0.0   3   0  13   0 java/9991
 13030 ems      1.2 0.1 0.0 0.0 0.0  40  59 0.0   3   0  13   0 java/9869
 13030 ems      1.2 0.0 0.0 0.0 0.0  42  56 0.0   2   0  13   0 java/10037
 13030 ems      1.2 0.0 0.0 0.0 0.0  60  39 0.0   2   0  11   0 java/10210
 13030 ems      1.2 0.0 0.0 0.0 0.0  50  48 0.0   2   0  12   0 java/10113
 13030 ems      1.2 0.1 0.0 0.0 0.0  45  54 0.0   3   0  12   0 java/9964
 13030 ems      1.2 0.0 0.0 0.0 0.0  57  42 0.0   2   0  10   0 java/10206
 13030 ems      0.8 0.4 0.1 0.0 0.0  98 0.1 0.0  27   0  29   0 java/108
Total: 1 processes, 828 lwps, load averages: 17.17, 22.55, 22.69

workers.properties

# Define 1 real worker using ajp13
worker.list=worker1,worker2,worker3,worker4
worker.maintain=10

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8019
worker.worker1.lbfactor=1
worker.worker1.connection_pool_size=1
worker.worker1.connection_pool_timeout=10
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
worker.worker1.cache_timeout=10

# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
worker.worker2.host=localhost
worker.worker2.port=8019
worker.worker2.lbfactor=1
worker.worker2.connection_pool_size=1
worker.worker2.connection_pool_timeout=10
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300
worker.worker2.cache_timeout=10

# Set properties for worker3 (ajp13)
worker.worker3.type=ajp13
worker.worker3.host=localhost
worker.worker3.port=8019
worker.worker3.lbfactor=1
worker.worker3.connection_pool_size=1
worker.worker3.connection_pool_timeout=10
worker.worker3.socket_keepalive=1
worker.worker3.socket_timeout=300
worker.worker3.cache_timeout=10

# Set properties for worker4 (ajp13)
worker.worker4.type=ajp13
worker.worker4.host=localhost
worker.worker4.port=8019
worker.worker4.lbfactor=1
worker.worker4.connection_pool_size=1
worker.worker4.connection_pool_timeout=10
worker.worker4.socket_keepalive=1
worker.worker4.socket_timeout=300
worker.worker4.cache_timeout=10

httpd.conf

[Read more →]

→ 2 CommentsTags: Tech Tips

Today’s Travel Adventure

June 29th, 2011 · No Comments

Here’s today’s travel adventure.

It actually started last night, stopped and got dinner, turned in the
rental car and checked into the Tampa Airport Marriott for a few hours
of sleep.

Woke up at 04:00, took a quick shower then went downstairs to check-in
at Delta and that’s where the adventure started ;)

For some reason, still under investigation, my reservation couldn’t be
found at the check-in kiosk. So, I broke out my laptop and checked to
make sure that I listed OK and it looked good to me. A ticket agent
asked me what was wrong, so I told her what was going on and she said
she’d take a look. Well, simultaneously, some a-hole next to me started
screaming at the ticket agent that was helping me because 4 people went
ahead of him and he had been waiting 7 minutes! Oh, the horror ;) He was
screaming in my ear, wanted everyone’s names, requested red coats and
managers and kept screaming at the girl helping me out! So, they pretty
much ignored him, which made him even madder. What a great experience to
have at 04:30 in the morning!

So, she found me in one of their other reservation systems and took my
bag, handed me back my cell phone and ID. I didn’t realize it but she
went ahead and checked me in but somehow missed that I wanted to be on a
higher priority ticket but couldn’t hear me over the the a-hole that had
to wait 7 minutes!!!

So, 2 families that listed at this higher priority got on the 06:00 to
ATL, but I didn’t! Mind you, I didn’t know that I was at the wrong
priority since I didn’t see how she checked me in!!!

However, I did get on the 7:15 flight to ATL, which was stuck on a
ground hold, so we arrived to ATL late. Since I was in the back of the
bus (757) it took forever to deplane, so I got the the gate for CLE at
9:20, but that flight was delayed (it was supposed to leave at 9:20 but
was delayed until 9:35) but there were no gate agents to be found! I
couldn’t find anyone with Delta to let me on the plane even though
their automated system said I was cleared!

So, having missed that flight, I called into Delta Res and that’s when I
found out that I wasn’t on the higher priority, but no explanation of
why I couldn’t get on the CLE flight. I got listed on the 12:50 flight
to CLE and got on that flight. In the meantime, Joanie was calling their
help line to see why they couldn’t find me (this happened on the way
down, too, but we thought it was a one-time glitch. She was on hold for
3 hours and basically they told her they didn’t know why I wasn’t
showing up and they would open a ticket!!!!

Hope your day was less adventuresome ;)
Danté

→ No CommentsTags: Uncategorized