› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › thread name lenght
AIX 5.2
Version 5.3P rev_2
I know this topic was discussed previously, but I cannot find via a search. So hear is the question again. What is the recommended maxium thread name lenght?
The problem will be with hciconnstatus which has a 15 char limit for thread names. We got around the issue by creating a copy of the command (hcaconnstatus) which we modified to 30 chars. The command is just a tcl script, and you would modify the emitSummary proc inside.
Also, note the process name is limited to 15 chars with hciprocstatus and hciconnstatus.
Regards,
Jonathan Hamilton
HCA Healthcare
Here is what we changed our line for the variable fmt in hciconnstatus to;
set fmt “%-15.15s %-28.28s %-5.5s %-7.7s %-20.20s” ;# Output line format
Other lines need to be adjusted as well, but the 28 gives us up to 28 characters to determine uniqueness. This allows for the hcicylesavemsgs command to operate correctly for us and accomodate some of the longer thread names.
We are having a issue with 2 threads that are over 15 characters that somtimes do not cycle.
Besides the line:
set fmt “%-15.15s %-28.28s %-5.5s %-7.7s %-20.20s” ;# Output line format
Are there any other lines that need to be changed? Also what does each number pairt between the % mean?
Currently our copy of hciconnstatus has this line:
set fmt “%-15.15s %-15.15s %-10.10s %-15.15s %-20.20s” ;# Output line format
My process names reperesent by 15 still exists then 28 is for the trhead names. My process names are pretty standard to 8 characters…..
I would have to look up the exact meaning but the -+ symbol I believe is for justification, the 28 is field length and s is string….. I am guessing.Should be in tcl book for format modifiers.
set hfmt “%-15.15s %-28.28s %-5.5s %-7.7s %-20.20s” ;# Heading format
set fmt “%-15.15s %-28.28s %-5.5s %-7.7s %-20.20s” ;# Output line format
echo [format $hfmt Process Connection State “Proto” When]
echo ”
This is the only line you need to change for thread names.
Does the filename match what is set in the thread properties
Match to what?
The reason I ask is that sometimes the name is changed and hcicylesavemsgs does not touch files unless they are defined in the thread properties of the specific thread. Lets say I call the SMAT file BOB and then later chnage to FRED. BOB would no longer becycled using hcicyclesavemsgs.
Also how long is the process name?
My resolve was to enforce using lowercase in naming of threads and renamed the thread using all lower case letters. I did have to clear the msi by taking down my site including hcmonitord and lockmanager and deleting monitorShmemFile and vista.taf and then running hcimsiutil -R.
Hope this helps….
Gary
You say you can manually cycle SMAT for the problem thread.
However, you say that hcicyclesavemsgs does not even see the thread.
This made me wonder if the thread was down at 2 AM in the morning when you schedule hcicyclesavemsgs to run.
I took a look at hcicyclesavemsgs and it has a comment that says
so I suggest you see if there is a scheduled event that stops this thread during the 2 AM time frame.
or just forget about using any brain cells and staying up to know for sure and schedule a cron job to run at 2:00 AM that does
hciconnstatus >$HCISITEDIR/hciconnstatus.txt
for the site in question and see if the thread is up or down at 2:00 AM by looking at the $HICSITEDIR/hciconnstatus.txt file the next day at work.
If you want to see how I cycle and archive my SMAT files and handle issues such as this then refer to post
https://usspvlclovertch2.infor.com/viewtopic.php?t=1921https://usspvlclovertch2.infor.com/viewtopic.php?t=1921
However, to use my scripts assumes a standard naming convention for SMAT files which is ${thread_name}.in and ${thread_name}.out
Russ Ross
RussRoss318@gmail.com
John Mercogliano
Sentara Healthcare
Hampton Roads, VA
I would double-check the process name as well as the threadname in the script. Also, is it possible that the thread is getting alot of activity at the time the script is running so that the ‘hcicmd’ is possibly timing out?
Jim Cobane
Henry Ford Health