SIMPLE login script install of zfd4 agent?
Is there is simpler way of installing the zfd4 agent via a login script when
I'm not using an intermediate tier or use the application explorer. The
login script examples I've found onlnie (and information in the Novell docs
and Novel Press books) seem complex and frought with pitfalls...
Thanks,
KB
> I'm reviewing this TID; I may be able to do this on my own. However, if
> anyone has an example, working "simple" login script they could post as
an
> example, it would be REALLY appreciated....
>
> Thanks!
> KB
> "KB" <[email protected]> wrote in message
> news:mHgfg.738$[email protected]..
> > Forgot to mention - I want to run this in silent mode, and need to
handle
> > the issue where someone already has the agent installed...
> >
> > Thanks,
> > KB
> >
> > "KB" <[email protected]> wrote in message
> > news:Dfgfg.703$[email protected]..
> >> Is there is simpler way of installing the zfd4 agent via a login
script
> >> when I'm not using an intermediate tier or use the application
explorer.
> >> The login script examples I've found onlnie (and information in the
> >> Novell docs and Novel Press books) seem complex and frought with
> >> pitfalls...
> >>
> >> Thanks,
> >> KB
> >>
> >
> >
>
>
Hi,
your Login Script must be seen like this:
#z:exist c:\programme\novell\zenworks\nalwin32.exe
if "%ERRORLEVEL"="0" THEN GOTO NOTHING
#z:\zfdagent\agent.bat
NOTHING:
END
the agent.bat is a batch File to install the agent in silent mode
it looks like that:
msiexec /i z:\zfdagent\zfdagent.msi /qn ADDLOCAL=ALL EDITABLE_MT_ADDRESS=1
STARTUP_APPWINDOW=1 STARTUP_APPEXPLORER=0 REBOOT=ReallySuppress /l*v %
WINDIR%\zfdagent.log
the z:\zfdagent is a subdirectory in the sys:\system\Public where
zfdagent.msi file exists.
hier is a link to download exist.exe
Download: http://www.novell.com/coolsolutions/...oads/exist.zip
Best regards
Issam
Similar Messages
-
Have CAM/CAS in OOB L2 Virtual Gateway working with AD SSO assigning the access VLAN based on group membership in the AD. Need to get the login scripts to run.
The information for adding a delay as per page 9-6 of the CAS manual v4.1.3 doesn't work. The errorlevel returned for successful and unsuccessful ping attempts is the same; errorlevel 0.
Does anyone have a test of network connectivity that will produce a errorlevel of 1 for failure and errorlevel of 0 for success?Used dir \\servername\share to successfully test the network connectivity. NAC authenticated users now run the login script after the CCA agent changes the IP.
-
Installing oracle management agent 12.1.0.2.0 in silent mode.
version: 12.1.0.2.0
platform: IBM Aix power systems 64bit
I installed the oracle management service along with the oracle management agent that comes along with the the first installation. I deinstalled the first installed OMA and tried to install it again using the silent install mode with the response file.
(oms host and the oma host are the same)
among the 3 modes of silent install described in the installation guide, i used agent deploy method.
Here are the steps i followed with the install
1. this the status of my OMS
<oracle>chh-aix-beta/oem12c/product/oms/bin> ./emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : chh-aix-beta
HTTP Console Port : 7788
HTTPS Console Port : 7799
HTTP Upload Port : 4889
HTTPS Upload Port : 1159
EM Instance Home : /oem12c/product/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /oem12c/product/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is unlocked.
Active CA ID: 1
Console URL: https://chh-aix-beta:7799/em
Upload URL: https://chh-aix-beta:1159/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host: chh-aix-beta
Managed Server Information
Managed Server Instance Name: EMGC_OMS1
Managed Server Instance Host: chh-aix-beta
WebTier is Up
Oracle Management Server is Up2. I got the version and the platform info of the oms by doing the following
<oracle>chh-aix-beta/oem12c/product/oms/bin> ./emcli get_supported_platforms
Getting list of platforms ...
Check the logs at /oem12c/product/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list ...
Version = 12.1.0.2.0
Platform = IBM AIX on POWER Systems (64-bit)
Platforms list displayed successfully.3. I downloaded the management agent software by doing the following ()
$<OMS_HOME>/bin/emcli get_agentimage -destination=/oem12102 -platform="IBM AIX on POWER Systems (64-bit) " -version=12.1.0.2.04. I unzipped the management agent software.
5. I edited the response file as follows. (i edited only the oms_host, em_upload_port, agent_registration_password, since they are the only ones that are mandatory)
OMS_HOST=172.16.24.65
EM_UPLOAD_PORT=1159
AGENT_REGISTRATION_PASSWORD=cchorcl01
#AGENT_INSTANCE_HOME=
#AGENT_PORT=
b_startAgent=true
#ORACLE_HOSTNAME=
#s_agentHomeName=
EM_INSTALL_TYPE="AGENT"6. then i ran the AgentDeploy.sh script using the following.
./agentDeploy.sh -ignorePrereqs AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp(I ignored the prereqs because, i was getting an error with the hostname and the hostname is correct)
7. this the following output i am getting after running step 6.
-e Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /oem12c/base/agent/core/12.1.0.2.0/jdk/bin/java -classpath /oem12c/base/agent/core/12.1.0.2.0/jlib/agentInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /oem12c/base/agent/core/12.1.0.2.0 /oem12102 /oem12c/base/agent -prereq
Validating oms host & port with url: http://172.16.24.65:1159/empbs/genwallet
Validating oms host & port with url: https://172.16.24.65:1159/empbs/genwallet
Return status:3
Unzipping the agentcoreimage.zip to /oem12c/base/agent ....
12.1.0.2.0_PluginsOneoffs_212.zip
Executing command : /oem12102/unzip -o /oem12102/12.1.0.2.0_PluginsOneoffs_212.zip -d /oem12c/base/agent
Executing command : /oem12c/base/agent/core/12.1.0.2.0/jdk/bin/java -d64 -classpath /oem12c/base/agent/core/12.1.0.2.0/oui/jlib/OraInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/xmlparserv2.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/srvm.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/emCfg.jar:/oem12c/base/agent/core/12.1.0.2.0/jlib/agentInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /oem12c/base/agent/core/12.1.0.2.0 /oem12102 /oem12c/base/agent /oem12c/base/agent/agent_inst AGENT_BASE_DIR=/oem12c/base/agent -ignorePrereqs AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp
Cloning the agent home...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/oem12c/base/agent/core/12.1.0.2.0 -responseFile /oem12102/agent.rsp AGENT_BASE_DIR=/oem12c/base/agent AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp -noconfig ORACLE_HOME_NAME=agent12c3 -force b_noUpgrade=true AGENT_PORT=-1
Clone Action Logs Location:/software/oracle/logs/cloneActions<timestamp>.log
Cloning of agent home completed successfully
Attaching sbin home...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/oem12c/base/agent/sbin ORACLE_HOME_NAME=sbin12c3 -force
Attach Home Logs Location:/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log
Attach home for sbin home completed successfully.
Updating home dependencies...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/oem12c/base/agent/sbin:/oem12c/base/agent/core/12.1.0.2.0,} -invPtrLoc /oem12c/base/agent/core/12.1.0.2.0/oraInst.loc -force
Update Home Dependencies Location:/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log
ERROR: Update home dependency failed.I am getting stuck at updating home dependencies. I dont know what that means. If you have faced similar problems while installing oracle management agent please do share your solution. if you need more info please let me know.All these commands are run on the host (hostname=chh-lpar20) where the agent is being installed, and these commands are run as root user.
ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 172.16.28.222 netmask 0xfffffc00 broadcast 172.16.31.255
tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>
inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
inet6 ::1%1/0
tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1ping chh-lpar20
PING chh-lpar20: (172.16.28.222): 56 data bytes
64 bytes from 172.16.28.222: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 172.16.28.222: icmp_seq=1 ttl=255 time=0 msnslookup chh-lpar20
Server: 172.16.29.213
Address: 172.16.29.213#53
** server can't find chh-lpar20: NXDOMAINnslookup 172.16.28.222
Server: 172.16.29.213
Address: 172.16.29.213#53
** server can't find 222.28.16.172.in-addr.arpa: NXDOMAINto check the if the port 3872 and 1830-1849 are free I ran the follwoing command
./agentDeploy.sh -prereqOnly AGENT_BASE_DIR=/oem12102/base/agent
this was the result i got inregards to the ports
Check complete: Passed
========================================================
Performing check for PortCheck
Checking for port availability and hostname validity...
Trying for host : chh-lpar20/172.16.28.222 and port : 3872
Trying for host : chh-lpar20/192.168.12.23 and port : 3872
Port= 3872 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1830
Trying for host : chh-lpar20/192.168.12.23 and port : 1830
Port= 1830 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1831
Trying for host : chh-lpar20/192.168.12.23 and port : 1831
Port= 1831 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1832
Trying for host : chh-lpar20/192.168.12.23 and port : 1832
Port= 1832 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1833
Trying for host : chh-lpar20/192.168.12.23 and port : 1833
Port= 1833 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1834
Trying for host : chh-lpar20/192.168.12.23 and port : 1834
Port= 1834 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1835
Trying for host : chh-lpar20/192.168.12.23 and port : 1835
Port= 1835 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1836
Trying for host : chh-lpar20/192.168.12.23 and port : 1836
Port= 1836 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1837
Trying for host : chh-lpar20/192.168.12.23 and port : 1837
Port= 1837 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1838
Trying for host : chh-lpar20/192.168.12.23 and port : 1838
Port= 1838 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1839
Trying for host : chh-lpar20/192.168.12.23 and port : 1839
Port= 1839 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1840
Trying for host : chh-lpar20/192.168.12.23 and port : 1840
Port= 1840 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1841
Trying for host : chh-lpar20/192.168.12.23 and port : 1841
Port= 1841 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1842
Trying for host : chh-lpar20/192.168.12.23 and port : 1842
Port= 1842 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1843
Trying for host : chh-lpar20/192.168.12.23 and port : 1843
Port= 1843 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1844
Trying for host : chh-lpar20/192.168.12.23 and port : 1844
Port= 1844 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1845
Trying for host : chh-lpar20/192.168.12.23 and port : 1845
Port= 1845 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1846
Trying for host : chh-lpar20/192.168.12.23 and port : 1846
Port= 1846 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1847
Trying for host : chh-lpar20/192.168.12.23 and port : 1847
Port= 1847 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1848
Trying for host : chh-lpar20/192.168.12.23 and port : 1848
Port= 1848 is busy.
Trying for host : chh-lpar20/172.16.28.222 and port : 1849
Trying for host : chh-lpar20/192.168.12.23 and port : 1849
Port= 1849 is busy.
Check complete. The overall result of this check is: Failed <<<<
Check complete: Failed <<<<
Problem: Either port is unavailable or hostname configuration is not valid.
Recommendation: Make sure the port is available and the hostname configuration i
s proper.I don't know what to make of the results I got for executing the nslookup command. -
How do I install a management agent
How do I install a management agent?
I have OMS installed on Server A.
I have server B that I need to manage with OMS, how do I install an agent on that?
There seems to be no clear way of installing an agent, and pointing it to Server A for registration.
I have tried:
1. Downloading the management agent from http://www.oracle.com/technology/software/products/oem/htdocs/agentsoft.html
a. Running the ./runInstaller
b. It fails with missing .rsp files, I've touched .rsp files in order to get the installer to run
c. But it does not give me an option to install an agent, only an 'additional service'
2. The mass installer
a. I unzipped the agent .zip file into the appropriate directory on Server A
b. Modified the agentDownload.linux_x64 file
c. Copied the agentDownload.linux_x64 file to Server B
d. Run the agentDownload script, with -b option
i. The script downloaded some files from Server A
ii. The script quit
I can't seem to find any real documentation on how to do this that actually makes sense and works.
I only need to install the agent on a few servers, so I don't need any mass install, surely, how hard can it be?Here is some output from agentDownload
[oracle@drora02 ~]$ scp -p prdgrid01.uto:/opt/oracle/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux_x64/agentDownload.linux_x64 .
[oracle@drora02 ~]$ egrep '^(OMShost|httpPort)' agentDownload.linux_x64
OMShost=prdgrid01.uto
httpPort=4900
[oracle@drora02 ~]$ ./agentDownload.linux_x64 -b $ORACLE_BASE -dt
agentDownload.linux_x64 invoked on Tue Aug 10 09:52:23 EST 2010 with Arguments "-b /opt/oracle -dt"
Platform=Linux.x86_64, OS=linux_x64
GetPlatform:returned=0, and os is set to: linux_x64, platform=Linux.x86_64
Creating /home/oracle/agentDownload11.1.0.1.0Oui ...
LogFile for this Download can be found at: "/home/oracle/agentDownload11.1.0.1.0Oui/agentDownload.linux_x64081010095223.log"
Running on Selected Platform: Linux.x86_64
Installer location: /home/oracle/agentDownload11.1.0.1.0Oui
Downloading Agent install response file ...
Downloading Agent install response file ...
Executing wget_get_file http://prdgrid01.uto:4900/agent_download/11.1.0.1.0/agent_download.rsp
using the url http://prdgrid01.uto:4900/agent_download/11.1.0.1.0/ to access OMS
--2010-08-10 09:52:23-- http://prdgrid01.uto:4900/agent_download/11.1.0.1.0/agent_download.rsp
Resolving prdgrid01.uto... 10.200.200.36
Connecting to prdgrid01.uto|10.200.200.36|:4900... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: `agent_download.rsp'
[ <=> ] 7 --.-K/s in 0s
2010-08-10 09:52:23 (570 KB/s) - `agent_download.rsp' saved [7]
Finished Downloading agent_download.rsp with Status=0
Response file check complete - Failed
Could not download through url . Trying secure download..
Executing wget_get_file https://prdgrid01.uto:4900/agent_download/11.1.0.1.0/agent_download.rsp
using the url https://prdgrid01.uto:4900/agent_download/11.1.0.1.0/ to access OMS
--2010-08-10 09:52:23-- https://prdgrid01.uto:4900/agent_download/11.1.0.1.0/agent_download.rsp
Resolving prdgrid01.uto... 10.200.200.36
Connecting to prdgrid01.uto|10.200.200.36|:4900... connected.
WARNING: cannot verify prdgrid01.uto's certificate, issued by `/O=EnterpriseManager on prdgrid01.uto/OU=EnterpriseManager on prdgrid01.uto/L=EnterpriseManager on prdgrid01.uto/ST=CA/C=US/CN=prdgrid01.uto':
Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 10008 (9.8K) [text/plain]
Saving to: `agent_download.rsp'
100%[===============================================================================================================================>] 10,008 --.-K/s in 0.005s
2010-08-10 09:52:23 (1.93 MB/s) - `agent_download.rsp' saved [10008/10008]
Finished Downloading agent_download.rsp with Status=0
Response file check Complete - Success
Checking the writable permission for baseDir - passed
If you wish to receive security updates, provide MYORACLESUPPORT_USERNAME in the <OMS_HOME>/sysman/agent_download/11.1.0.1.0/agent_download.rsp
If you do not want security updates, set DECLINE_SECURITY_UPATES to true in the <OMS_HOME>/sysman/agent_download/11.1.0.1.0/agent_download.rsp (or) invoke agentDownload with -y option
[oracle@drora02 ~]$ echo $?
1
And that is it, it stops there with no more information, and does not try to do anything further -
What's wrong with a simple login.jspx?
Hello,
I wrote a simple login.jspx page by following the indications at http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adding_security.htm#BABDEICH
Now, the page works with Firefox 5, but does not with IE 7. When under IE 7, the page keeps reloading giving errors about *"AdfBootStrap undefined*" or *"AdfLogger undefined".*
What is wrong? Please note that I have already read all the threads on the forum about this issue, without actually solving my problem (I have not really seen any useful solutions there to be honest).
Jdeveloper is 11.1.1.5.0, only adf authentication is enabled.
The error messages are like the following ones:
http://forums.oracle.com/forums/thread.jspa?threadID=952977&tstart=29
thanks.
Edited by: user10047839 on 27-giu-2011 8.07
Changing from jspx to jsp does not solve the problem.Hello codeplay,
in the source code of the page I have the following similar to your line:
<script type="text/javascript" src="/Myapp/afr/partition/ie/default/opt/boot-11.1.1.5.0-1095.js"></script>
No lines with SHERMAN inside.
I could not open "/Myapp/afr/partition/ie/default/opt/boot-11.1.1.5.0-1095.js" or
"afr/partition/ie/default/opt/boot-11.1.1.5.0-1095.js". Page not found
Why does it happen with login page only?
In firefox, as opposite to ie, where the page is rendered a little better (not as good as it should be though, due to these problems), I can login and be redirected to the secured main page, which is another .jsp, more complex than the simple login page, and there I have no problems at all.
I noticed that the badly rendered page has a link pointing to the generated html below. NOTE that JavaScript IS ENABLED in my IE despite what this html says at the end. I checked this twice:
WHAT IS WRONG??????????
<html lang="en-EN"><head><script>
** Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
* This is the loopback script to process the url before the real page loads. It introduces
* a separate round trip. During this first roundtrip, we currently do two things:
* - check the url hash portion, this is for the PPR Navigation.
* - do the new window detection
* the above two are both controled by parameters in web.xml
* Since it's very lightweight, so the network latency is the only impact.
* here are the list of will-pass-in parameters (these will replace the param in this whole
* pattern:
* viewIdLength view Id length (characters),
* loopbackIdParam loopback Id param name,
* loopbackId loopback Id,
* loopbackIdParamMatchExpr loopback Id match expression,
* windowModeIdParam window mode param name,
* windowModeParamMatchExpr window mode match expression,
* clientWindowIdParam client window Id param name,
* clientWindowIdParamMatchExpr client window Id match expression,
* windowId window Id,
* initPageLaunch initPageLaunch,
* enableNewWindowDetect whether we want to enable new window detection
* jsessionId session Id that needs to be appended to the redirect URL
* enablePPRNav whether we want to enable PPR Navigation
var id = null;
var query = null;
var href = document.location.href;
var hashIndex = href.indexOf("#");
var hash = null;
/* process the hash part of the url, split the url */
if (hashIndex > 0)
hash = href.substring(hashIndex + 1);
/* only analyze hash when pprNav is on (bug 8832771) */
if (false && hash && hash.length > 0)
hash = decodeURIComponent(hash);
if (hash.charAt(0) == "@")
query = hash.substring(1);
else
var state = hash.split("@");
id = state[0];
query = state[1];
href = href.substring(0, hashIndex);
/* process the query part */
var queryIndex = href.indexOf("?");
if (queryIndex > 0)
/* only when pprNav is on, we take in the query from the hash portion */
query = (query || (id && id.length>0))? query: href.substring(queryIndex);
href = href.substring(0, queryIndex);
var jsessionIndex = href.indexOf(';');
if (jsessionIndex > 0)
href = href.substring(0, jsessionIndex);
/* we will replace the viewId only when pprNav is turned on (bug 8832771) */
if (false)
if (id != null && id.length > 0)
href = href.substring(0, href.length - 10) + id;
var isSet = false;
if (query == null || query.length == 0)
query = "?";
else if (query.indexOf("_afrLoop=") >= 0)
isSet = true;
query = query.replace(/_afrLoop=[^&]*/, "_afrLoop=12570889997779");
else
query += "&";
if (!isSet)
query = query += "_afrLoop=12570889997779";
/* below is the new window detection logic */
var initWindowName = "_afr_init_"; // temporary window name set to a new window
var windowName = window.name;
// if the window name is "_afr_init_", treat it as redirect case of a new window
if ((true) && (!windowName || windowName==initWindowName ||
windowName!="1bvr27bkx4_1"))
/* append the _afrWindowMode param */
var windowMode;
if (false)
/* this is the initial page launch case,
also this could be that we couldn't detect the real windowId from the server side */
windowMode=0;
else if ((href.indexOf("/__ADFvDlg__") > 0) || (query.indexOf("__ADFvDlg__") >= 0))
/* this is the dialog case */
windowMode=1;
else
/* this is the ctrl-N case */
windowMode=2;
if (query.indexOf("_afrWindowMode=") >= 0)
query = query.replace(/_afrWindowMode=[^&]*/, "_afrWindowMode="+windowMode);
else
query = query += "&_afrWindowMode="+windowMode;
/* append the _afrWindowId param */
var clientWindowId;
/* in case we couldn't detect the windowId from the server side */
if (!windowName || windowName == initWindowName)
clientWindowId = "null";
// set window name to an initial name so we can figure out whether a page is loaded from
// cache when doing Ctrl+N with IE
window.name = initWindowName;
else
clientWindowId = windowName;
if (query.indexOf("_afrWindowId=") >= 0)
query = query.replace(/_afrWindowId=\w*/, "_afrWindowId="+clientWindowId);
else
query = query += "&_afrWindowId="+clientWindowId;
var sess = "";
if (sess.length > 0)
href += sess;
/* if pprNav is on, then the hash portion should have already been processed */
if ((false) || (hash == null))
document.location.replace(href + query);
else
document.location.replace(href + query + "#" + hash);
</script><noscript>JavaScript is not enabled in your browser.</noscript></head></html> -
I am new on flex, and i would like to create a simple login + password using amfphp
Hi all,
I try to make a simple login password using mysql and amfphp, i have a little quesiton, i dont' know how to get back my response from php. Thanks in advance if anyone could help me.
Best regards
i would like to tell to the label <mx:Label x="380" y="10" id="lResponse"/> the response from php
I juste want to take back response from php.
Here is my mxml :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
<fx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import flash.net.Responder;
import mx.events.DataGridEvent;
import org.corlan.VOAuthor;
private function checkpassword():void {
var newauthor:VOAuthor=new VOAuthor();
newauthor.lname_aut = nom.text;
newauthor.fname_aut = prenom.text;
myRemote.validate(newauthor);
private function checkInput():void
if(nom.text == "" || prenom.text == "")
lResponse.text = "Veuillez completer tout les champs";
else
lResponse.text = "connecter";
checkpassword();
// checkLogin("login.Verify.validate",[nom.text,prenom.text]);
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<mx:RemoteObject id="myRemote" destination="MyService" source="MyService"
endpoint="http://localhost/amfphp/gateway.php" showBusyCursor="true"/>
</fx:Declarations>
<s:Panel x="334" y="168" width="245" height="135" title="Identifiez vous" textAlign="center">
<s:TextInput x="102" y="10" textAlign="left" id="nom" />
<s:TextInput x="102" y="40" textAlign="left" id="prenom" />
<s:RichText x="50" y="6" text="Login :" height="22" width="56" textAlign="left" verticalAlign="bottom"/>
<s:RichText x="27" y="46" text="Password :" height="20"/>
<s:Button x="125" y="70" label="Connecter" width="105" click="checkInput()"/>
<mx:Label x="380" y="10" id="lResponse"/>
</s:Panel>
</s:Application>
Here is my php code :
<?php
session_start();
require_once ('./vo/org/corlan/VOAuthor.php');
//conection info
define( "DATABASE_SERVER", "127.0.0.1");
define( "DATABASE_USERNAME", "root");
define( "DATABASE_PASSWORD", "xxxx");
define( "DATABASE_NAME", "flex360");
class MyService {
function validate($author){
$mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
mysql_select_db(DATABASE_NAME);
$user = $author[0];
$pass = $author[1];
$query = "SELECT DISTINCT * FROM authors_aut WHERE fname_aut = '$user' AND lname_aut = '$pass'";
$rs = mysql_query($query);
$var = mysql_fetch_assoc($rs);
$u = $var["fname_aut"];
$p = $var["lname_aut"];
if ($pass != $p){
$response[0] = "INVALID";
$response[1] = "Invalid username and/or password";
} else {
$response[0] = "VALID";
$response[1] = "Welcome $u";
return $response;
?>I usually have a resultHandler function, to handle stuff from the server.
resultHandler(event:ResultEvent):void -
Help needed "tabEnabling" not working in simple login page - Flex
Hello Friends,
I need a small help in Flex. I am doing a simple login page application in FlashBuilder 4.0 & i have kept 2 input boxes like Login,Password and a submit buttion. On clicking the button i am calling a method, so far everything is working fine.... But some how tabenabling is not working. suppose if you are in login inputbox and i press "tab key" it has to go to password input box.. but its not working. can any one help me on this, why it is not working. i have tried all the attempts using tabEnabled = "true". but stil i am failing to do this.
your help would be appreciated.
Rajesh
Message was edited by: Rajeshb_Flash<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="100%"
height="100%"
verticalAlign="middle"
horizontalAlign="center">
<mx:Script>
<![CDATA[
import com.tel.model.EventConstants;
import mx.controls.Alert;
import mx.managers.CursorManager;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.mxml.HTTPService;
private var httpService:HTTPService;
public var userID:String = "";
public function init():void{
private function mouseClickSubmit():void{
if(userName.text != "" && password.text != ""){
userID = userName.text;
initService();
}else{
if(userName.text == ""){
Alert.show("Please enter 'User Name'.","Alert!")
}else if(password.text == ""){
Alert.show("Please enter 'Password'.","Alert!")
private function initService():void{
var params:Object = new Object();
params["userName"] = userName.text;
params["password"] = password.text;
httpService = new HTTPService();
httpService.showBusyCursor = true;
httpService.resultFormat = "xml";
httpService.method=URLRequestMethod.POST;
httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.addEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService.url = "Login.action";
httpService.send(params);
private var boolFirstRun = true;
private function httpServiceResultHandler(event:ResultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
var resultXML:XML = new XML(event.result.toString());
if(resultXML.children().toString() == "true"){
boolFirstRun = false;
dispatchEvent(new Event(EventConstants.LOGIN_SUCCESS))
}else{
userName.text = "";
password.text = "";
Alert.show("Login Failed! Invalid 'User Name' or 'Password'.","Alert")
private function httpServiceFaultHandler(event:FaultEvent):void{
httpService.removeEventListener(ResultEvent.RESULT, httpServiceResultHandler);
httpService.removeEventListener(FaultEvent.FAULT, httpServiceFaultHandler);
httpService = null;
]]>
</mx:Script>
<mx:Panel title="Login Page" width="400" height="300" styleName="loginPanel" verticalAlign="middle" horizontalAlign="center" backgroundImage="assets/images/hello.jpg" backgroundAlpha=".1">
<mx:VBox width="260" height="95" styleName="loginBox" backgroundAlpha=".2">
<mx:HBox width="100%">
<mx:Label width="85" text="User Name" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="userName"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Label width="85" text="Password" styleName="loginTextStyle"/>
<mx:TextInput width="150" id="password" displayAsPassword="true"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Spacer width="80%"/>
<mx:Button label="Enter" id="submit" click="mouseClickSubmit()"/>
</mx:HBox>
</mx:VBox>
</mx:Panel>
</mx:VBox> -
Launching NAL from login script AND startup?
We are about to upgrade from Zen 3.2 to 7. Part of the process involves ensuring the clients launch NAL with a /NOUPDATE switch. (The NOUPDATE switch must be used to ensure that Zen 7 agents are not accidentally back-rev'ed during the upgrade process.) We currently have deployed the script-based method to launch the 3.2 NAL, but still have many desktops that either launch with a batch file or through the Startup group. (Too many to visit on a timely basis)
I want to know if subsequent launches of NAL.exe WITHOUT the /NOUPDATE switch override the settings of the original one launched in the script. If launching NAL from Startup without switches doesn't override the one in the login script, I won't need to worry about hitting each of these machines before we begin deploying the Zen 7 Agent.
Does anyone know if NAL refuses to launch again if it already is detected in memory?Off the top of my head, I dont know the answers to your question, but
when I went through this process I just moved and renamed all the NAL
related files from the PUBLIC dirs so the ZEN7 Agent could not become
back dated.
The existing 3.2 agents kept running from the local PC like always and
after the PC was upgraded to ZFD7 there were no files in PUBLIC from
which the PC could accidentally get old files.
Ron Granberg wrote:
> We are about to upgrade from Zen 3.2 to 7. Part of the process involves
> ensuring the clients launch NAL with a /NOUPDATE switch. (The
> NOUPDATE switch must be used to ensure that Zen 7 agents are not
> accidentally back-rev'ed during the upgrade process.) We currently have
> deployed the script-based method to launch the 3.2 NAL, but still have
> many desktops that either launch with a batch file or through the
> Startup group. (Too many to visit on a timely basis)
>
> I want to know if subsequent launches of NAL.exe WITHOUT the /NOUPDATE
> switch override the settings of the original one launched in the
> script. If launching NAL from Startup without switches doesn't override
> the one in the login script, I won't need to worry about hitting each of
> these machines before we begin deploying the Zen 7 Agent.
>
> Does anyone know if NAL refuses to launch again if it already is
> detected in memory?
Craig Wilson
Novell Product Support Forum Sysop
Master CNE, MCSE 2003, CCN -
Cannot Install Anti Spam Agents - get-transportserver cmdlet not found
Getting the following error when trying to install antispam agents on hub transport server (single exchange server 2010 environment, no edge server):
[PS] D:\Program Files\Microsoft\Exchange Server\V14\scripts>.\install-antispamagents.ps1
get-transportserver : The term 'get-transportserver' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At D:\Program Files\Microsoft\Exchange Server\V14\scripts\install-AntispamAgents.ps1:19 char:20
+ $transportserver = get-transportserver -id $localservername
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-transportserver:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Failed to find the Transport server: <myserver>
Any help would be appreciated as to where I can find the missing cmdlets or download/reinstall them...thanks
Sorry...moved this to the Exchange 2010 ForumHi Ckuriger1,
The thread is duplicated with :
https://social.technet.microsoft.com/Forums/en-US/b7d62cf4-7f29-4d9b-91b6-06a0340a5b41/cannot-install-anti-spam-agents-gettransportserver-cmdlet-not-found?forum=exchange2010
I will merge this thread to the above one. Thanks for the understanding.
Regards,
Simon Wu
TechNet Community Support -
Help with simple Automator script
I have a simple Automator script for updating a specified folder with files from another folder. It consists of only two actions:
1. Get Folder Contents (from the folder I drop on the Automator executable).
2. Copy Finder Items.
I left the option "replace existing files" unchecked because there's no point in replacing a bunch of files that already exist (we're talking about 4000-5000 files in the source folder). I assumed that meant to ignore any existing files but, on the contrary, I found out that the script is copying duplicates of all the existing files -- making my target folder about 9000 files strong!
How do I get a command into the middle of this script to restrict the Copy Finder Items command to files that do not already exist in the target folder? (It would be even nicer if it could check for files that are older than the files being copied and actually replace (only) those as well.)
Any ideas?If you need the Terminal window to stay open, then you're looking at scripting Terminal. You can do this with Automator's run applescript action, or you can just use Script Editor (in Applications > AppleScript). Either way you will need to save the workflow/script as an application and drag it to your Login Items (in System Preferences > Accounts).
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Terminal"
activate
set commands to "cd /Users/lenny/ventrilo/
/Users/lenny/ventrilo/ventrilo_srv"
do script commands in front window
end tell</pre>
PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB Mac OS X (10.4.3) -
Novell Client and Login Scripts?
All:
I'm a former administrator of NetWare 3.x, 4.x and 5.x systems and am
intrigued by the NLSBS 9 offering. I have downloaded the trial version
and have installed it on a test server.
Since I am "old school", I was wondering if I could use the Novell Client
for Windows XP and login scripts to automatically map shares using groups
like I did back in the day.
I'm very new to the Novell/Linux world since every organization I've
worked for in the past 10 years abandoned NetWare for Windows. I'm sure
a LOT has changed since the Linux OS was brought on board, so I thought
I'd ask.
Thanks,
GregNot sure. It would depend on whether Novell is still offering a product upgrade to the OWS from Windows 2000 SBS and what that price looks like. Otherwise, I was more thinking about the software side itself, re: the Linux side. Either way will work. Just work out the figures.
>>> <[email protected]> 5/23/2006 5:02 am >>>
I guess I'm looking at it this way: If I purchase the 5-user upgrade
license of NLSBS for $211.00 which includes upgrade protection, then
according to Novell, I can upgrade to OWS for free after July 31st. A 1-
user license for OWS at CDW is about $125.00. $125.00 x 5 = $625.00.
Is my logic flawed?
> Why not just get the Open workgroup suite? Its basically the same
thing, =
> but you will have todays licences instead of the licence that is
already =
> obsolete according to Novell.
>
> >>> <[email protected]> 5/17/2006 12:30:13 pm >>>
> Will do. Thanks guys!
>
> I'm getting ready to pull the trigger on purchasing the Novell Linux=20
> Small Business Suite product. I'm going to get the Upgrade version =
> with=20
> 5 users licenses and one year of upgrade protection for a little over=20
> $200.00 from CDW. I guess I can get by with the Upgrade version since =
> I=20
> have a full retail copy of Microsoft SBS 2000 still in the
shrinkwrapped=20=
>
> box. Also, a representative of Novell told me in an e-mail today that =
> if=20
> I have upgrade protection on NLSBS, then I can upgrade to the new =
> Novell=20
> Open Workgroup Suite for free when NLSBS goes out at the end of July.
>
> Sounds like a win-win to me...
>
> Thanks again,
> Greg
>
> > I also had a link to a cool solution, that explained how to use
LDAP=20
> etc.. =3D
> > to link up NDS to the Linux box so you could use that to manage user
=3D
> > accounts.
> >=20
> > Let me know if you need that and I can dig it up.
> >=20
> > >>> <[email protected]> 5/16/2006 10:05:48 am >>>
> > All:
> >=20
> > I'm a former administrator of NetWare 3.x, 4.x and 5.x systems and =
> am=3D20
> > intrigued by the NLSBS 9 offering. I have downloaded the trial=20
> version=3D20
> > and have installed it on a test server.
> >=20
> > Since I am "old school", I was wondering if I could use the Novell =3D
> > Client=3D20
> > for Windows XP and login scripts to automatically map shares using =3D
> > groups=3D20
> > like I did back in the day.
> >=20
> > I'm very new to the Novell/Linux world since every organization =
> I've=3D20
> > worked for in the past 10 years abandoned NetWare for Windows. I'm
=3D
> > sure=3D20
> > a LOT has changed since the Linux OS was brought on board, so I=20
> thought=3D20
> > I'd ask.
> >=20
> > Thanks,
> > Greg
> >
> -
Flash Updates Via AD Login Scripts
Does anyone have any suggestions on applying Flash updates to
network computers using Active Directory batch file login scripts?
Also, we need to figure out how to detect if the application
exists, install it if it does, or not to install it if it does not.
Also, how will the patch know if it's even applicable?
Of course this would apply to Shockwave Player as well.
ThanksHave you read this, it may help.
http://images.apple.com/business/solutions/it/docs/BestPractices_ActiveDirectory.pdf -
Cannot get login script to run
I have followed instructions in the Apple "User Management" admin guide but get stuck fairly early on because when I run this:
dscl localhost -read /LDAPv3/myserver.private dsAttrTypeStandard:TrustInformation
I get nothing in return. I have run this command on different clients with the same result.
So then I tried to confirm the trust level by doing this and looking at the file loginwindow.plist file and I could see that Full Trust was set.
I did everything else in the document as well as a couple of other things, but still the login script won't run.
BTW the login script is very simple and just mount an afp share. Leopard 10.5.7 on client and server.
Any clues would be greatly appreciated.
MattHave you checked the 'Computer Name:' in the 'Sharing' System Prefpane? The name cannot contain anything other than numbers or letters (alpha-numeric), this includes the BonJour (.local) name. If, for example, the hostname is set to 'client.domain.tld' in the 'Sharing' System Prefpane, the BonJour name will default to 'client-domain-tld.local'. Neither of those are 'legal' names. you must change theme both to something along these lines, 'ClientDomainTld' and 'clientdomaintld.local'.
The script 'trust' level defaults to 'Full Trust' on the client but you have to make certain that the settings on the authentication policy on the OD master and the client both match.
So for a 'Full Trust' relationship you must have:
Digitally sign all packets (requires Kerberos)
Block man-in-the-middle attacks (requires Kerberos)
or the script won't run. -
Login script not mapping drives for users
I am in the process of configuring a new Windows 2008 terminal server in an existing Windows 2003 domain. The TS is installed on a member server running Windows Server 2008 SP2. The problem is that the domain login script (set in group policy) does not seem to be working for the users.
I have a special TS group policy for the new terminal server and have enabled loopback processing on the default domain policy. The only setting configured in the TS policy is the location of the user's terminal server roaming profile. This seems to be working. Other than the login script, other elements of the domain-level group policy, such as folder redirection, seem to be working. When I run the GP result tool on the terminal server, it shows all of the appropriate group policies from both the TS policy and the domain-level policy, including the login script. This login script is vital, since it does drive mapping for a bunch of resources on the domain that users need to run certain programs. The odd thing is that the login script runs for the Administrator account, which uses a separate group policy that has inheritance blocked.
Any help would be appreciated!
LaurieI realize this is old, but for anyone who comes here after me, here goes. What i found, is that instead of running a vbs script to map the drives, i run a vbs script to get the parameters i need, then i run a batch file from the vbs and pass it the
parameters. For some reason, when the logon script is run as a batch file, all of the drives map, even for users who are local admins. It seems to run in the users current context, unlike a vbs script. Here is an example :
' maps a shared documents folder "S:/" to the same folder as the OU that the user is in.
Set objSysInfo = CreateObject("ADSystemInfo")
strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUser)
strUserName = objUser.samAccountName
strOUPath = objUser.Parent
arrContainers = Split(strOUPath, ",")
arrOU = Split(arrContainers(0), "=")
strOU = arrOU(1)
Set objShell = CreateObject("WScript.Shell")
objShell.Run "\\domainname\NETLOGON\Login.bat """ & strOU & """", , TRUE
And the batch file takes the parameters like so :
:: Initialize variables
set parentOU=%~1
:: Delete all known shares
net use s: /delete
:: Map all known shares
net use S: "\\domainname\mainshare\%parentOU%" /persistent:yes
Make sure to use quotes around the variable in the vbs file, or your batch file will see it as two parameters. Then make sure to use %~1 as the variable in the batch file to remove the quotes from the parameter that is passed. -
Secure login script for my site
I can not seem to find a idiot proof login script for my
site, can someone help out PLEASE i'm going in sain!!!
can not be be that hard or it is?
thanks for any help.Well if you want something really easy to use, and are
willing to lay down a bit of dough, check out this DW extension.
http://www.interaktonline.com/Products/Dreamweaver-Extensions/MXUserLogin/Overview/
I have it, and it's pretty simple to use.
Maybe you are looking for
-
[url]http://imgur.com/a/5p05u[/url] Hello.. I was really hoping somebody could help me out with this, as I'm pretty much starting to lose hope.. I've attached as many relative screenshots as possible, to make it easier to quickly see what's going on.
-
I can't find the camera, FaceTime, Siri, or photo booth. Help?!
I cannot find those various icons. I went to restrictions and they were frayed out. I do not know where they went or how to get them back.
-
How do you PROPERLY clean a DV7-1025NR cooling system?
I use a program called "Speccy" from Piriform and it is showing a temperature of 149 degrees on my video card (GeForce 9600M GT) and a temperature of 105 degrees on my CPU (Intel Mobile Core 2 Duo P8400). I don't know if these are high or not, but I
-
Cant upgrade itunesThe following install step failed: run preupgrade script
The following install step failed: run preupgrade script for AppleMobileDeviceSupport. Contact the software manufacturer for assistance
-
Server-push through Web-workers
I would like to describe my issue and tell about my workarounds to it. I hope it could be helpful to RAP developers if they consider my scenario. I'm now missing old UICallback mechanism after upgrading from older RAP to 2.3 (haven't tried on 3.0 yet