Help with Expect command to change config on hundreds of ASA's.
Hi All,
I'm looking for some help with the Expect command to automate some tasks, I'm certainly no programmer but I am struggling, here is an example of my script.
#!/usr/bin/expect -f
# This simple Expect script will add a new Syslog destination in
# Cisco switches (IOS based)
# We assume here that all switches uses the same credentials
# for the administrative tasks
# Define variables
set password "site1"
set enablepassword "site1"
# Define all the switches to be reconfigured (separated by spaces)
set switches "site1 site2 site3"
# Main loop
foreach switch $switches {
puts "Processing switch: $switch";
# Open the telnet session:
spawn telnet $switch
# Perform authentication
expect "Password:"
send "$password\r"
expect ">"
# Switch to enable mode
send "en\r"
expect "Password:"
send "$enablepassword\r"
expect "#"
# Enable configuration mode (terminal)
send "conf t\r"
expect "#"
# Modify VLAN1
send "interface vlan1\r"
expect "#"
# Change VLAN1 Description to Uppercase
send "description INSIDE\r"
expect "#"
send "exit\r"
expect "#"
# Save config to NVRAM
send "wr\r"
expect "#"
#Logging out
send "exit\r"
expect eof
In the example this works fine for SITE1 passing the credentials SITE1 as the default password and SITE1 as the enable password. I need to do usernames and passwords that are different for each site. I have to make some changes across hundreds of ASA's to terminating tunnels to a new location. Can anyone help out in how to do this, I know I am close I just need it to read, siteA, username, both passwords from a text file, etc
Greg
Hello,
try to modify this example to your needs ->
http://www.bitpapers.com/2012/04/cisco-changing-configurations-of-many.html
Best Regards
Please rate all helpful posts and close solved questions
Similar Messages
-
Before I go into a lengthy explanation of the problem: Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.
Thanks much.
EmileChoose Force Quit from the Apple menu and close Mail from there.
(103661) -
I have rolled out bunch of updates across few hundred workstation systems.
Few of the desktops have failed to install SOME of the updates and just can't get my head around as to why?
Looking at one of the workstations, I can see 5 updates are pending download at 0%.
Some of these fail after a while and with in Software Centre, I can see 'Help with updates - The software change returned error code 0x87D00215(-2016411115).'. Not exactly sure what this means, but I have tried clearing the cache and
rebooting the workstations few times.
(I have also tried to use Windows Update and install one of these manually, which worked.)Investigating this further, I have found the following in CAS.log:
ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Successfully created download request {ED6E9E5C-E806-43CA-9F93-49AC72D1DEAD} for content 53bf87a2-bedf-4def-b0ec-9637613c3429.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Requesting locations synchronously for content 99ddb078-b780-4605-8fac-9607fe56450d.1 with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
The number of discovered DPs(including Branch DP and Multicast) is 1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Calling back with the following distribution points ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Distribution Point='http://DPSERVER.com/SMS_DP_SMSPKG$/99ddb078-b780-4605-8fac-9607fe56450d', Locality='LOCAL' ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Requesting content 99ddb078-b780-4605-8fac-9607fe56450d.1, size(KB) 0, under context System with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Successfully created download request {67B7E59B-A386-4EA8-BF39-2EB64B108A6C} for content 99ddb078-b780-4605-8fac-9607fe56450d.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Requesting locations synchronously for content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1 with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
The number of discovered DPs(including Branch DP and Multicast) is 1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Calling back with the following distribution points ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Distribution Point='http://DPSERVER.com/SMS_DP_SMSPKG$/61d33de7-9582-41e3-82fc-3e0f970b60f3', Locality='LOCAL' ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Requesting content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1, size(KB) 0, under context System with priority Foreground ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
ICcmContentTransferManager::ModifyJobPriority failed with error 0x87d00215 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
No need to change timeout settings ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4)
Successfully created download request {12E48136-B545-4C42-9745-9FF97CE38D52} for content 61d33de7-9582-41e3-82fc-3e0f970b60f3.1 ContentAccess 01/06/2013 17:19:24 3316 (0x0CF4) -
Need help with creating template. Changes are not going through to index.html page
Hi all,
I have an issue with my template that I am creating and also a question about creating template Regions (Repeating and Editable).
Somehow my changes to my index.dwt are not changing my index.html page.
Also my other question is: For my top navigation bar and left navigation bar links, do I need to select and define each individual button or link as Repeating/Editable Region? or can I just select the whole navigation bar (the one on the top) etc...
Below are my steps for creating my template...I am kinda fairly new to using DW and this is my first attempt to making a template following the DW tutorial CD that came with DW CS3.
I appreciate any help with this...regards, Dano
-Open my index.html file
-File/save as template
-Save
-update links - yes
-Select Repeating and Editable Regions (I selected the whole top navigation bar and selected Repeating Region and Editable Region, same with the left side navigation links)
-File close all
-Open the index.dwt
-Save as and selected the index.html and chose to overide it..
When I make changes to my index.dwt it is not changing the index.html
I feel that I am missing some important steps here.....
Website address
www.defenseproshop.comFigured out
-
Hello,
Awhile back someone wrote the following script for me. The
idea was to make a comman that would allow me to reduce an image
down to 400 pixel width without loss of scale. I want to have a
similiar command that will reduce a large image down to 400 pilel
height without loss of scale. I fiddled with the command for width
but can't get it to work for height. Can I get some help rewriting
the following command to work for 400 pixel height? Thanks.
// User Variables
var width = 400;
// Command
var dom = fw.getDocumentDOM();
var scale = width/dom.width;
var height = dom.height * scale;
dom.setDocumentImageSize({left:dom.left, top:dom.top,
right:dom.left+width, bottom:dom.top+height},
{pixelsPerUnit:dom.resolution, units:dom.resolutionUnits});Tom Hersh wrote:
> I did try it that way. But I could not get it to work.
The word "scale" is critical, but I switching did not help.
Just switch the variables word for word. Height for width and
width for
height.
// User Variables
var width = 400;
// Command
var dom = fw.getDocumentDOM();
var scale = width/dom.width;
var height = dom.height * scale;
dom.setDocumentImageSize({left:dom.left, top:dom.top,
right:dom.left+width,
bottom:dom.top+height}, {pixelsPerUnit:dom.resolution,
units:dom.resolutionUnits});
// User Variables
var height = 400;
// Command
var dom = fw.getDocumentDOM();
var scale = height/dom.height;
var width = dom.width * scale;
dom.setDocumentImageSize({left:dom.left, top:dom.top,
right:dom.left+width,
bottom:dom.top+height}, {pixelsPerUnit:dom.resolution,
units:dom.resolutionUnits});
Once you see this script, it's not hard to see what it is
doing.
This is the Fireworks generated script scaling just the
height of an
image to 400 px from 640x480 px.
fw.getDocumentDOM()
.scaleSelection(0.83281248807907104, 0.83333333333333337,
"autoTrimImages transformAttributes");
This works on all 640x480 images. Throw in a 700x480 and it
won't.
I'm assuming, very few people in here (myself included),
would be able
to transform this into something that would account for
varying widths
as senocular did.
SKB -
Help with Message Mapping - Context Change
I need help with the following message mapping. I am filtering by EMP_STAT in the Message Mapping. I have this working for the ROW structures, but I can get the HEADER/REC_COUNT field to calculate. I can do just a record count of ROW and get it to work, but I can't get it to work with the filter EMP_STAT = 'REG' added. I get a context error. Could someone send me the mapping code.
Sender XML----
<RECORD>
<ROW>
<EMPLOYEE>111</EMPLOYEE>
<EMP_STAT>REG</EMP_STAT>
</ROW>
<ROW>
<EMPLOYEE>222</EMPLOYEE>
<EMP_STAT>PT</EMP_STAT>
</ROW>
<ROW>
<EMPLOYEE>333</EMPLOYEE>
<EMP_STAT>REG</EMP_STAT>
</ROW>
</RECORD>
Receiver XML----
<RECORD>
<HEADER>
<REC_COUNT>2</REC_COUNT>
</HEADER>
<ROW>
<EMPLOYEE>111</EMPLOYEE>
<EMP_STAT>REG</EMP_STAT>
</ROW>
<ROW>
<EMPLOYEE>333</EMPLOYEE>
<EMP_STAT>REG</EMP_STAT>
</ROW>
</RECORD>Hello,
You can use this mapping
For REC_COUNT:
EMP_STAT -> equalsS: constant:REG -> ifWithoutElse -> removeContext -> count -> REC_COUNT
EMPLOYEE -> /
For ROW:
EMP_STAT -> equalsS: constant:REG -> ifWithoutElse -> removeContext -> ROW
EMPLOYEE -> /
For EMPLOYEE:
EMP_STAT -> equalsS: constant:REG -> ifWithoutElse -> removeContext -> SplitByValue -> EMPLOYEE
EMPLOYEE -> /
For EMP_STAT:
Constant: REG -> EMP_STAT
Hope this helps,
Mark -
Help with sql command for inventory cost change report
Inventory Cost Changes within date range.
Columns on report
Item LastDateChanged CurrentCost PriorCost
Source File-TransHst (Type 14 is inventory cost change)
example data
Type,Item,DtChg,Cost
14,15825,02/01/2014,357.00
14,45832,03/15/2014,95725.00
14,15825,10/01/2013,322.00
14,45832,06/22/2012,94632.00
example output needed
Item LastDateChanged CurrentCost PriorCost
15825 02/01/2014 357.00 322.00
Using Crystal Reports 2008 with Oracle Database
I cannot create sql to retrieve data to create report.
Need Item, Last Change Date, Current Cost and Prior Cost as output of sql
ThanksHI Jerry,
I don't know real syntax of your database, try below SQL, you may have to modify the syntax wherever it is required.
Select t.Item, Max(t.DtChg),(case when year(t.dtchg) = Year(sysdate) then t.Cost else 0) as currentCost,
(case when year(t.dtchg) = Year(sysdate)-1 then t.Cost else 0) as PriorCost
From TransHst t
Where Type=14
Group by t.Item
Thanks,
Sastry -
Need help with IOS commands to see wireless printer
Seems that I'm not asking the question correctly, or providing the right information.
The problem:
I've purchased a wireless printer, (an HP 6500a) and I can not see / ping / use the printer on the wireless network.
Environment:
Cisco 891 ISR in standalone. Single office - Home-office environment. Nothing spectacular. WLAN connected and operational to the internet.
The printer is configured to use a static IP of 10.0.0.3 and reports that it is connected to the AP. However, when I ping FROM the command line at the AP, I DO NOT see the printer. (I did previously, but we lost power last night due to a storm and I'm still trying to reconfigure it...) DHCP is configured on the router to exclude the range 10.0.0.1 through 10.0.0.99
How do I configure the wireless router to allow any connected client to share files / printers etc? Seems that the Cisco router has this shut off
by default and I've found nothing in the user manual or by asking for help on here how to reverse this so that I can share printers / files on the LAN.
Please, I'm not stupid, but I'm only casually familiar with IOS and Cisco's networking terms.
Thanks in advance,
-Mike
=============== Begin Wiresless AP config (running-config) ==============
Current configuration : 3122 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname (Remnoved)
enable secret 5 (Removed)
no aaa new-model
dot11 syslog
dot11 ssid (Removed)
vlan 1
authentication open
authentication key-management wpa
mbssid guest-mode
wpa-psk ascii 0 (Removed)
username (removed)
username (Removed)
bridge irb
interface Dot11Radio0
no ip address
no ip route-cache
encryption vlan 1 mode ciphers tkip
broadcast-key vlan 1 change 30
ssid (Removed)
antenna gain 0
station-role root
interface Dot11Radio0.1
encapsulation dot1Q 1 native
no ip route-cache
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface Dot11Radio1
no ip address
no ip route-cache
encryption vlan 1 mode ciphers tkip
broadcast-key vlan 1 change 30
ssid (Removed)
antenna gain 0
dfs band 3 block
channel dfs
station-role root
interface Dot11Radio1.1
encapsulation dot1Q 1 native
no ip route-cache
bridge-group 1
bridge-group 1 subscriber-loop-control
bridge-group 1 block-unknown-source
no bridge-group 1 source-learning
no bridge-group 1 unicast-flooding
bridge-group 1 spanning-disabled
interface GigabitEthernet0
description the embedded AP GigabitEthernet 0 is an internal interface connecting AP with the host router
no ip address
no ip route-cache
interface GigabitEthernet0.1
encapsulation dot1Q 1 native
no ip route-cache
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface BVI1
ip address dhcp client-id GigabitEthernet0
no ip route-cache
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
access-list 110 permit icmp any any echo
access-list 110 permit icmp any any echo-reply
access-list 110 permit icmp any any source-quench
access-list 110 permit icmp any any packet-too-big
access-list 110 permit icmp any any time-exceeded
bridge 1 route ip
banner login ^CC
% Password change notice.
Default username/password setup on AP is cisco/cisco with privilege level 15.
It is strongly suggested that you create a new username with privilege level
15 using the following command for console security.
username <myuser> privilege 15 secret 0 <mypassword>
no username cisco
Replace <myuser> and <mypassword> with the username and password you want to
use. After you change your username/password you can turn off this message
by configuring "no banner login" and "no banner exec" in privileged mode.
^C
line con 0
privilege level 15
login local
no activation-character
line vty 0 4
login local
cns dhcp
endWireless clients can get on w/o issue. Nobody can ping anyone else or see them.
No file sharing, no printer.
Tried using the web-based config which works for some items, but wont access the advanced config.
I'm on my way into town, so can't post the router config, but it is posted in my earlier question
of last week. I can login later if you otherwise need it here.
Thanks,
-Mike -
Help with documenting the unicode changes!!
Hello everyone,
I am involved in unicode conversion of some programs and my client wants me to document the changes I made in a word document.
I am newbie and dont want it to be UN-professional.
so can anyone send me a sample to do this.
Thanks
Goldiequote:
I would expect that if the socket connection fails I could
manually tell the Player where to load a policy file and continue
with the loading of other resources.
I recall that you can use loadPolicyfile or something like
that to manually load a policy file.
let me see...
Found it.
quote:
A fixed master location can be checked automatically by Flash
Player, without ActionScript having to call loadPolicyFile to
inform Flash Player of the location of a socket policy file.
Hope this helps. I've got a topic 'bout the policy files too,
it's here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&amp;catid=288& amp;amp;threadid=1334497&amp;enterthread=y.
Hope you got the time to look through my topic, since you've
tested around with them too, you might see my mistake.
edit:
quote:
I tried to explicitly load the policy file after the
connection failure ( using Security.loadPolicy ) but it doesn't
work.
Mm, didn't read that. Where was the policy file that you
tried to load located?
My guess is that when the connection fails, it'd be because
the firewall is blocking it. An attempt to connect to the HTTP port
wouldn't be blocked, i guess.
But i'm not sure about what the test setups where for each
issue, where they the same? -
Help with Unscreened ANI, Diversion Header config
Hello folks, can you please give me a sample article showing how to accomplish the requirement outlined in the attached diagram?
I haven't seen a good article on this specific issue so if you the experts on this could help me showing a configuration for this, I really appreciate it.
Thanks!
Requirement:
1) When calls are placed outbound from Remote Site1 and RemoteSite2 or Hub, "Phone PSAP" should see the STN (Screen Telephone Number) from the respective site calls are coming, so 911 can respond accordingly and identify the respective remote location calls are coming from.
Questions:
1) In CUCM, which configurations are necessary to make this work (For example, (CSS) Calling Search Space changes, Route Lists, Route Pattern, Route Groug changes in the "CUCM Administrator" service etc)
2) In the CUBE C3925, please provide the configuration which can allow me to accomplish the requirement.There are different ways you can accomplish this..
1. Configure each phone to have phone number external mask...set this to be the DDI for each phone
2. Configure your Route list to send External Mask to the Gateway
3, On the CUBE configure sip profiles to modify the external mask received from cucm to the STN for each phone
request INVITE sip-header Remote-Party-ID modify "" ""
4. Apply the sip profile to the dial-peer going to the PSAP
dial-peer voice 1 voip
voice-class sip proflies 1
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared" -
Need help with Telnet command in JSP
Here is the code I have been working on but it will not display the buffer to the page..
String [] cmd1 = {"cmd.exe","/c","telnet hqsun1.xx.xxxxx.com"};
Process n;
String T = "" ;
n = Runtime.getRuntime().exec(cmd1);
BufferedReader in1 =
new BufferedReader(new InputStreamReader(
n.getInputStream()));
while((T=in1.readLine()) != null)
out.println(T+"");
Maybe someone has done this before? I am trying to acomplish a telnet net session to the screen with some exicuted commands, because this tool is going to be used to help determine system status when the help desk needs to check on something.
ThanksI don't want to be discouraging, but I'm not quite sure you've thought the problem through. You say that you'd like to create a web page capable of providing various pieces of information to the help desk, and you suggest ping and the output of various canned telnet commands as examples.
What is preventing the help desk from just executing those commands at the command prompt?
I realize that the people working the help desk are (ahem) there for a reason, but it is really much faster for me to just simply type "ping www.mpalfrey.com" at the prompt, then it is for me to fire up the web browser and wait for a response that way. You will likewise find that it is a lot more convenient to perform diagnosis on remote machines directly from the command prompt.
Uh, it's kind of like giving someone a screwdriver, then saying, "oh wait a second" and making them wear an oven mitt in order to use the screwdriver.
But, if you really want to do it this way, the best thing to do is create a wrapper class that directly calls the system command and captures the output to a stringbuffer. Then your JSP page simply has to clone that wrapper via a new() command and trigger it if you go the singleton route. The code would look something like this...
<%@ import page="com.mpalfrey.shellcommands.ping" %>
<%
myPing foo = new myPing( request.getParameter( "victim" ) );
foo.trigger();
%>
Ping results:
<%=foo.results()%>JSP can do a lot of wonderful things, but that doesn't mean you have to do it that way. :) -
Help with unexpected picture color changes on load
Hi,
I have been learning elements for a couple years and am getting reasonably good at editing
pics like portraits.
Recently was doing high key portrait edits, when I was comparing the RAW CR2 file in ele along side the photos
converted to Adobe psd, the colors where changing after opening and saving as psd.
The thing is I didnt do any changes. I just opened up the raw file, then clicked open from raw edit to go into ele.
Once it opens as a psd the colors have changed.
Camera is set to Adobe RGB. Ele set to manage color for printing.
Is this normal, or something I am doing or not doing.
Suggestion and recommendations requested.
txz.
WillI understand you are comparing on screen side by side:
- the image in the ACR dialog, without any edits
- the image seen after opening in the editor and saved unedited as psd and reopened to be able to compare side by side.
I agree that you should not see any significant color changes.
A note about your settings:
- Camera set to Adobe RGB : good for jpegs, setting ignored with raw files (in PSE ACR, the choice between sRGB and aRGB depends on the second setting in the editor : always optimize for print). Not relevant to your problem.
- Always optimize for print : means the raw data will be converted to aRGB for printing, and shown according to your display. That's the right setting if you want to print in aRGB.
So, nothing wrong with your settings.
Is there a wrong screen color profile saved on your computer? That could happen with other softwares or with attempted screen calibration tools...
I can't help much in that situation, but it would perhaps help if you described the differences in color betwee both displays. For a better view to compare colors, beware of the surrounding parts of the images : if one is on a clear background (ACR) and the other in a dark one (Editor), you won't see exactly the same colors. -
WRT610N Help with the network mode changing to an A.
Hello All,
I just purchased a WRT610n Router, the wireless n adapter, and the gaming router, My question to you the customer is have any of you had problems with the gaming router switching to a wireless A network mode , I have my gaming system on 5nhz and I want the transfer rate to be at the highest possible rate and I know switching to an A network will change that transfer rate I am only 25 feet away on one level so any suggestions would be helpful or comments as well.
Message Edited by ChrisM1981 on 01-19-2009 11:14 AMHello,
I have WRT610N, WGA600N, and I am on Comcast Broadband Transfer Rate Of 1GBPS on my p.c. and the transfer rate on my notebooks is 130MBPS to 230MBPS also I am running my gaming System on the Dual Band 5NHZ like I said I am on one level with nothng between the Router & Adapter so I am wondering why it is transfering to 802.11a Frequency because I know that lowers Tranfer Rate from a Wireless N Frequency so any help you can give me that would be great.
Thank you -
Need help with Apache-WL 5.1 config
I have an WL application which is invoked anytime a url that starts
with /app. This is configured as follows:
<Location /app>
SetHandler weblogic-handler
</Location>
What my customers now want is to create new urls which will invoke my
application. For example, one customer wants the following url:
/airline/atlanta
Which will need to map to the following url:
/app/URLServlet/airline/atlanta
I have tried to create a "RewriteRule", but found that apache looked
for the result in the docroot instead of transferring it to WL.
The following shows my "Rewrite config":
RewriteEngine on
RewriteLog "/var/apache/logs/rewrites"
RewriteLogLevel 3
RewriteRule ^/airline/atlanta /app/URLServlet$1
WebLogicHost rome
WebLogicPort 7101
<Location /app>
SetHandler weblogic-handler
</Location>
The following is from the rewrite log file:
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) init
rewrite engine with requested uri /airline/atlanta
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (3)
applying pattern '^/airline/atlanta' to uri '/airline/atlanta'
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
rewrite /airline/atlanta -> /app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) local
path result: /app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
prefixed with document_root to /var/apache/htdocs/app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (1)
go-ahead with /var/apache/htdocs/app/URLServlet$1 [OK]
And of course, there is no such thing in the docroot.
Any thoughts? Please help.
[bryon.vcf]I have a similar problem. Does anyone out there know how Apache URL
rewriting interacts with mod_wl?
My situation is that I want to pass a piece of information (which virtual
host the request came in on) to weblogic. It appears that RewriteRule with
the [QSA] option is perfect for this, except that for some reason the
servlet request reports the original URL, not the rewritten one. I put in a
rule that says
RewriteRule ^(.*jsp)$ $1?VHOST=mydomain.com [QSA]
and the rewrite log shows that the rule is applied, but
HttpServletRequest.getQueryString() still returns null.
Has anyone passed any information like this from Apache to Weblogic?
Thanks,
Greg Abbas
"Bryon G. Rigg" wrote:
I have an WL application which is invoked anytime a url that starts
with /app. This is configured as follows:
<Location /app>
SetHandler weblogic-handler
</Location>
What my customers now want is to create new urls which will invoke my
application. For example, one customer wants the following url:
/airline/atlanta
Which will need to map to the following url:
/app/URLServlet/airline/atlanta
I have tried to create a "RewriteRule", but found that apache looked
for the result in the docroot instead of transferring it to WL.
The following shows my "Rewrite config":
RewriteEngine on
RewriteLog "/var/apache/logs/rewrites"
RewriteLogLevel 3
RewriteRule ^/airline/atlanta /app/URLServlet$1
WebLogicHost rome
WebLogicPort 7101
<Location /app>
SetHandler weblogic-handler
</Location>
The following is from the rewrite log file:
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) init
rewrite engine with requested uri /airline/atlanta
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (3)
applying pattern '^/airline/atlanta' to uri '/airline/atlanta'
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
rewrite /airline/atlanta -> /app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2) local
path result: /app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (2)
prefixed with document_root to /var/apache/htdocs/app/URLServlet$1
172.16.1.108 - - [12/Dec/2000:18:11:42 -0500]
[atlanta.atl.globaleventures.com/sid#757d0][rid#b7938/initial] (1)
go-ahead with /var/apache/htdocs/app/URLServlet$1 [OK]
And of course, there is no such thing in the docroot.
Any thoughts? Please help.--
Greg Abbas
[email protected]
http://www.abbas.org -
Done Something Dumb, Please Help With Terminal Command
OK, So I couldn't figure out why I was no longer getting Growl notifications with mail.app and GrowlMail after I upgraded to 10.5. Turns out it has something to do with the bundle version it is running. I ran the following 2 terminal commands found here : http://www.davidroessli.com/logs/2007/01/gettinggrowlmail_towork/
they were:
defaults write com.apple.mail EnableBundles 1
defaults write com.apple.mail BundleCompatibilityVersion 2
Once I launched mail.app again the application told me that it had shut off support for the Plaxo plugin that I use. Now neither Growl nor the Plaxo plugin work. Long story short, can someone explain to me how to put mail.app back the way it was before I foolishly ran terminal commands? Thanks in advanceEmail the author. Growl isn't supported by Apple.
You are aware that the article was written quite a while before 10.5.2 was released? It's not a good idea to implement modifications that are not tested on the current version of OS X without checking first with the author of such modifications. It's especially not a good idea to use the "defaults write" command without knowing how to undo the change.
The first command is undone by substituting 0 for 1. Change the second one from 2 to 3.
Maybe you are looking for
-
Ipod touch is disabled and can't see it it itunes to restore
My Son's ipod touch has been disabled due to 'forgetting' his passcode! (I told him not to change it!!) Now it's my job to reset/restore it and as most mum's and dad's will agree my children know far more than me about technology... anyway...... ..
-
How do you ungroup or expand a pie chart in Adobe Illustrator CS6?
How do you ungroup or expand a pie chart in Adobe Illustrator CS6? This functionality seems to have been removed. Say I'd like to remove the legend: before, I could ungroup the chart, release its link to the data, and then delete the legend with my w
-
I am losing quality when importing images into ps touch?
Bringing in 12mp images from Nikon camera and losing quality (blurry edges, low quality, etc). Is there a setting I can change or is this what we have to deal with on ps touch?
-
Http_utl.text_write for http 'POST" does not work
i have a proc that uses utl_http code I have seen all over on web sites for 'POST'ing to a REST web service ..... i use utl_http.write_text to write data to the request body but no data gets written ...... below are the code segments I use url entere
-
Help:I can't get correct display
I write a program with java, and some chinese word string are used. when it runs on platform win2000, all is right. but, when I run it on redhat9, I can't read them strings why? what should I do to correct it?