'Get Response' APDU command in a script for apdutool
Dear all,
I'm facing some problems with apdutool (javacard 2.2.2 distribution) in executing the 'Get Response' command.
In fact its syntax differs from the one specified for other APDU commands accepted by apdutool, as Lc is replaced by the expected response lenght, i.e. by Le.
I tried inserting a fake P3 (Lc), but I always get ParseException errors.
All previous commands in the script are properly executed, including the one for which the subsequent 'Get Response' is tried. In particular, the SW2 byte returned by the latter command contains the right expected length.
I'm working with T0 algorithm and non-extended mode is specified in the APDU script.
Thank you very much to anyone who could help.
Best regards
Marco
Hi,
You could ensure that both of the text fields are not empty on your 'dashboard' before executing the FS00 tcode. This would negate the popup from ever appearing.
To do this you can use the "IF <text field control ID> Is Empty" statement in your script and then output a custom error message to another text box if the condition is true. then use an "IF <text field control ID> Is NOT Empty" statement to copy the value/s execute the FS00 tcode if the condition is true.
Now if you're going to check multiple fields for entries before executing the FS00 you'll have to get a little more creative and do something like I did in one my scripts (thanks again to Steve Rumsby for the tips) and create a 'check field' where you can enter values for items checked successfully and then use a little bit of javascript to count up the checks and check the result before executing the next part of the script.
Another idea is to check for the existence of the popup and navigate past it in your script, to do this you can use the "IF <control ID> control exists" statement.
Either one should work.
Similar Messages
-
Using Echo Command in PowerShell Script for Configuration Item
Hello All,
Before you tell me to post my PowerShell question to the PowerShell Forum, please know that the PowerShell portion of my task works just fine. It is the SCCM portion of my task that keeps failing, so that is why I am here. To give some background...
There are two servers in our SCCM test environment. Both the SCCM server and SQL DB server are 2012, patched and updated.
Test servers in my Device Collection being used for running Baselines and Reports against are 2008R2 and 2012, patched and updated.
I have created a Configuration Item that checks to see if the FTP Server Role Feature has been installed on a 2008 or 2012 server. To do the check, I am using the following PowerShell script:
(get-windowsfeature -Name Web-Ftp-Server).Installed
When I log into my 2008R2 and 2012 test servers, and run this command directly on the server, it will return a "True" if the FTP Server Role Feature is installed on either server, and a "False" if it is not installed. Basically,
it works as advertised.
When I setup my Configuration Item and then deploy my Baseline, or run a report against my device collection of test servers, SCCM will return a correct response (True or False) for the 2012 test server, but throws the following error for the 2008R2
server:
0x87df00329 application requirement evaluation or detection failed
Google searches for this have not been very helpful.
Now, when I created the Configuration Item and referenced PowerShell, the configuration screen has the following note:
"Specify the script to find and return the value to be assessed for compliance on client devices. Use the echo command to return the script value to Configuration Manager."
Since I did not include an echo command in my PowerShell script above, I figured that was my problem, so I did the following:
Logging onto both of my test servers (2008R2 & 2012) I was able to successfully run the following PowerShell commands and get the expected responses of True or False:
(get-windowsfeature -Name Web-Ftp-Server).Installed | echo
(get-windowsfeature -Name Web-Ftp-Server).Installed | write-output (http://technet.microsoft.com/en-us/library/hh849921.aspx)
(get-windowsfeature -Name Web-Ftp-Server).Installed | write-host (http://technet.microsoft.com/en-us/library/ee177031.aspx)
However, when I use any of these PowerShell commands in my Configuration Item, NEITHER of my test servers returns a response to the SCCM server.
When I check the report, both servers show as "Unknown" and when I click on the number 2 (as in 2 servers unknown), the following report page (List of unknown assets for a configuration baseline) has absolutely no data/information at all.
So...I am at a loss.
SCCM tells me to use an echo command to return a script value to Configuration Manager. The PowerShell scripts above, with the various echo related commands, work just fine on the servers themselves, but they return no information when run via SCCM.
What am I missing?
Any help will be appreciated.
Thanks in advance for your time.Sorry for my ignorance, but I don't understand. (I forgot to mention that I am new at both PowerShell and SCCM.)
After I change the PowerShell script to add the echo/write-output/write-host cmdlet, I open the ConFig Item and "Clear" the PowerShell script and then re-add it. When I do that, it correctly shows the change in the ConFig Item.
Next I open the Baseline, then open the ConFig Item within the Baseline to make sure the change is reflected there as well, which it is.
I then deploy the Baseline to my Device Collection. After that, I run a report against the Baseline and Device Collection and it returns the "Unknown" result.
If I open the PowerShell script and remove the echo/write-output/write-host cmdlet, then go through the rest of the process of updating and reporting, the result it returns changes, showing one server in compliance and the other server out of compliance,
which leads me to think that all changes have taken correctly.
Does that sound right? If I manually deploy the Baseline, is that the same as the client retrieving policies from the management point?
Sorry to be so thick but I'm learning as I go.
Thanks again for your help. -
Is there a method to change the Start Screens number of rows (similar to Windows 8.0's use of the Explorer\Scaling\MonitorSize in registry). Possibly by forcing the switch for "Show More Tiles" via script etc? This is to enable the device with
Windows 8.1 to be built using a deployment methodology like SCCM and have the Tiles correctly configured as required for a standard look and feel across devices. I do not know why all these switches are not represented in either WMI or the registry to enable
the customization of look and feel out of the box for enterprise deployments.
Thanks for any assistance possible.Hi,
You can try steps in this article.
How to Change Number of Apps Tile Rows on "Start" Screen in Windows 8 and Windows 8.1
http://www.eightforums.com/tutorials/2690-start-screen-metro-apps-change-number-rows-windows-8-a.html
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
completely understand the risk before retrieving any software from the Internet.
Hope this could be helpful.
Kate Li
TechNet Community Support -
Can we get the full command and syntax list for the DIAdem - Matlab ActiveX Interface?
Hi,
I am trying to utilize the DIAdem - Matlab Active X interface to open files for analysis in Matlab. In order to do that, I need to pass a string from DIAdem to Matlab. This does not work with the PutChannel function, since that only seems to work with doubles. I noticed that ScriptLibrary.ocx contains many functions that are not described anywhere, such as 'PutCharArray'. Any chance that we could have this list posted with the other info on this page:
http://digital.ni.com/public.nsf/allkb/1706BA4C65A8533686256C630062DD03Hi Matt,
This ScriptLibrary.ocx is not longer a supported approach for interfacing with MatLab. The preferred method now is to directly use the functions exposed by MatLab's ActiveX server, along with the "ChnToVariant()" and "VariantToChn()" commands in DIAdem. You can get an idea of this approach by reviewing the following example that ships with DIAdem:
"Communicating with MATLAB"
Unfortunately, this example does not show how to pass string values back and forth (though it would likely work to pass a string channel). Whether this is possible will depend on the functions MatLab makes available in its ActiveX server to send or receive string scalars or vectors.
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
The above comes up when I am opening Firefox stating that the script has stopped. Please advise.
EmjayelDo a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
If there are problems with updating then best is to download the full version and uninstall the currently installed version and delete the Firefox program folder to remove any leftover files.
Download a fresh Firefox copy and save the file to the desktop.
* Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
Uninstall your current Firefox version if possible.
*Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
*It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
It may not be necessary to create a new profile, so first try if it works with your current profile and if not then create a new profile.
*http://kb.mozillazine.org/Profile_folder_-_Firefox
*http://kb.mozillazine.org/Profile_backup
*http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall -
Error installing iLife 09 - "run preflight script for Registration"
Hi,
I am trying to install iLife 09 and am getting the error above (run preflight script for registration) and cant figure out how to fix it. I have run a permissions repair, rebooted and it just doesnt want to let me install. My Install.app is present in /System/Library/CoreServices/Installer.app and have installed all the latest updates for 10.5
Any ideas?
Thanks
Ian
Edit: I see this could be in the wrong forum - my apologies - please move to the correct forum.
Message was edited by: BarnRacoonI'm having the same problem. I cannot instal Ilife on my new Imac.
I first tried to install all programs together via the installation guide. but it kept crashing without any reason.
after that I tried to install each program seperately via the customized installation guide but again the installation guide crashed.
for each program the following messages appeared:
run preflight script for iphoto, Imovie etc.
So what can I do about this. The warning message said I had to contact the manufacturer.
Thanks -
Prerequisite script for Exadata Discovery using wrong domainname command?
Does the Prerequisite script for Exadata Discovery use the Wrong domainname command? It uses domainname, should it be using dnsdomainname?
The script is found in this MOS note: Prerequisite script for Exadata Discovery in Oracle Enterprise Manager Cloud Control 12c [ID 1473912.1]
My System administrator wrote "what the precheck script says it is watching out for, is NOT what it’s checking, and what it is checking is NOT needed.
They say they need the “domain name” to be set, but what they’re checking is the NIS domain name. This is echoed in the man page for “domainname” …
The man page even has a warning NOT to use “domainname” to check the DNS domain"
So is the pre-check script wrong, or is the running OEM/agents/discoverer going to look for the apparently doaminname set value within a NIS construct?
The sysadmins are trying to avoid having anything set with NIS, for fear it confuses a new admin or consultant.
Thanks in advance for your thoughts. -- Shaun
PS, if it is wrong, how do we get it corrected with Oracle?This answer came in from the Oracle Support Community via an Oracle employee:
According to a remark that is attached to the note that you mention, your concerns are correct:
"domainname" command does indeed return NIS domainname.
The DNS domain name that we actually want to use should be checked by "dnsdomainname" command.
[root@hostname ~]# dnsdomainname
hostname.example.com
[root@hostname ~]# domainname
(none)
[root@hostname ~]# domainname -h
Usage: hostname [-v] hostname set hostname (from file)
domainname [-v] nisdomain set NIS domainname (from file)
hostname [-v] [-d|-f|-s|-a|-i|-y|-n] display formatted name
hostname [-v] display hostname
The response to the remark explains that we are testing this in our internal environment. We have found one issue with this check. The NOTE authors plan to upload the new version of the script when the updated script is fully tested.
At your service,
Dave M. -
APDU commands for Globalplatform card
Hi,
I'm trying to develop embedded software that talks to a Oberthur Cosmo 64 card via low level APDU commands. I've looked at the Globalplatform 2.1.1 specs as well as the cosmo 64 technical brief, but it seems that there are only a few APDU commands. I've only worked with native cards before this, and native cards seem to have a lot more commands. For example, I can't even find a "Get Challenge" command nor any kind of authentication/key generation/pin verification commands.
Would like to know how I can get started just sending simple APDU commands for key generation, challenge-response, authentication, etc?galapogos wrote:
Well I only see 10 commands under Part IV(APDU Command Reference) of the GPP 2.1.1 specs.
However when I see Appendix D I realize there's actually an initialize update and external authenticate APDU command, neither of which are found in Part IV.Yes, the commands for secure channel protocol are located in the Appendices. One can argue if this commands should be listed in APDU Command Reference, but GP Committee wanted to make is as flexible as possible in case another SCP is added, with different commands.
From what I've read so far in Appendices D/E, it seems that the difference is that
1) SCP01 supports mutual auth while for SCP02, only the card auths the host, with an option for the reverse.
2) For SCP01, card ensures host is genuine, but no mention of the reverse to be true. For SCP02, both host and card must be ensured to be genuine.
3) For SCP01, data from host to card is not susceptible to sniffing(encryption?), but no mention of the reverse to be true. For SCP02, both directions are not susceptible to sniffing.You are referencing the R-MAC option. It is only present in SCP02. There is no encryption from the card side (smthg like R-ENCRYPTION), you would need to handle this in your Applet. Be aware that R-MAC is optional, depending on the security policy of the issuer. For example in JCOP, only C-MAC and C-DECRYPTION is supported. Another differences between SCP01 and SCP02:
- The DEK in SCP02 is a session key, and in SCP01 it is static
- The INITIALIZE UPDATE command is different regarding the P2 parameter and the structure of the response
In the latest version of GP 2.2 SCP01 is deprecated.
Seems like other than the initial authentication, SCP02 is always more secure than SCP01?I would only conclude this if R-MAC is supported in SCP02.
Also, where can I find Java Card 2.2.1/2.2.2 specs? I'm not interested in using the API since I'm developing embedded firmware, so I need to talk to the card directly via APDU commands.http://java.sun.com/products/javacard/specs.html -
Error message: "Warning: unresponsive script". Afterward, the system freezes and will then crash. Crash reports have been submitted many, many times without response. I have tried the fore-mentioned solutions with either no results or very bad results which I filed a report but did not receive an answer. The application to block scripts actually worsened the problem and I could not correct the situation for a while (no response from Firefox, at all). I have also been through this procedure without any one contacting me, AT ALL.
== URL of affected sites ==
http://http://www.facebook.com (always) and www.YouTube.com (sometimes)There does appear to be any support whatsoever from mighty "non caring" FIREFOX & people are getting fed up. We may as well try another system, if they can't be bothered to provide any support for their system, we can't be bothered to use their system.
Brianeng -
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. -
Could not get response for challenge?
I could succefully use podcast capture to post video to groupblog.
But when I used command line "pcastaction groupblog", it always said that
"ERROR: could not get response for challenge"
But "pcast_post2groupblog" works well for me. I wonder why this happened?
P.S:
I've updated my server to the latest version.If you look at the workflow, there is probably something in there like this:
<string>--otp=##Groups Administrator Username:Groups Administrator Password##</string>
That's a one time pad. I ran into this when troubleshooting our iTunes U workflow from the command line. To get my iTunes U stuff to work from the command line I had to generate a OTP each time, like so:
$sudo pcastconfig --add_access "token" --properties "iTunes U Shared Secret"
Except yours will be different because it's for group blog.... if indeed this is your problem. I only guessed this looking at the stock blog workflow, it uses an OTP.
Hope that was helpful and not way off the mark. -
Shell scripting for sftp command
Guy's
you may wondering how i can ask these question in this forum,actually it's related to abap,we have create
unix script that will upload file from remote sftp server
and put it into AL11 transcation (take any location from
your point of view),but instead of using shell script
that is having ftp the want to go for sftp,for your undersatnding following thing's i am working with
<b>Tcode</b>:sm69,sm49
<b>function module</b>:SXPG_COMMAND_EXECUTE
script that need to have sftp instead of ftp
Connecting to ftp server to get the file on the current server
SOURCE_FILE_NAME=TSPAR_`date +%Y%m%d`.txt
TARGET_FILE_NAME=TSPAR_`date +%Y%m%d`.txt
cd /interf/torrance/TCW/FI
ftp -nv << EOF
open 10.252.8.73
user sanju sanju
cd /home/sanju
get $SOURCE_FILE_NAME
EOF
cp SOURCE_FILE_NAME TARGET_FILE_NAME
rm SOURCE_FILE_NAME
<b>note:</b>above script is working ,but we want' sftp not ftp
don't try above script as such,because value's are
changed for sake of securityTry to execute same command using your OS .
ksh + x ( is for debugging ) shell script and see where its failing . I also did the same thing in last project as i have written 5 different shell scripts , for backup , append file , sending file to FTP location and then create email ...
Hope thisll help you
Thanks -
I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes: Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufacturer for assistance. I am on a MacBook pro running 10.5.8 OS. Has anyone seen this before and how can I get it resolved.
Thanks for your help in advance....Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
Thanks! -
Here are scripts for getting OAS302 working on RedHat 6.0
People have said this doesn't work. It works. It's just the
owsctl that doesn't work. I'm not saying that oas302 on RedHat 6
is the best solution anyone could come up with, but it does work,
and if you want to do it, here are some scripts that you can feel
free to modify and use as you wish. Various variables should be
updated with however you system is configured. Remember to start
the wrb (i.e. the second script) before you start any listeners.
Linux has a tendency to crash if you don't kill -KILL all the wrb
processes at the same time (i.e. the kernel gets an uncaught
exception and dies).
Erik
<disclaimer>
I do not guarantee these will work. I do not guarantee that
they will not destroy something important. I assume no liability
for what these scripts may or may not do. Use them at your own
risk. There is no expressed or implied waranty.
</disclaimer>
#!/bin/ksh
# Script to start the oraweb http servers to listen for requests
# because owsctl is kind of unpredictable under RedHat 6.0
# set this variable to be the directory that the webserver
# configuration drivetoryies are under (i.e.
# /db/app/oracle/admin/ows/web/httpd_my.host.com)
WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
LISTENER="$2"
if [[ -z "$LISTENER" ]]
then
echo "No listener name to start."
echo "Usage: listen {start|stop} listener"
echo "e.g.:"
echo " listen start admin"
exit 1
fi
case "$1" in
start)
OMN_ADDR=UDP:worf.gcg.com:2649
OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
OWS_ORAWEB_FREEDOMX=1
export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
if [[ -f "$CFG_FILE" ]]
then
oraweb -C $CFG_FILE
else
echo "Could not find config file for $LISTENER:"
echo " $CFG_FILE"
exit 1
fi
stop)
PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
if [[ -f $PID_FILE ]]
then
kill `cat $PID_FILE`
if [[ $? -ne 0 ]]
then
echo "Could not stop oraweb $LISTENER process."
exit 1
fi
else
echo "Could not find oraweb $LISTENER PID file:"
echo " $PID_FILE"
exit 1
fi
echo "Usage: listen {start|stop} listener"
echo "e.g.:"
echo " listen start admin"
exit 1
esac
#!/bin/ksh
# Script to start up the Oracle Web Request Broker (wrb)
# processes manually because owsctl doesn't work on RedHat
# Linux 6.0
TMP_FILE=/tmp/wrb.pids
case "$1" in
start)
SLEEP=3
if [[ -f "$TMP_FILE" ]]
then
echo "$TMP_FILE exits. Make sure the wrb is not
already"
echo "running, remove $TMP_FILE, and run this script
again."
exit 1
fi
if [[ -z "$ORAWEB_HOME" ]]
then
echo "ORAWEB_HOME is not set. This environment variable"
echo "should be set to the directory where the oracle was"
echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
exit 1
fi
OMN_ADDR=UDP:my.host.com:2649
OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
# about it in a newsgroup. Supposedly
# it makes the oas run faster
export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
PATH=$ORAWEB_HOME/bin:$PATH
mnaddrsrv -D &
echo -n "$! " > $TMP_FILE
sleep $SLEEP
mnrpcnmsrv &
echo -n "$! " >> $TMP_FILE
mnorbsrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbcfg &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrblog &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbasrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbahsrv &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbroker &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbvpm &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbfac &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
wrbdm &
echo -n "$! " >> $TMP_FILE
sleep $SLEEP
stop)
kill -KILL `cat $TMP_FILE`
if [[ $? -ne 0 ]]
then
echo "Could not stop wrb processes. The PIDs are in"
echo "$TMP_FILE. If these are running, please"
echo "stop them manually."
else
rm -rf $TMP_FILE
fi
echo "Usage: wrb {start|stop}"
exit 1
esac
nullHi Erick,
Your scripts for running the OAS302 on 6.0 linux had been very
helpful.
In fact, I dont know what would I have done without them.
Now I am able to run the listeners and even able to create the
packages and users in the database via the OAS 3.0.2 but the
problem starts when accessing a procedure in the database using
the pl/sql agent. By the way i am using Oracle 8.0.5.1 RDBMS and
its home is different than the webserver home.
The browser just does nothing and even does not log any error
message ,I have to stop it after a while but all my other
catridges are working.
any insight will be appreciated.
thanks,
Vikram ( Ironically enough I work for Oracle).
Erik Nielsen (guest) wrote:
: People have said this doesn't work. It works. It's just the
: owsctl that doesn't work. I'm not saying that oas302 on RedHat
6
: is the best solution anyone could come up with, but it does
work,
: and if you want to do it, here are some scripts that you can
feel
: free to modify and use as you wish. Various variables should
be
: updated with however you system is configured. Remember to
start
: the wrb (i.e. the second script) before you start any
listeners.
: Linux has a tendency to crash if you don't kill -KILL all the
wrb
: processes at the same time (i.e. the kernel gets an uncaught
: exception and dies).
: Erik
: <disclaimer>
: I do not guarantee these will work. I do not guarantee that
: they will not destroy something important. I assume no
liability
: for what these scripts may or may not do. Use them at your own
: risk. There is no expressed or implied waranty.
: </disclaimer>
: #!/bin/ksh
: # Script to start the oraweb http servers to listen for
requests
: # because owsctl is kind of unpredictable under RedHat 6.0
: # set this variable to be the directory that the webserver
: # configuration drivetoryies are under (i.e.
: # /db/app/oracle/admin/ows/web/httpd_my.host.com)
: WEB_HOME=/db/app/oracle/admin/ows/web/httpd_my.host.com
: LISTENER="$2"
: if [[ -z "$LISTENER" ]]
: then
: echo "No listener name to start."
: echo "Usage: listen {start|stop} listener"
: echo "e.g.:"
: echo " listen start admin"
: exit 1
: fi
: case "$1" in
: start)
: OMN_ADDR=UDP:worf.gcg.com:2649
: OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
: OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
: OWS_ORAWEB_FREEDOMX=1
: export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FEEDOMX
: CFG_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.cfg
: if [[ -f "$CFG_FILE" ]]
: then
: oraweb -C $CFG_FILE
: else
: echo "Could not find config file for $LISTENER:"
: echo " $CFG_FILE"
: exit 1
: fi
: stop)
: PID_FILE=$WEB_HOME/$LISTENER/config/sv$LISTENER.pid
: if [[ -f $PID_FILE ]]
: then
: kill `cat $PID_FILE`
: if [[ $? -ne 0 ]]
: then
: echo "Could not stop oraweb $LISTENER process."
: exit 1
: fi
: else
: echo "Could not find oraweb $LISTENER PID file:"
: echo " $PID_FILE"
: exit 1
: fi
: echo "Usage: listen {start|stop} listener"
: echo "e.g.:"
: echo " listen start admin"
: exit 1
: esac
: #!/bin/ksh
: # Script to start up the Oracle Web Request Broker (wrb)
: # processes manually because owsctl doesn't work on RedHat
: # Linux 6.0
: TMP_FILE=/tmp/wrb.pids
: case "$1" in
: start)
: SLEEP=3
: if [[ -f "$TMP_FILE" ]]
: then
: echo "$TMP_FILE exits. Make sure the wrb is not
: already"
: echo "running, remove $TMP_FILE, and run this script
: again."
: exit 1
: fi
: if [[ -z "$ORAWEB_HOME" ]]
: then
: echo "ORAWEB_HOME is not set. This environment variable"
: echo "should be set to the directory where the oracle
was"
: echo "lives, i.e. /app/oracle/product/8.0.5/ows/3.0"
: exit 1
: fi
: OMN_ADDR=UDP:my.host.com:2649
: OWS_ADPCFG="$ORAWEB_HOME/admin/adpspy.cfg"
: OWS_ADPSO="$ORAWEB_HOME/lib/ndwfs.so"
: OWS_ORAWEB_FEEDOMX=1 # I have no idea what this does; I read
: # about it in a newsgroup. Supposedly
: # it makes the oas run faster
: export OWS_ADPCFG OWS_ADPSO OMN_ADDR OWS_ORAWEB_FREEDOMX
: PATH=$ORAWEB_HOME/bin:$PATH
: mnaddrsrv -D &
: echo -n "$! " > $TMP_FILE
: sleep $SLEEP
: mnrpcnmsrv &
: echo -n "$! " >> $TMP_FILE
: mnorbsrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbcfg &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrblog &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbasrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbahsrv &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbroker &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbvpm &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbfac &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: wrbdm &
: echo -n "$! " >> $TMP_FILE
: sleep $SLEEP
: stop)
: kill -KILL `cat $TMP_FILE`
: if [[ $? -ne 0 ]]
: then
: echo "Could not stop wrb processes. The PIDs are in"
: echo "$TMP_FILE. If these are running, please"
: echo "stop them manually."
: else
: rm -rf $TMP_FILE
: fi
: echo "Usage: wrb {start|stop}"
: exit 1
: esac
null -
Power Shell Script for getting the list of members of a particular collection group
Hi Group
I am looking for a powershell script for the below manual process in sccm2012. please help
Obtain the list of “All Users Group1” collection that have been defined as a Primary User of a device, and what that Users ShortName and Device name is
Obtain the list of user from Active Directory that have their “Title” attribute equal to “Non-Employee” (samAccountName)
For each user that is returned from AD, determine if they are assigned as a Primary User of a Device and write the Device name to a file
Continue to append all of the applicable Device names to the file
End Result = List of all Devices that have Users that have their AD Attribute “Title” equal to “Non-Employee”
thanks
VARHi,
The Cmdlets below should be helpful for you to write the script. You could have a look.
Get-CMUser
Get-CMUserDeviceAffinity
Get-ADUser
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.
Maybe you are looking for
-
Sensors Not Working. Please help!!! :(
I have got a new BB z10 and its Sensor doesnt seem to be functioning. When I take the call the take the headseat near my ear, the screen doesnt sleep automatically. similarly when I take the phn back from ear it doesnt wake up. Is this a software is
-
My MBA now just goes to the apple logo on the grey screen but no further
My MBA now just goes to the apple logo on the grey screen but no further... I did some updates on Office but it did not freeze on install and recently I installed Joost. I thought about booting it from a disc but now I have a disk stuck in my MAB sup
-
Removing Members from Excel Add-in (or Smartview) Member Selection Options
The users of my system have write access to some scenarios, read access to others, and no access to the rest. I would like the Scenarios for which the users have no access to not show up in the member selection options in Excel Add-in (similar to how
-
After downloading IOS 7, my iPad 2 will not change orientation when I rotate it. It is always in portrait position, and this is awful for me because I use the landscape position all of the time. Can anyone please help me?
-
Hi, I have a MacBook Pro. It is plugged in and charging but will not switch on. I try pushing ctrl, shift, alt and power together then release and press power again. The laptop goes to a white screen but switches off straight away. Any ideas?