XI on i-Series: Hostname
Hi:
We have an XI 7.0 installation on an i-Series box, OS400/DB400V5R4, and running issues with hostnames. We have instances of R/3 and corresppnding QA instances ont he same box.
Q1: Host names: I understand form the OS guys that thies instance has to have upper case hostname, while SAP seems to be recommending lowercase. Infact, the parameter rsdb/hostname is forced to lowercase. What should be the right hostname. On the SLD, I am seeing that the Java stack is registering itself twice, with an lowercase hsotname, and an uppercase hostname.
Q2: The hostname shown on the SLD Server Details Page is completely wrong. Where can this be changed, and should this be uppercase/lowercase.
Thanks
Feroz
HI,
"For more information about unexpected hostnames of registered systems
in SLD, see SAP Note 1020043. for iseries" which is relateed to your problem
i found this in following sap note
978127 SAP NetWeaver 2004s SR2 Installation: IBM eServer iSeries
but i didn't find SAP Note 1020043
you should open OSS message for this
one more thing if you want hostname at OS level in lower case than you can create a alias in lower case in OS400
asign the hostname as alias in lower case with 'hostname' using CFGTCP command
also check Note 1052122 - Hostnames in SLD
regards,
kaushal
Edited by: kaushal malavia on Jan 24, 2008 3:03 PM
Similar Messages
-
Error when opening an RFC connection (LB : Hostname or service of the messa
Hi All,
Im trying to transport datasources in BW, they are 7.x RSDS datasources. but we did not change the source system, it was existing and we are using the same source for older BW version. we now installing new BW 7.x system.
These transports went fine in BQ system but failing in BP system with the below error :
Error when opening an RFC connection (LB : Hostname or service of the message ser
Error when activating DataSource 2LIS_17_I0NOTIF RP1CLT100
Error when opening an RFC connection (LB : Hostname or service of the message ser
Error when resetting DataSource 2LIS_17_I0NOTIF RP1CLT100 to the active version
the datasource 2LIS_17_I0NOTIF is active in RP1CLT100 system. when this transport goes to prod it tries to overwrite the existing one, as there are no changes to the datasource the structure will be the same.
but after that it cant able to activate that datasource.
so my question is can we able to activate this datasource in RP rather than doing transport again from R/3 Dev---R/3 PRD.
i tried RSDS_DATASOURCE_ACTIVATE_ALL but it doesn't help.
another question is when we migrate from 3.x datasource to 7.x, does this change any metadata in R/3 system as well.
Best Regards
Robyn.Hi Rizwan,
Looking at the error message it seems like there is some issue with RFC connection and whatever objects you are trying to move are not reaching to target system. Just have a check with basis team.
Once you migrate DS from 3.x to 7.0 yes there will be some meta data changes e.g. the DS type will be changed from ISFS to RSDS. You will have to send the migration along with current data source.
Regards,
Durgesh. -
Port Forward in Cisco series 800
Dear Support
below the configuration of Cisco Series 800 Router that Has VDSL port of internet , the configuration as below :
i add three command
what is required in order to make port forward
ip nat inside source static tcp 8000 10.10.10.10 8000 dilar 0
ip nat inside source static tcp 554 10.10.10.10 554 dilar 0
ip access list extended 100
permit ip any any
what is required to make port forward to the local ip address 10.10.10.10 from outside interface that is VDSL port ?
! Last configuration change at 10:47:44 KSA Wed Apr 22 2015 by aamalsup
version 15.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime
service password-encryption
hostname AamalNet
boot-start-marker
boot-end-marker
logging buffered 51200 warnings
enable secret level 2 5 $1$Y4PF$K6TQ5wf0gcHiO5IxvLZba0
enable secret level 5 5 $1$WZeO$BzTCl0C0e1078CWxExJK0/
enable secret 5 $1$plq6$P5HVL/tR81cs0GFDrD.0V/
aaa new-model
aaa authentication login default local
aaa authentication login sdm_vpn_xauth_ml_1 local
aaa authentication login sdm_vpn_xauth_ml_2 local
aaa authorization exec default local
aaa authorization network sdm_vpn_group_ml_1 local
aaa session-id common
clock timezone KSA 3 0
crypto pki trustpoint TP-self-signed-1682106276
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1682106276
revocation-check none
rsakeypair TP-self-signed-1682106276
crypto pki certificate chain TP-self-signed-1682106276
certificate self-signed 02
30820250 308201B9 A0030201 02020102 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31363832 31303632 3736301E 170D3032 30333031 30303038
35315A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 36383231
30363237 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100C2F3 49897460 71FEB259 7794B7C6 D398958A 2D338F0F C69F0E75 1137B16C
C261A275 8416DAF6 FC19AA6E 50024019 66CE4DB8 3AFAB6FE CE892B42 86A93490
97259E47 D740B2F4 9AA2D307 7B676841 2CAAA879 D945A6FD 717B507F 77399332
1644CEDE 884BF133 ACFBBC80 9869A104 54CC3EEE 9D521378 EC762D86 C3F0ABC9
CA990203 010001A3 78307630 0F060355 1D130101 FF040530 030101FF 30230603
551D1104 1C301A82 18417761 6C416D61 6C792E61 77616C6E 65742E6E 65742E73
61301F06 03551D23 04183016 80149ADD A651C9F9 F8369354 5C904777 090FEB75
72E0301D 0603551D 0E041604 149ADDA6 51C9F9F8 3693545C 90477709 0FEB7572
E0300D06 092A8648 86F70D01 01040500 03818100 50ACCA98 1A5FCCAD FC61D703
A8589B02 AFB8CD47 BD1CC7B0 B095C97F AA0604A8 F8495053 C8A9CBB9 644F5674
318A7AA0 873250AD 1DE28CE2 BE21ED19 BF212CF7 E2A97CFB FFA62F1E 643CEDFE
90D02109 719FD4D3 98E6C40B D61CE89C D2426C1E 3CBD9FBE 397F7F7C F1DD279E
14F8BB2D ABFA784B 6E04274B EDCBFC8F A805E91D
quit
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.10.10.1
ip dhcp excluded-address 10.10.11.1
ip dhcp pool lan
import all
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 212.93.192.4 212.93.192.5
lease 0 2
ip dhcp pool wireless
import all
network 10.10.11.0 255.255.255.0
default-router 10.10.11.1
dns-server 212.93.192.4 212.93.192.5
lease 0 2
no ip domain lookup
ip domain name aamal.net.sa
ip name-server 212.93.192.4
ip name-server 212.93.192.5
no ipv6 cef
cwmp agent
enable download
enable
session retry limit 10
management server password 7 094D4308151612001D05072F
management server url http://aamalservice.aamal.net.sa:9090
license udi pid C887VA-W-E-K9 sn FCZ17459018
archive
log config
hidekeys
username k privilege 15 password 7 020D
username admin privilege 15 password 7 14161606050A
controller VDSL 0
crypto isakmp policy 1
encr 3des
authentication pre-share
group 2
crypto isakmp client configuration group aamalnet
key aamalnet
dns 212.93.192.4 212.93.192.5
include-local-lan
dhcp server 10.10.10.1
max-users 10
netmask 255.255.255.0
crypto isakmp profile sdm-ike-profile-1
match identity group aamalnet
client authentication list sdm_vpn_xauth_ml_2
isakmp authorization list sdm_vpn_group_ml_1
client configuration address respond
virtual-template 1
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
mode tunnel
crypto ipsec profile SDM_Profile1
set security-association idle-time 60
set transform-set ESP-3DES-SHA
set isakmp-profile sdm-ike-profile-1
bridge irb
interface ATM0
no ip address
no atm ilmi-keepalive
interface ATM0.1 point-to-point
pvc 0/35
pppoe-client dial-pool-number 1
interface Ethernet0
no ip address
shutdown
interface FastEthernet0
no ip address
interface FastEthernet1
no ip address
interface FastEthernet2
no ip address
interface FastEthernet3
no ip address
interface Virtual-Template1 type tunnel
ip unnumbered Dialer0
tunnel mode ipsec ipv4
tunnel protection ipsec profile SDM_Profile1
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
switchport mode trunk
no ip address
interface wlan-ap0
description Embedded Service module interface to manage the embedded AP
ip unnumbered Vlan1
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
ip tcp adjust-mss 1452
interface Vlan2
no ip address
bridge-group 2
interface Dialer0
ip address negotiated
ip mtu 1452
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname [email protected]
ppp chap password 7 0007145E2E5A05522E1858
no cdp enable
interface BVI2
ip address 10.10.11.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
ip forward-protocol nd
ip http server
ip http access-class 23
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip nat inside source list 1 interface Dialer0 overload
ip route 0.0.0.0 0.0.0.0 Dialer0
access-list 1 remark SDM_ACL Category=2
access-list 1 permit 10.10.10.0 0.0.0.255
access-list 1 permit 10.10.11.0 0.0.0.255
access-list 23 permit 212.93.196.0 0.0.0.255
access-list 23 permit 212.93.192.0 0.0.0.255
access-list 23 permit 212.93.193.0 0.0.0.255
access-list 23 permit 10.10.10.0 0.0.0.255
access-list 23 permit 10.10.11.0 0.0.0.255
dialer-list 1 protocol ip permit
no cdp run
snmp-server community private RW
snmp-server community public RO
bridge 1 protocol ieee
bridge 1 route ip
bridge 2 protocol ieee
bridge 2 route ip
privilege interface level 5 encapsulation
privilege interface level 5 description
privilege interface level 5 no encapsulation
privilege interface level 5 no description
privilege interface level 5 no
privilege configure level 5 ip route
privilege configure level 5 interface
privilege configure level 5 controller
privilege configure level 5 ip
privilege exec level 5 copy running-config tftp
privilege exec level 5 copy running-config
privilege exec level 5 copy
privilege exec level 5 write memory
privilege exec level 5 write
privilege exec level 5 configure terminal
privilege exec level 5 configure
privilege exec level 5 show processes cpu
privilege exec level 5 show processes
privilege exec level 2 show running-config
privilege exec level 5 show configuration
privilege exec level 2 show
privilege exec level 5 clear counters
privilege exec level 5 clear
banner exec
CC
% Password expiration warning.
Cisco Router and Security Device Manager (SDM) is installed on this device and
it provides the default username "cisco" for one-time use. If you have already
used the username "cisco" to login to the router and your IOS image supports the
"one-time" user option, then this username has already expired. You will not be
able to login to the router with this username after you exit this session.
It is strongly suggested that you create a new username with a privilege level
of 15 using the following command.
username <myuser> privilege 15 secret 0 <mypassword>
Replace <myuser> and <mypassword> with the username and password you want to
use.
banner login
CC
********STC AamalNet Service****************************************
********Authorize Access Only. For more Support Call 909************
line con 0
privilege level 15
no modem enable
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
stopbits 1
line vty 0 4
access-class 23 in
privilege level 2
transport input telnet ssh
scheduler max-task-time 5000
scheduler allocate 20000 1000
endHello,
Sure.
What version are you running?
Regards, -
Implement DHCP Option 60 in SPA100 series
Hello,
Is there any plan to implement DHCP Option 60(vendor class id) in SPA100 series devices in future FWs? CISCO SPA5xx series already has this option implemented.
Regards,
Josep.I'm not sure what exact device you mean saying "SPA100 series devices" but in SPA112 and SPA122 it is implemented already. I'm using it for long time. See catched packet:
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request
Hostname Option 12, length 6: "SPA112"
Vendor-Class Option 60, length 12: "CISCO SPA112"
Don't forget to mark thread as answered if it answers your question ... -
Relay Access denied /fully-qualified hostname
hello guys,
I have made an application that sends emails (with attachments) to different users. It works fine when I use an email account (smtp server) from my network but not otherwise.... For example if i use it from my university then uni's smtp server must be used. But when i run it from my job, my uni's server does not work (vice versa).
I get the following exceptions:
Thu Feb 05 12:46:40 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 <[email protected]>: Recipient address rejected: Relay access denied
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)....
Thu Feb 05 12:30:58 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 504 <cube>: Helo command rejected: need fully-qualified hostname
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)
my hostname is cube. Can someone please help? It is driving me crazy :::(.
I am using windows xp
cheers
AwanSorry, hit the post button before addressing the other problem. While your getting the DNS problem solved find the guy that is administering the SMTP server and tell him it is not relaying messages for you. He'll probably want to know the address so bring the stack trace with you and show him the 500 series error.
-
1142 N series AP is not registering in the controller
Hi ,
I am trying to connect few 1142 N series AP to my existing controller 4404. I have upgrade the code of the WLC (AIR-WLC4400-K9-6-0-182-0.aes) . But iam getting the following error messages .
*Oct 6 15:28:47.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_ip: 172.16.97.3 peer_port: 5246
*Oct 6 15:28:47.000: %CAPWAP-5-CHANGED: CAPWAP changed state to
*Oct 6 15:28:47.765: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully peer_ip: 172.16.97.3 peer_port: 5246
*Oct 6 15:28:47.765: %CAPWAP-5-SENDJOIN: sending Join Request to 172.16.97.3
*Oct 6 15:28:47.765: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
*Oct 6 15:28:47.845: %CAPWAP-5-CHANGED: CAPWAP changed state to CFG
*Oct 6 15:28:47.845: %CAPWAP-3-ERRORLOG: Starting config timer
*Oct 6 15:28:47.957: %LWAPP-3-CLIENTERRORLOG: Operator changed mode for 802.11g. Rebooting.
*Could somebody help me to solve the issue ?
Rgds
DineshBefore trying the stuff below, you might want to connect your AP back to the network, go to the controller CLI and issue the following command:
debug capwap detail enable
Watch watch messages are displayed when the AP fails to join.
I can't my docs on how to do this, so I can't be sure these instructions are corrent...
You may want to try and clear all the LWAPP/CAPWAP configuration that the AP has learned. While holding in the mode button, apply power to the AP (release the mode button after about 5 seconds). Via the console port, you should be able to get to a command prompt. Go to enable mode (password should be "Cisco" or "cisco" [without the quotes]. Once in enable mode, try issuing a "clear lwapp private-config" command. If that doesn't work, try working through the CLI help to see what clear options you have. You then might want to try and manually set up the AP. Sample commands to give it an IP address and point it towards a WLC are below.
#clear lwapp private-config
#lwapp ap hostname mynewap
#lwapp ap ip address 10.77.244.199 255.255.255.224
#lwapp ap ip default-gateway 10.77.244.220
#lwapp ap controller ip address 172.16.1.50 -
ISE Sending Hostname in CWA Redirect
Dear Support Team.
we have setup in which wireless controllers are deployed in Foreign & Anchor Scenario. (Guest WLC or Anchor is deployed in DMZ) , Controllers are running 7.3 and CWA config is done as per standard TAC documents.
When WLC redirects the session to ISE, Redirection URL has ISE hostname and is something like this
https://ise-ip-address:8443/guestportal/gateway........
we have setup Guest Access in such a way, that guest dhcp pool is using the Public DNS, we are not providing our internal DNS to guest dhcp pool, since public DNS does not have an entry for ise-ip-address, DNS resolution Fails and CWA is not happening.
is it possible that ISE can send IP address in place of its hostname, for example
https://10.15.24.20:8443/guestportal/gateway......
Any help will be highly appreciated.
Thanks
AhadOne workaround that I have gotten to work in the past when using ASA firewalls is to create a static NAT entry and leverage DNS inspection to translate the Private IP address for you. It is important to note that in this example the domain name that the ISE PSN is registered as is on a publicly resolvable domain name which you have control of the DNS entries.
In this example we will have a three legged ASA. Inside, DMZ, and Outside.
The PSN's hostname is psn.example.com.
The PSN's Private IP address is 10.1.1.100
Steps:
Create a Public DNS record for psn.example.com. For best practices you should use an IP address that belongs to you and that is not a part of RFC 1918. This way the public DNS servers do not reject the IP address for some other reason. In this example we will use 1.1.1.1
Enable DNS inspeciton on the ASA.
Create a Static NAT entry for 1.1.1.1 (outside) -> 10.1.1.100 (inside) and enable DNS translation.
Now when the CWA user connects and gets a public DNS server it will query the public server for psn.exmaple.com and the public DNS server will return 1.1.1.1. Now because of the DNS inspection the reply of 1.1.1.1 is replaced with the private IP address of 10.1.1.100.
End result is the DMZ host using a public DNS server to return a private IP address. If you have multiple PSNs you will need to create multiple DNS and NAT.
You are welcome to try and use RFC Bogus RFC 1918 addresses, but the public DNS servers may have rules against doing so which is why i recommend using the public IP addresses that you own. It is important to remember that even though you are creating Inside to Outside NAT entries for your ISE servers because you haven't created any inboundACL's they are not exposed to the Internet just because you created a NAT for them.
Here is a cisco doc on how to do "DNS Doctoring"
http://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/72273-dns-doctoring-3zones.html
I should note that I have tested this using 1.2 with the static hostname, but I have not tested it with 1.1.4, but the underlying pricipals should be the same. -
Aironet 1040 Series Apple frequently drops
I'm running Cisco Aironnet 1040 series routers and all my Apple computers (NOT iPhones or iPads just the computers) continue to get dropped by the routers. The time ranges anywhere from less than a minute to an hour, depending how many clients are connected. I have no trouble at all with any mobile devices and none with non apple computers. This has been going on since we've bought them last year. I'm trying to use WPA authentication. I've read forums and places where you can use MAC authentication and the problem seems to go away. That's not an ideal option for as many clients as I have on the network. I've attempted to update the software, revert the software and reset to default. Nothing has made any difference at all. I've also tried changing the channel it broadcasts on, with no luck. I've double checked the firmware on the Apple computers and they are up to date. My configuration is below.....Any ideas on what I can change or do I need to pursue a different router that isn't Cisco?
show run
Building configuration...
Current configuration : 1401 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname 3FN
logging rate-limit console 9
enable secret 5 $1$fMiK$UE/.aUuGGZiuvi17KWbPM0
no aaa new-model
dot11 syslog
dot11 ssid danielwpa
authentication open
authentication key-management wpa version 2
wpa-psk ascii 7 15435C5F517E7871793237
username Cisco password 7 1531021F0725
username Admin privilege 15 password 7 06525C7442595A40
bridge irb
interface Dot11Radio0
no ip address
no ip route-cache
encryption mode ciphers aes-ccm tkip
ssid danielwpa
antenna gain 0
channel 2437
station-role root
world-mode legacy
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
no ip address
no ip route-cache
duplex auto
speed auto
no keepalive
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface BVI1
ip address 10.1.0.154 255.0.0.0
no ip route-cache
ip default-gateway 10.0.0.1
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
line con 0
line vty 0 4
login local
transport input all
endGoing through the logs I see the MAC addresses of my computers that are disconnected with it saying:
*Mar 17 18:19:55.169: %DOT11-4-MAXRETRIES: Packet to client 74e5.43cf.b184 reached max retries, removing the client
*Mar 17 18:19:55.175: %DOT11-4-MAXRETRIES: Packet to client c09f.4227.2cfc reached max retries, removing the client
*Mar 17 18:19:55.179: %DOT11-4-MAXRETRIES: Packet to client 80c1.6e1c.ef26 reached max retries, removing the client
Not sure if that helps at all or not. I see plenty of logs showing my computer connecting just fine and moving from one AP to another but it appears to timeout (rather quickly I might add) and drop the connection. So it's obviously something with the router. I can always connect right back to the network without a problem. It doesn't ask for a password or anything. -
URGENT-Multiple IPs Series In WAN
Hi There...
My RMIServer Application is Running on a WAN Server Having 10.X.X.X Series IPAddresses and it is working Fine.
My Server Having two Different IP's for WAN and LAN Connectivity as below.
WAN: 10.x.x.x
LAN:172.x.x.x
When i want to Provide Access to LAN I have to Use LAN IP Address as Server.hostname Property.
And Similler For WAN client i h've to Start Server on WAN IP.
System.setProperty("java.rmi.server.hostname",IpAddress);Is There Any Common Solution for This to Solve this. Problem.
I tried as below to solve this issue.
I started to Use ServerHostName in Naming.lookup URL. Instead Of Using IPAddress.
But then I Got connection Refused Exception since Server IP is Different Series.
What I Can Do to Solve this??
Thanks,
Timir.Any reason for not posting this on one of you existing threads? How to Use in WAN / How to Use in WAN
Ah, it was much too URGENT for you to bother finding your old threads...
My RMIServer Application is Running on a WAN Server
Having 10.X.X.X Series IPAddresses and it is working
Fine.
My Server Having two Different IP's for WAN and LAN
Connectivity as below.
WAN: 10.x.x.x
LAN:172.x.x.xAccording to RFC 1918, your WAN IP address is in the private address space?
3. Private Address Space
The Internet Assigned Numbers Authority (IANA) has reserved the
following three blocks of the IP address space for private internets:
10.0.0.0 - 10.255.255.255 (10/8 prefix)
172.16.0.0 - 172.31.255.255 (172.16/12 prefix)
192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
When i want to Provide Access to LAN I have to Use LAN
IP Address as Server.hostname Property.Provide access to the LAN - from what/where?
Do you mean provide access FROM a client on the LAN TO your server application?
And Similar For WAN client i have to Start Server on WAN IP.
I tried as below to solve this issue.You intended to include some code here?
I started to Use ServerHostName in Naming.lookup URL.
Instead Of Using IPAddress.
But then I Got connection Refused Exception since
Server IP is Different Series.
What I Can Do to Solve this??Can you not just run two instances? (listening on different ports). -
How to send jms message to mq series
Hi all,
I'm new to JMS and I've been asked to send an xml file to a IBM MQ series message queue.
I need to send this message from an application running on a tomcat webserver.
Basically, what packages do I need to start with that?
Is that possible without installing an MQ client on the webserver?
What parameters would I need to make a connection? I currently only know the QUEUE name and that the MQ is running on a different machine than the webserver is.
Thank you!
StevenThis can help u writing to MQueue
==================================================================
// Program Name
// MQWrite
// Last date of modification
// 1 Oct 2000
// Description
// This java class will read a line of input from the keyboard
// and send it as a message. The program will loop until the
// user presses CTL^Z.
// Sample Command Line Parameters
// -h 127.0.0.1 -p 1414 -c CLIENT.CHANNEL -m MQA1 -q TEST.QUEUE
// Copyright(C), Roger Lacroix, Capitalware
import com.ibm.mq.*;
import java.io.IOException;
import java.util.Hashtable;
import java.io.*;
public class MQWrite {
private MQQueueManager _queueManager = null;
private Hashtable params = null;
public int port = 1414;
public String hostname = "127.0.0.1";
public String channel = "CLIENT.TO.MQA1";
public String qManager = "MQA1";
public String outputQName = "SYSTEM.DEFAULT.LOCAL.QUEUE";
public MQWrite()
super();
private boolean allParamsPresent()
boolean b = params.containsKey("-h") &&
params.containsKey("-p") &&
params.containsKey("-c") &&
params.containsKey("-m") &&
params.containsKey("-q");
if (b)
try
port = Integer.parseInt((String) params.get("-p"));
catch (NumberFormatException e)
b = false;
// Set up MQ environment
hostname = (String) params.get("-h");
channel = (String) params.get("-c");
qManager = (String) params.get("-m");
outputQName = (String) params.get("-q");
return b;
private void init(String[] args) throws IllegalArgumentException
params = new Hashtable(5);
if (args.length > 0 && (args.length % 2) == 0)
for (int i = 0; i < args.length; i+=2)
params.put(args, args[i+1]);
else
throw new IllegalArgumentException();
if (allParamsPresent())
// Set up MQ environment
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.port = port;
else
throw new IllegalArgumentException();
public static void main(String[] args)
MQWrite write = new MQWrite();
try
write.init(args);
write.selectQMgr();
write.write();
catch (IllegalArgumentException e)
System.out.println("Usage: java MQWrite <-h host> <-p port> <-c channel> <-m QueueManagerName> <-q QueueName>");
System.exit(1);
catch (MQException e)
System.out.println(e);
System.exit(1);
private void selectQMgr() throws MQException
_queueManager = new MQQueueManager(qManager);
private void write() throws MQException
String line;
int lineNum=0;
int openOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING;
try
MQQueue queue = _queueManager.accessQueue( outputQName,
openOptions,
null, // default q manager
null, // no dynamic q name
null ); // no alternate user id
DataInputStream input = new DataInputStream(System.in);
System.out.println("MQWrite v1.0 connected");
System.out.println("and ready for input, terminate with ^Z\n\n");
// Define a simple MQ message, and write some text in UTF format..
MQMessage sendmsg = new MQMessage();
sendmsg.format = MQC.MQFMT_STRING;
sendmsg.feedback = MQC.MQFB_NONE;
sendmsg.messageType = MQC.MQMT_DATAGRAM;
sendmsg.replyToQueueName = "ROGER.QUEUE";
sendmsg.replyToQueueManagerName = qManager;
MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the defaults, same
// as MQPMO_DEFAULT constant
while ((line = input.readLine()) != null)
sendmsg.clearMessage();
sendmsg.messageId = MQC.MQMI_NONE;
sendmsg.correlationId = MQC.MQCI_NONE;
sendmsg.writeString(line);
// put the message on the queue
queue.put(sendmsg, pmo);
System.out.println(++lineNum + ": " + line);
queue.close();
_queueManager.disconnect();
catch (com.ibm.mq.MQException mqex)
System.out.println(mqex);
catch (java.io.IOException ioex)
System.out.println("An MQ IO error occurred : " + ioex);
// Description
// This java class will read a line of input from the keyboard
// and send it as a message. The program will loop until the
// user presses CTL^Z.
// Sample Command Line Parameters
// -h 127.0.0.1 -p 1414 -c CLIENT.CHANNEL -m MQA1 -q TEST.QUEUE
import com.ibm.mq.*;
import java.io.IOException;
import java.util.Hashtable;
import java.io.*;
public class MQWrite {
private MQQueueManager _queueManager = null;
private Hashtable params = null;
public int port = 1414;
public String hostname = "127.0.0.1";
public String channel = "CLIENT.TO.MQA1";
public String qManager = "MQA1";
public String outputQName = "SYSTEM.DEFAULT.LOCAL.QUEUE";
public MQWrite()
super();
private boolean allParamsPresent()
boolean b = params.containsKey("-h") &&
params.containsKey("-p") &&
params.containsKey("-c") &&
params.containsKey("-m") &&
params.containsKey("-q");
if (b)
try
port = Integer.parseInt((String) params.get("-p"));
catch (NumberFormatException e)
b = false;
// Set up MQ environment
hostname = (String) params.get("-h");
channel = (String) params.get("-c");
qManager = (String) params.get("-m");
outputQName = (String) params.get("-q");
return b;
private void init(String[] args) throws IllegalArgumentException
params = new Hashtable(5);
if (args.length > 0 && (args.length % 2) == 0)
for (int i = 0; i < args.length; i+=2)
params.put(args[i], args[i+1]);
else
throw new IllegalArgumentException();
if (allParamsPresent())
// Set up MQ environment
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.port = port;
else
throw new IllegalArgumentException();
public static void main(String[] args)
MQWrite write = new MQWrite();
try
write.init(args);
write.selectQMgr();
write.write();
catch (IllegalArgumentException e)
System.out.println("Usage: java MQWrite <-h host> <-p port> <-c channel> <-m QueueManagerName> <-q QueueName>");
System.exit(1);
catch (MQException e)
System.out.println(e);
System.exit(1);
private void selectQMgr() throws MQException
_queueManager = new MQQueueManager(qManager);
private void write() throws MQException
String line;
int lineNum=0;
int openOptions = MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING;
try
MQQueue queue = _queueManager.accessQueue( outputQName,
openOptions,
null, // default q manager
null, // no dynamic q name
null ); // no alternate user id
DataInputStream input = new DataInputStream(System.in);
System.out.println("MQWrite v1.0 connected");
System.out.println("and ready for input, terminate with ^Z\n\n");
// Define a simple MQ message, and write some text in UTF format..
MQMessage sendmsg = new MQMessage();
sendmsg.format = MQC.MQFMT_STRING;
sendmsg.feedback = MQC.MQFB_NONE;
sendmsg.messageType = MQC.MQMT_DATAGRAM;
sendmsg.replyToQueueName = "ROGER.QUEUE";
sendmsg.replyToQueueManagerName = qManager;
MQPutMessageOptions pmo = new MQPutMessageOptions(); // accept the defaults, same
// as MQPMO_DEFAULT constant
while ((line = input.readLine()) != null)
sendmsg.clearMessage();
sendmsg.messageId = MQC.MQMI_NONE;
sendmsg.correlationId = MQC.MQCI_NONE;
sendmsg.writeString(line);
// put the message on the queue
queue.put(sendmsg, pmo);
System.out.println(++lineNum + ": " + line);
queue.close();
_queueManager.disconnect();
catch (com.ibm.mq.MQException mqex)
System.out.println(mqex);
catch (java.io.IOException ioex)
System.out.println("An MQ IO error occurred : " + ioex); -
Edit Return Addresses - Invalid hostname. Only US-ASCII characters are allowed.
On our two C series appliances the C350 and the C660 we can log in to the GUI and go to System Administration \ Return Addresses and change the
Return Addresses for System-Generated Email to something more meaningful and practical then reports@hostname. For example we like to use a proper suffix instead of @hostname we use @ourAwesomeCompany.com. Anyway on the M series the M650 we can't change the suffix East of the @ sign. We get this error:
Invalid hostname. Only US-ASCII characters are allowed.
Did any of you, or can any of you change the Return Addresses on your M series? You don't have to go as far as commiting the changes if you are willing to try this for me, just type something in and hit Submit that should be enough to generate the error.Hello,
We have two M1060.
When we tested the version 7.7.0-206 or earlier, we found the same problem as you by GUI.
Recently, we're migrating to 7.9.0-107 and that is right now.
So, you can migrate without fear -
Hostname or FQDN problems when using proxies
I recently set up Firefox (10.0.2) on my work network as I hate using IE. There are a whole series of Corporate websites that I connect to direct and I can connect to the Internet via a proxy. Unfortunately a lot of the Corporate websites only use the hostname in their URL rather than the full FQDN, relying on the operating system (Windows XP) to expand the hostname to the full FQDN and resolve the IP address (this works fine within IE). Unfortunately with Firefox when it finds a URL with only a hostname it sends it direc to the proxy which rejects it. However, if I manually put in the same URL using the hosts FQDN the website is pulled down absolutely fine.
As I don't control the internal websites I can't put all of the individual hostnames in the proxy exception settings as I simply don't know them and they are likely to change over time.
Is there some magic entry I can put in the proxy exception setting that tells Firefox not to send hostname only URLs to the proxy? or to at least attempt to resolve the hostname to FQDN and check against the exceptions list prior to forwarding to the proxy?
Many thanks,
KevYes dup count protection strikes again, this is a common problem that keeps popping up. NI should put a warning about this. It had me stuck for a few days when I migrated from traditional DAQ to DAQMX, and it stumps just about everyone who encounters it for the first time. To make things worse, it is a property that is very well hidden in the property hierarchy.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA -
Alternative to System.getProperty("microedition.hostname")
Hey is there any other alternative for 'System.getProperty("microedition.hostname")' to get the ip address of the device running the j2me midlet ??
When you run the midlet on the emulator, System.getProperty("microedition.hostname") returns the PC's Name, but on a Nokia series 40(3rd E) device, it returns null.
So is there an alternative to this to select the device's ip address ?First this is a pretty specific question which applies to a specific device rather than to reflection/reference. You might want to look for a forum that addresses the specific device.
Second, you can print the system properties normally. Whether you can do that on the device depends on the device. If you succeed you might find an alternative.
Third normally one uses the java.net.IpAddress to get a device IP. Does that not work for that device? -
Cannot get HOSTNAME to display on front panel on my new WC5955's like I can on my old WC5755's
Hi, I have set the Display Device Information option under General Setup (used to be under Security) to "HOSTNAME". I get an error stating that the HostName is not fully qualified. For security reasons, we use static IP addresses and do not want our copiers registered in DNS. We use the queue name for our host name and device name. We require that print queue name to be displayed on the copier's front panel so the users can easily identify the print queue name of the copier. The last 3-digits of the queue name is the 4th number in each printer/copier's IP address. The old WC57xx Series copiers happily display their hostnames without restriction. Why was this changed? Annoying!!! -John
After years of battling over the security issues resident with Netbios over TCP/IP Xerox has it seems removed "Windows Networking" from all current devices. This is the same thing that disables the use of scanning to a hostname instead of an IP in a non-Domain environment. Your only option here is to lie and put it manually via choosing "Contact Name" and filling in the hostname:
-
Setting time on 1130AG series Access Point
I noticed on one of my clients AP's which is an 1130AG series that it had a setting for SNTP. I was a little surprised that it did not have the capability to use regular NTP.
The SNTP servers configured for the AP were two Cisco routers.
Is this a common configuration? Is there a way to upgrade so that the AP's can use NTP?
The current code on the AP is 12.3(8)JA.
Thanks
KevinHi Kevin,
The commands for this changed from NTP to SNTP somewhere in the 12.2.x releases, so "older" AP IOS's did support NTP. Here is some info for 12.3.(4)JA;
Managing the System Time and Date
You can manage the system time and date on the wireless device automatically, using the Simple Network Time Protocol (SNTP), or manually, by setting the time and date on the wireless device.
Simple Network Time Protocol (SNTP) is a simplified, client-only version of NTP. SNTP can only receive the time from NTP servers; it cannot be used to provide time services to other systems. SNTP typically provides time within 100 milliseconds of the accurate time, but it does not provide the complex filtering and statistical mechanisms of NTP.
You can configure SNTP to request and accept packets from configured servers or to accept NTP broadcast packets from any source. When multiple sources are sending NTP packets, the server with the best stratum is selected.
If multiple servers are at the same stratum, a configured server is preferred over a broadcast server. If multiple servers pass both tests, the first one to send a time packet is selected. SNTP will only choose a new server if it stops receiving packets from the currently selected server, or if a better server (according to the above criteria) is discovered.
Configuring SNTP
SNTP is disabled by default. To enable SNTP on the access point, use one or both of these commands in global configuration mode:
sntp server {address | hostname}
[version number]
Configures SNTP to request NTP packets from an NTP server.
sntp broadcast client
Configures SNTP to accept NTP packets from any NTP broadcast server
Enter the sntp server command once for each NTP server. The NTP servers must be configured to respond to the SNTP messages from the access point.
If you enter both the sntp server command and the sntp broadcast client command, the access point will accept time from a broadcast server but prefers time from a configured server, assuming the strata are equal. To display information about SNTP, use the show sntp EXEC command.
Hope this helps!
Rob
Maybe you are looking for
-
I am merging .psd's and multi-page pdf's into a single pdf. When I import the other .pdfs and then save, it is only saving the first page. How can I fix this? I very much appreciate the help. Brock
-
I'm about to buy an interface for my powerbook and I was just curious, what is Phantom Power and how will it affect my recording? thanks
-
Hi all, what are extraction methods for FI_AR, FI_GL, FI_AP.. can any body tell me clearly regards ashwin
-
I would like to call exe(start process) on another computer from CLR procedure? Is it possible? Now, i have System.Diagnostics.Process but it copies exe locally and run it on sql server computer, not on remote one.
-
I have a sudden problem. When I launched Aperture this morning I could not get most images to finish loading. Images that were exported and modified in PS would display fine. Images that were in Aperture generally do not finish loading. When they do,