Including Line profile in an Imaq Script for a grey scale image.
We are trying to include a line profile in a script so that we can assess
the distance between the lines printed (as per attachment)in a grey scale
image.
Once the line profile is in the script we would then like to run a batch
file on a series of images.
Attachments:
Test_1.JPG 67 KB
It sounds like you are using Vision Builder or Vision Assistant (new name, same program).
What you want to use is the Edge Detector. Use it to draw a line across your image, then adjust the parameters until all the edges are found. I reduced the contrast to 25 and it found all the edges.
You can View Measurements under Tools to see the X and Y coordinates of each edge. You can also use batch processing and export the results. I didn't test it, but I assume if you export the results for the edge detection you will get the same list of points.
Bruce
Bruce Ammons
Ammons Engineering
Similar Messages
-
Create ecatt script for one sales order creation with multiple line items
Hi ,
I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
This selection of data will be from an external file/ variants which will have only one row of data in it.
Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
Second: I have to create sales order for those many line items having same PO Number.
Best Regard
TaranumHi Micky
Firstl you should upload the Line items for a particular sales Order in an Internal table
and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
In case of any issues pls revert back
Reward points if helpful
Regards
Hitesh -
I have a bare minimum script with the following line (also had the line echo Hello World, but removed for simplicity).
#!/bin/sh <-- only line of code currently in the file
when I try to run, I get the following error. Likewise if the line is #!/bin/bash, but /bin/bash is then the bad interpreter.
-bash: ./test.sh /bin/sh: bad interpreter: Operation not permitted
I'm running from a terminal window.
Any helpful hints for resolution? Thank you in advance.I did some more searching and found the answer here: https://discussions.apple.com/thread/3733470?start=30&tstart=0
I obtained TextWrangler and recreated the file.
Thank you for your input. -
Creating a Perl script for SAP sytem profile parameter
Hi,
I need to create a perl script for all th eprofile parameter to check as a security directive ,so that whenever the system is started it checks for this profile parameter.
As per my company sap directive ,these are the profile parameter i need to set.
Can anyone let me know how to write the scripts.
login/min_password_lng Minimum password length for user password 320 Min.
8
login/password_expiration_t
ime
Number of days between forced password change. 0 Max.
35
login/fails_to_session_end Number of invalid logon attempts allowed before the
SAP GUI is disconnected.
3 Max.
3
login/fails_to_user_lock Number of invalid logon attempts before the user id is
automatically locked by the system.
12 Max.
6
rdisp/gui_auto_logout Time, in seconds, that SAPGUI is automatically disconnected
because of in-activity.
0 60-
7200
21
auth/test_mode Jump into report RSUSR400 at every authority check N N22
auth/system_access_check_
off
Switch off automatic authority check for special ABAP
commands
0 0
auth/no_check_in_some_ca
ses
Special authorization checks turned off by customer.
Enabling of Profile Generator
N/Y23 Y
login/ext_security Security access controlled by external software. N N24
auth/rfc_authority_check Permission for remote function calls from within ABAP
programs
0 1
login/failed_user_auto_unlo
ck
Enable system function for automatic unlock of users
at midnight. (0 = locks remain)
0 0
login/
no_automatic_user_sapstar
(as of 3.1h)
login/no_automatic_user_sa
p* (prior to 3.1h)
Disable ability to logon as SAP* with PASS as password
when SAP* deleted.
0 125,26
auth/tcodes_not_checked TCode checking for SU53 & SU56 analysis disabled (empty
"SU5
3
Regards,
Chetan.Here's a simple perl script that should help you get what it is you're looking for - you can add all the parameters you want to search for, I just took a few of them:
#!/usr/bin/perl -w
use strict;
use sapnwrfc;
SAPNW::Rfc->load_config;
my $rfc = SAPNW::Rfc->rfc_connect;
my @parms = ( "login/min_password_lng",
"login/password_expiration_time",
"login/fails_to_session_end",
"login/fails_to_user_lock" );
for my $x (0 .. $#parms) {
my $rcc = $rfc->function_lookup("SXPG_PROFILE_PARAMETER_GET");
my $slr = $rcc->create_function_call;
$slr->PARAMETER_NAME($parms[$x]);
$slr->invoke;
print "Value for $parms[$x] is: ".$slr->PARAMETER_VALUE."\n";
$rfc->disconnect();
And running it, you'll get:
[dhull@397 scripts]$ ./read-profile.pl
Value for login/min_password_lng is: 7
Value for login/password_expiration_time is: 90
Value for login/fails_to_session_end is: 3
Value for login/fails_to_user_lock is: 6
[dhull@397 scripts]$
If you need to get your perl environment read to make RFC calls to your SAP system, check my series of blogs on how to do so here:
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/u/251752730
Cheers,
David. -
Line Profile lowering for no reason.
Over the past 3 weeks my line profile has dropped from 77.44 to 70.33 and now is at 65.35.
My line has no noise and there is nothing extra running that could could cause the drop.
I use only one PC that is wired by ethernet cat6 to the router.
Reseting the router does not help.
I think that the fault is in the cabinet,as the DLM is not picking up any faults from my line because I have not had any power problems or noise on the line.
Imo.DLM is being set to lower my profile for no reason that makes any sense.
Solved!
Go to Solution.The vector trial is only good for peeps that live rite next to the cabinet like 100m or so, anywhere beyond that, its not going to happen and the question is how many people actually live that close to the cabs around the uk. I would say most are beyond that, BT should look at achieveing better speeds for the houses that live further away and not concentrating on everyone that lives next to the Fibre cabs for faster throughput, its just a cheap easy methord for Openreach/BT to look like they are doing something!. Think of the poor buggers that suffer with low speeds cause they live so far away, not just the ones that get low fibre speeds and low ADSL speeds but also the ones that have not even got a broadband connection yet and some are probably still on the 56K Dial Up, that is my issue with BT!!!. BT please leave the 70/10MB+ peeps alone, they dont need help, concentrate on the lower figures around the country and do something special for them!.
Please click on pink star to the left and say thanks if I have helped you at all!. Thank you. Home Hub Page- http://bthomehub.home/
BT Speed test- http://www.speedtest.btwholesale.com/
Speedtest:-http://diagnostics.bt.com/login/?workflow=Speed
Net Connect test- http://netalyzr.icsi.berkeley.edu/index.html -
One-liner script for displaying BLACKLIST sendergroup ip/sbr
MFC (or possibly M-series) does not log BLACKLISTed SG connection information.
This make sense, because 95% of connections belongs to BLACKLIST. :cry:
To verify whether setting too strict of SBRS score for BLACKLIST SG, I have a script
For one mail.log file
tac mail.current | \
awk '/REJECT SG BLACKLIST match/ { a = $NF; getline; printf "%s ",$0; print a } ' | \
grep 'verified yes' | awk '{ print $15,$19,$NF }'|sort |uniq -c|sort -n
Fpr process multiple mail.@*.s file
tac `ls -1t mail.*s|head -3` | \
awk '/REJECT SG BLACKLIST match/ { a = $NF; getline; printf "%s ",$0; print a } ' | \
grep 'verified yes' | awk '{ print $15,$19,$NF }'|sort |uniq -c|sort -n
Example output
834 122.218.211.93 122x218x211x93.ap122.ftth.ucom.ne.jp -10.01
892 77.45.131.75 75.131.c10008-a77.dsl-dynamic.vsi.ru -10.01
920 70.56.148.214 70-56-148-214.bois.qwest.net -4.91
923 200.158.73.159 200-158-73-159.dsl.telesp.net.br -10.01
963 93.124.99.106 host-93-124-99-106.dsl.sura.ru -10.01
982 85.136.139.99 85.136.139.99.dyn.user.ono.com -7.31
983 82.255.81.30 lns-bzn-42-82-255-81-30.adsl.proxad.net -4.21
984 200.120.226.165 pc-165-226-120-200.cm.vtr.net -10.01
997 68.90.116.121 adsl-68-90-116-121.dsl.rcsntx.swbell.net -10.01
1031 80.7.70.213 cpc2-pool4-0-0-cust724.sotn.cable.ntl.com -10.01
1060 189.19.211.97 189-19-211-97.dsl.telesp.net.br -10.01
1127 210.202.82.21 nk210-202-82-21.vdslpro.static.apol.com.tw -7.81
1174 65.25.105.170 cpe-65-25-105-170.neo.res.rr.com -7.31
1253 82.41.145.16 82-41-145-16.cable.ubr04.grth.blueyonder.co.uk -10.01
1301 61.227.71.96 61-227-71-96.dynamic.hinet.net -4.51
1415 79.86.157.30 30.157.86-79.rev.gaoland.net -10.01
1450 189.58.225.74 189.58.225.74.dynamic.adsl.gvt.net.br -10.01
1646 91.67.109.82 91-67-109-82-dynip.superkabel.de -10.01
1843 77.192.81.76 76.81.192-77.rev.gaoland.net -10.01
1994 89.78.204.79 chello089078204079.chello.pl -10.01
2164 86.21.9.87 cpc2-stap6-0-0-cust342.nott.cable.ntl.com -10.01
2298 118.8.196.173 p1173-ipbf1408souka.saitama.ocn.ne.jp -4.01
(Btw, we set BLACKLIST SBRS <= -3.5)It could be as simple as
lgrep -O conn <IP> access
If you have more logs you can cat them and pipe the output to lgrep in a pipeline, like:
cat access.1 access.2 ... access.n | lgrep -O conn <IP>
Just make sure that the logs are listed in sequence. The script won't produce reliable results if the log is non-sequential. -
Anyone work for BT on these forums, Line profile r...
3 phone calls to tech support.
First person I spoke too could not understand geordie
Second person asked what line profile is
Third Person pretened he had done the job just to get rid of me, think he never had a clue either.
I had a telephone exchange fault a week back thats screwed up my line profile, any chance some wonderful person at BT could do a line profile reset.
Many thanks.cheers imjolly
Trying to get the SNR back down to 3, could achive over 21 meg - and a download speed of 19 meg
Btwholesale test
Download speed 15.20
Upload 0.98
ping 37.88
Downstream:
18.57 Mbps
Upstream:
1.249 Mbps
ADSL Settings
VPI/VCI:
0/38
Type:
PPPoA
Modulation:
G.992.5 Annex A
Latency type:
Fast
Noise margin (Down/Up):
9.0 dB / 6.6 dB
Line attenuation (Down/Up):
9.7 dB / 6.5 dB
Output power (Down/Up):
19.9 dBm / 12.4 dBm
FEC Events (Down/Up):
0 / 0
CRC Events (Down/Up):
2 / 0
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
0 / 0
Loss of Power (Local/Remote):
0 / 0
HEC Events (Down/Up):
4 / 0
Error Seconds (Local/Remote):
2 / 0 -
Unable to print multiple line items in Z-SAP SCRIPT
Hi ALL,
We have a scenario where in we are calling the Driver program (RFKORD50) for Document Extract(F.64), Where in we have attached the Z-Script to the program(RFKORD50),
Unable to print multiple items.
1) Checked with all the elements in STD program for printing multiple items in main window but unable to get all the items we are able to fetch only 1 item .
(&BSEG-BUZEI&,, &BSEG-SGTXT&,,,,&BSEG-DMBTR&)
2) I have also tried with external subroutine but it also didnot work.it is fetching the latest value.
Ex: if we have 3 items say 1,2,3 first 2 items are not getting fetched it is taking 3rd item and printing it straight away(Problem is it is not going to script for fetching the first item).
see the perform which i have used
/: PERFORM ITEMS IN PROGRAM ZTFI_ZNV20296
/:USING &BSEG-BUKRS&
/:USING &BKPF-BELNR&
/:USING &BSEG-GJAHR&
/:CHANGING &V_BUZEI&
/:CHANGING &V_SGTXT&
/:CHANGING &V_DMBTR&
/: ENDPERFORM
IL &V_BUZEI&,, &V_SGTXT&,,,,&V_DMBTR&
Please suggest me whetther we can call write_form from external subroutine. or is there any loop commands in SAP SCRIPT Form.
Regards,
JanaHi!
The LOOP is always within the printer program. In this case also.
Just check out the RFKORI35 include, the LOOP begins in the 215th line (in 4.6C).
SORT HBSEG BY BUKRS SORTP1 SORTP2 SORTP3 SORTP4 SORTP5
BELNR GJAHR BUZEI.
LOOP AT HBSEG.
* WHERE BUKRS = SAVE_BUKRS.
SAVE_BUKRS = HBSEG-BUKRS.
IF ( HBSEG-KUNNR = SAVE_KUNNR
AND NOT SAVE_KUNNR IS INITIAL )
OR ( HBSEG-LIFNR = SAVE_LIFNR
AND NOT SAVE_LIFNR IS INITIAL ).
CLEAR RF140-ELEMENT.
RF140-ELEMENT = '521'.
CALL FUNCTION 'WRITE_FORM'
EXPORTING WINDOW = 'MAIN'
ELEMENT = '521'
EXCEPTIONS WINDOW = 1
ELEMENT = 2.
You might try out to write your code within the 521 elemnt in the sapscript.
Regards
Tamás
Edited by: Tamás Nyisztor on Jun 12, 2008 3:34 PM -
Best / most popular software or scripts for adding search function to website?
I'm trying to find a good piece of software or script for implementing a site search function into our website. I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding. Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down. I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that. These are the primary needs of the website:
--Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages. The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc. The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
--We are trying to keep the price under about $50, or use a free solution
--The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago). We self-host both sites.
--Our server can't run PHP
--The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site. It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
--I do have a sitemap page already on it, if that matters or helps
Some of the ones I've found so far that looked the most promising include: Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
Forgive me if there is a better area to post this, if so let me know.For a static site, your options are:
Google ~ http://www.google.com/sitesearch/
Freefind ~ http://www.freefind.com/
Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
Error in shutdown script for bea weblogic
We have this error in the shutdown script of our bea weblogic:
./stopWebLogic.sh[33]: -Xms256m: not found.
using the Oracle OCI database driver
Shutdown initiated
The shutdown sequence has been initiated.the script is as follows:
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#!/bin/sh
# Weblogic start script for egovernment
# Based on Colin Brick's initial version
# Modified 02/04/03 - Colin Brick
# - included settings for Oblix from using SSO Assembly Test as example
# Set General environment variables (Should normally not be changed)
#Java settings
JDK_HOME=/opt/bea/jdk131/
export JDK_HOME
JAVACMD=java
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""
export JAVA_OPTIONS
WEBLOGIC_PORT=51080
#Bea settings
BEA_HOME=/opt/bea
export BEA_HOME
WEBLOGIC_HOME=/opt/bea/wlserver6.1
export WEBLOGIC_HOME
BEA_SECURITY_POLICY=/opt/bea/wlserver6.1/lib/weblogic.policy
export BEA_SECURITY_POLICY
#Oracle settings
echo "using the Oracle OCI database driver"
export ORACLE_HOME=/opt/oracle/product/8.1.7
export NLS_LANG=AMERICAN_AMERICA.UTF8
export ORACLE_CLIENT_VERSION=817
export ORACLE_API_VERSION=8
PATH=$PATH:$ORACLE_HOME/bin
SHARED_LIBRARY_PATH=$WEBLOGIC_HOME/lib/hpux11:$WEBLOGIC_HOME/lib/hpux11/oci$ORACLE_CLIENT_VERSION\_$ORACLE_API_VERSION:$ORACLE
_HOME/lib
PATH=$JDK_HOME/bin:$PATH
export PATH
# Set application specific variables
DOMAIN_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
domain_NAME=eGovStarters
SERVER_NAME=MyServer
WLS_PW=weblogic
# change to domain directory
cd $WEBLOGIC_HOME/config/$DOMAIN_NAME
# Allow other users in group to see created files - i.e. logfiles
umask 027
# Set system classpath initially to contain WebLogic product JARs
CLASSPATH=$WEBLOGIC_HOME:$WEBLOGIC_HOME/lib/weblogic.jar
#Set the shared library path
if [ -n "$SHLIB_PATH" ]; then
SHLIB_PATH=$SHLIB_PATH:$SHARED_LIBRARY_PATH
else
SHLIB_PATH=$SHARED_LIBRARY_PATH
fi
export SHLIB_PATH
# Start weblogic
# change to weblogic home
cd $WEBLOGIC_HOME
PATH=$WL_HOME/bin:$JAVA_HOME/jre/bin:$JAVA_HOME/bin:$PATH
$JAVACMD -classpath $CLASSPATH -Dbea.home=$BEA_HOME -Dweblogic.Domain=$DOMAIN_NAME -Dweblogic.Name=MyServer weblogic.Admin -ur
l t3://localhost:$WEBLOGIC_PORT -username system -password $WLS_PW SHUTDOWNIt has obviously something to do with the line
JAVA_OPTIONS=""-server -Xms1024m -Xmx1024m -Xmn320m -XX:SurvivorRatio=8 -Xverbosegc:file=/opt/bea/wlserver6.1/config/eGovStart
ers/logs/gc.log -Dweblogic.system.gc.enabled=false ""I googled for this Xms1024m, Xmx1024m and it turns out to be for memory management for the java virtual machine.
I don't know why it sais it can't find "-Xms256m" since it's not in the script.
Anyone with some experience in this field who can help me out?./stopWebLogic.sh[33]: -Xms256m: not found.
this can be produced by something like this:
javaoptions="-Xms256m" // or other option too
$javacmd $javaoptions
Now if javacmd has not been set, then $javacmd will be evaluated to the empty string, and the program to look for is the first part in $javaoptions, -Xms256m in our case. -
Script for getting mail if database is down
Hi Friends,
OS Version : IBM AIX 5,2
Oracle version : 9.2.0.7
I am executing the following script for getting mail alert if database is down. some how the script is not working
check_stat=`ps -ef|grep ${ORACLE_SID}|grep pmon|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -lt 1 ]
then
exit 0
fi
# Test to see if Oracle is accepting connections
$ORACLE_HOME/bin/sqlplus -s "/as sysdba" > /tmp/check_$ORACLE_SID.ora
select name from v$database;
exit
# If not, exit and e-mail . . .
check_stat=`cat /tmp/check_$ORACLE_SID.ora|grep -i error|wc -l`;
oracle_num=`expr $check_stat`
if [ $oracle_num -ne 0 ]
then
mailx -s "$ORACLE_SID is down!" [email protected] < /tmp/check_$ORACLE_SID.ora
exit 16
fi
I am saving this as .sh file and executing at command prompt. It is just hanging, but not throwing any error.
I would like to know if there is anything to be modified in the script or please provide me any such script. Thanks in advanceHI there.
I have a script I use that works really well. It sends out an email only if the database is down and also reads an ini file to process a blackout period and a priority level of the database... High priority databases are monitored every 5 minutes and Medium priority databases every hour.
There are two scripts, the shell script and the .ini file and I have two cron entries...
Check script:_
#!/bin/ksh
# check_oracle_status.sh
# Script to check if Oracle db's are up and running.
# Script is passed a priority field and reads check_oracle_status.ini
# to determine which db's to check. If db is down an email is sent.
# Priority Levels:
# H - Checks db's with "H"igh Priority every 5 minutes (cron)
# M - Checks db's with "M"edium Priority every hour (cron)
# L - db's with "L"ow Priority currently not checked
# Script Change History:
# ======================
# October 29th, 2009 - Initial Creation
# Set environment
export SCRIPTHOME=/opt/oracle/admin/scripts
export INIFILE=$SCRIPTHOME/check_oracle_status.ini
export PRIORITY=$1
. $HOME/.profile
db=`grep -i ":$PRIORITY" $INIFILE | cut -d":" -f1`
check_database()
sqlplus <<! > $SCRIPTHOME/check.out
/ as sysdba
select * from dba_data_files;
exit
grep ORA- $SCRIPTHOME/check.out > $SCRIPTHOME/error.out
if (( $? )); then
echo ""
else
mailx -s "Oracle instance $i is currently UNAVAILABLE" +<email address>+ < $SCRIPTHOME/error.out
fi
for i in $db ; do
fields=`grep $i $INIFILE | awk -F':' '{ total = total + NF }; END {print total}'`
export ORACLE_SID=$i
if [ $fields -gt 2 ]; then
BLACKOUT_START=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f3`
BLACKOUT_END=`grep -i "$ORACLE_SID" $INIFILE | cut -d":" -f4`
CURRENT_HOUR=`date +%H`
CHECK_BASE=YES
if [ $BLACKOUT_START -gt $BLACKOUT_END ]; then
(( $CURRENT_HOUR >= $BLACKOUT_START || $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
else
(( $CURRENT_HOUR >= $BLACKOUT_START && $CURRENT_HOUR <= $BLACKOUT_END )) && CHECK_BASE=
fi
if [ -n "$CHECK_BASE" ]; then
check_database
fi
else
check_database
fi
done
rm $SCRIPTHOME/check.out $SCRIPTHOME/error.out
INI File:_
oracle1:L
oracle2:M:17:08
oracle3:M
oracle5:M:17:08
oracle6:H
oracle7:M:17:08
oracle8:M
oracle9:M
Where oracle1,2,3 etc is your sid
L M and H your priority level
17 is blackout start (5 PM)
08 is blackout end (8 AM)
Note: Blackout is just a start hour and an end hour and must contain both or none and my script can only process one blackout per database. I guess if you
needed a second blackout you could add another line with different times for that sid
Cron entries:_
# Check Oracle Status
# The check_oracle_status.sh script monitors "H"igh priority databases every 5 minutes
# and "M"edium priority databases every hour
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh H > /dev/null 2>&1
0 * * * * /opt/oracle/admin/scripts/check_oracle_status.sh M > /dev/null 2>&1
Not sure if you require blackouts or priority levels but this setup works great at our site.
Hope this helps. -
How to determine the pixel positions of a line profile
Hello,
I was wondering if there was any possible way , when using the NIVison line profile, to get information on the actual position of each and every pixel the line profile used for its intensity values. Because i am using line profiles to reconstruct an image and i am getting pretty bad aliasing!Hi Big_Al,
The Line Profile function is based around the IMAQ Line Profile VI, which takes a two parameters; a reference to the image we want to analyse and the co-ordinates of interest. It returns Line Information, the Global Rectangle, and our main value of interest, the Line Graph.
The Line Graph
This is a standard LabVIEW waveform cluster which is made up of three components: x0 (The initial x position of the selected line), dx (The increment value, which will default to '1' as we can't have half a pixel/two pixel voids in images) and finally Pixels Line which is an array of the pixel values we receive.
Now, since we know the start position of the line (x0), we can simply iterate through the Pixels Line array to grab these invidual values per pixel. For example, if the line was five pixels long, Pixels Line would be comprised five elements. The first (0th) position in the array will be the x0 pixel position, then after that we'd have the x0+1 pixel value etc.
Using this information, we can infer the positions of each of these pixels.
Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD) -
Disaster Recovery Scripts for Managed Server MSI Startup
I am trying to get some custom start scripts created for each of my managed servers in the event the admin console is down or server gets hosed. We use nodemanager to start the managed servers in a Windows environment. I have about 8 managed servers and they all use the same nodemanager classpath but all have different server start arguments (different memory settings, etc....) so I need to make different custom scripts for each.
Verbose Garbage Collection to Determine Heap Size .....this thread by Jay has been very helpful but so far I am just getting kicked back to the syntax screen like something is wrong in my script. Attached is the script and the output when I run it. Any help would be appreciated...thanks.
startManagedFPCE1.cmd contents
java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=beaadmin -Dweblogic.management.password=beaadminxxx -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Results of running above script:
C:\Oracle\Middleware\user_projects\domains\SIT11\servers\FPCE1>java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=b
eaadmin -Dweblogic.management.password=beaadminsit11 -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle
\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\
sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\M
iddleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\dep
recated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options"bharat nagwani" <[email protected]> wrote:
>
Hi,
Configuration: Weblogic 8.1SP2 on Windows 2000, 1 admin server and 14
managed
servers
whats the right way from these 2 scenarious to create a domain on managed
server
1. create domain on managed server using configuration wizard. Then point
to this
domain from administration server remote start tab(root directory). This
is what
we do so far.This is the best way to create managed servers for your domain.
>
2. Just enter user_projects/domains folder/$domain name$ in remote start
tab(root
directory)
on admin server console and when you start the managed server from
admin console
the domain folder and files will be created.
Yes, the managed server is started in this case at the root directory you specified.
The difference is in the
1. first case we see all scripts like startManagedWeblogic, setenv, boot.properties
etc
this may help(we still dont know) if one wants to bring up managed
server
manually using
startManagedServer.bat without using node manager.Yes, that is correct. You will need to edit the startManagedServer.bat to include
the admin server URL, username and paswword..
>
2. second case only 2-3 files get created like msi-config.xml and SerializedSystemIni.dat
Basically first case is superset of second case.
What is the experience of people in this regard?
thanks much
bharat -
WLST Script for Disabling/Enabling Global SLA Alerting.
Hello,
I wanna find a way from the WLST to disable and enable the SLA Alerting which is under Operations-->Global Settings in the sbconsole. This is the global setting not per sercive!
I have found how to create a session and how to disable the alerts per service, but i cannot find which MBean is accessed when throught the sbconsole the global SLA alerting is disabled/enabled.
Can anybody point me to the right direction or help me to find how to do this from WLST.
Thanks.Hi Ganesh,
I have finally created the script i was looking for.. I copy-paste it below as a sample... For sure you need all the lines of code until the comment i have put "#####you need this code above"
now the code you see below the comment is for disabling the global sla alerting... you have to write a bit to target a specific service that you want to disable.
Keep in mind that after you make your change you hava to include those lines in order to activate the changes and disconnect and exit..
sessionMBean.activateSession(sessionName, "enable SLA")
disconnect()
exit()
If you have access to oracle support search for wlst script for osb it has a lot and you can find how to target a specific service...
I hope that i help a little bit
import sys
import wlstModule
from com.bea.wli.sb.management.configuration import SessionManagementMBean
from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
#from com.bea.wli.sb.management.configuration import ProxyServiceConfigurationMBean
from com.bea.wli.sb.management.configuration.operations import OperationsConfigMBean
from com.bea.wli.config import Ref
from com.bea.wli.sb.util import Refs
# Connect (username, password, URL)
connect('weblogic', 'password', 't3://localhost:7001')
domainRuntime()
# Create a session name
sessionName =sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
print('... after session. Session is: ', sessionName)
# Get the session MBean and create a session
sessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
print('-debug-this is the sessionbean',sessionMBean)
print('SessionMBean is: ', sessionMBean)
sessionMBean.createSession(sessionName)
print(String('Session was created ... ').concat(sessionName))
#####you need this code above
domainCustom()
cd('com.bea')
#path='com.bea:Name=OperationsConfig.'+sessionName+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean'
cd('com.bea:Name=OperationsConfig.'+str(sessionName)+',Location=AdminServer,Type=com.bea.wli.sb.management.configuration.operations.OperationsConfigMBean')
set('DomainSLAAlertingEnabled',java.lang.Boolean("true"))
# Now commit (activate) the changes
sessionMBean.activateSession(sessionName, "enable SLA")
disconnect()
exit() -
Using IMAQ Image Display control vs IMAQ WindDraw for large image files
Hello All;
I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger). My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds. My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference. For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods? How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?). Thanks.
DJHUse a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
Bruce
Bruce Ammons
Ammons Engineering
Maybe you are looking for
-
Are there any 3rd party tools which provide Microsoft Azure IaaS diagnostics?
Are there any 3rd party tools currently, which can be used for giving detailed diagnostics Information about the IaaS environment (like on VM's, Virtual Network etc.) in a detailed report format periodically? Please note that I am looking for any suc
-
ITunes won't run because of Quick Time issue
I can't get Quick Time to work, so I can use my ITunes. I have tried to reinstall. but it just gives me an error sending report. Any help, pleae.
-
[svn] 4612: Flex SDK Bug Fix - Added scaleGrid support to BitmapGraphic
Revision: 4612 Author: [email protected] Date: 2009-01-21 16:58:51 -0800 (Wed, 21 Jan 2009) Log Message: Flex SDK Bug Fix - Added scaleGrid support to BitmapGraphic SDK-17289 - BitmapGraphic source embed does not respect scale9 grid when scaling Bitm
-
Friends, I have a JTable with 5 rows and 4 columns now I want to set the Background color of cells as I select the set of cells it changes the background color. the problem in the below code is I have to select the individual cells to set the bg. can
-
Change layout for text email to landscape instead of potrait
I success send the text report to email. But how can I change layout for my text email to landscape instead of potrait. I am using FM SO_DOCUMENT_SEND_API1 to send an emails.