How do I configure ACE30 to allow server to server and server to VIP communications

       I have a ACE30 with 2 client vlans and 2 server vlans in a 2-arm routed mode.  I want to allow  server initiated traffic from either server vlan to access both client vlans via a VIP and also allow server to server traffic between the 2 server vlans via the server IP address.  This is all in a single context. Attached is a diagram of the environment.  The server's gateway is the ACE interface for that particular vlan.
so servers on vlan 206 will initiate traffic to either vlan 296 or 298 and therefore load balance to servers on either vlan 206 or 216.  same goes for server vlan 216. 
In conjunction with that how do i configure the ACE so that the servers in one vlan can talk to the servers in the other via directly via their IP address.  for instance the source would be vlan 206 and the destination would be vlan.
Thank you
Tony.

Chris,  does this look correct based on your description of how to configure:
class-map match-all REAL-SERVERS-VL226
  2 match source-address 10.192.34.0 255.255.255.0
class-map match-all REAL-SERVERS-VL246
  2 match source-address 10.192.44.0 255.255.255.0
policy-map multi-match INTRA-server_P
  class LYNCP2F_C
    loadbalance vip inservice
    loadbalance policy LYNCP2F_P
    loadbalance vip icmp-reply active
    nat dynamic 5 vlan 246
  class LYNCP-FE_C
    loadbalance vip inservice
    loadbalance policy LYNCP-FE_P
    loadbalance vip icmp-reply active
  class REAL-SERVERS-VL226
     nat dynamic 1 vlan 226
  class REAL-SERVERS-VL246
     nat dynamic 2 vlan 246
interface vlan 226
  description Intranet Services Server Vlan 226
  ip address 10.192.34.2 255.255.255.0
  alias 10.192.34.1 255.255.255.0
  peer ip address 10.192.34.3 255.255.255.0
  no icmp-guard
  access-group input ALL-IN
  nat-pool 1 10.192.34.254 10.192.34.254 netmask 255.255.255.0 pat
  service-policy input INTRA-server_P
  no shutdown
interface vlan 246
  description Intranet Services Server Vlan 246
  ip address 10.192.44.2 255.255.255.0
  alias 10.192.44.1 255.255.255.0
  peer ip address 10.192.44.3 255.255.255.0
  no icmp-guard
  access-group input ALL-IN
  nat-pool 2 10.192.44.254 10.192.44.254 netmask 255.255.255.0 pat
  service-policy input INTRA-server_P
  no shutdown
interface vlan 292
  description Intranet Services Client Vlan 292
  ip address 10.192.8.4 255.255.254.0
  alias 10.192.8.6 255.255.254.0
  peer ip address 10.192.8.5 255.255.254.0
  mac-sticky enable
  no icmp-guard
  access-group input ALL-IN
  no shutdown
interface vlan 294
  description Intranet Services Client Vlan 294
  ip address 10.192.6.4 255.255.254.0
  alias 10.192.6.6 255.255.254.0
  peer ip address 10.192.6.5 255.255.254.0
  mac-sticky enable
  no icmp-guard
  access-group input ALL-IN
  no shutdown

Similar Messages

  • How to make site root-relative links work in DW and Server both?

    See details on buggy DW image link behavior, below. My question is:
    1) how to make site root-relative links work in DW and Server both? Or…
    2) how to reliably automate the change of several hundred legacy root-relative links of the form
    /images/image.jpg  to document-relative?
    That is, to
    ../images/image.jpg or
    ../../images/image.jpg or
    ../../../images/image.jpg etc…depending on where the directory is.
    The old format (/images/image.jpg ) used to work fine in my previous DW 8 configuration but appear grey in DW after “upgrading” to DW cs5.5 mac. (they look fine on the server, but it’s hard to edit image-heavy pages locally when they are all grey).
    I tried changing the files to how DW creates root relative links now:
    /public_html/images/image.jpg, which is a very easy, attractive root flow since there’s a one-to-one mapping. These look great in DW but are broken on the server!
    I looked at the “advanced” site setup, and it looked like it might be possible to nuke the /public_html/ part of my server info…but it also looked like there was the potential for doing damage changing these settings, which are automatically generated from our server connection settings, which seem to work.
    The “links relative to document/ site root” toggle…does that change how DW interprets existing links, or just change the default when you are adding a link?  I have made 80% of the file links document relative…before wondering if root-relative isn’t better?
    It sure seems less ambiguous for all those images if theres a way to make root relative work for DW design view, DW link check, and server.
    Summary of buggy behavior: (see test with images here)
    "old style" site root link
          /images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: "external link" (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a (existing format)
    "new style" site root relative link
          /public_html/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: broken
          Ease of switching: easy
    Document relative link
          ../../images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: good
          Ease of switching: hard (how to automate?)
    Absolute link
          http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: external (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a...not a real option
    Thanks!
    Similar discussion on "/"

    Hello again Jon!
    Thanks for jumping on this.
    All clear and understood about where publc_html is etc.
    No contemplation of nuking the actual public_html directory on the server, just the "/public_html" text string at the start of the DW-generated links.
    "/public_html" is automatically added to the front of the link in DW if I create the link with any of the GUI tools, if I have "site root relative" selected. And ""/public_html" ends up in the code, and gets uploaded that way to the server, where it (obviously) doesn't work.
    Doesn't sound like it is supposed to work this way. Also, what seems to be the usual root relative format (/images/image.jpg) shows as a broken link in the GUI and an external link in the DW link check. All this togther makes me thinkI have some obscure setting incorrect?
    The setting that caught my eye is manage sites/ site setup/ advance settings/ local info/ web url,  which is automatically set to http://www.oasisdesign.net/public_html/
    it gives an option to change it but it makes every effort to make this NOT look like something users should mess with:
    Having gone through the more careful thought process during this post, I'm ready to do the experiment of changing the remote server web URL (why is it wrong by default?)...think I'll eat dinner first so there's 45 min to avert disaster if anyone knows this to be a bad idea!
    Art
    PS--don't  have a local testing server...don't think this will solve the GUI broken link/ link shows as external problems.
    Is there an easy, automated way to change links sitewide from document to root relative?

  • How to set MM02 should not allow to change account and costing view

    Hi all guru's
    How to set MM02 should not allow to change account and costing view details for orher users expect me,plz help me
    thanks
    ramesh

    Hi Ramesh,
                       Use the Authorization Object:  M_MATE_STA     Material Master: Maintenance Statuses
    Below are the Views for the MM02, Field STATM
    Whichever not wanted to be changed, please dont provide them.
    A     Work scheduling
    B     Accounting
    C     Classification
    D     MRP
    E     Purchasing
    F     Production resources/tools
    G     Costing
    K     Basic data
    L     Storage
    P     Forecasting
    Q     Quality management
    S     Warehouse management
    V     Sales
    X     Plant stocks
    Z     Storage location stocks
    Regards,
    Yawar Khan
    Edited by: 1234_abcd on Jan 10, 2012 8:14 AM

  • How do I configure my iMac to auto sync Pages and Keynote

    How do I configure my iMac to auto sync Pages and Keynote documents with iCloud like my iPad and iPhone does.  Note I've updated all devices to the latest software and I have iCloud configured for sharing on all but, neither app on my iMac auto finds and sync documents.

    Carolyn,
    Thanks but, I have iCloud setup and I'm signed into the same account on all devices.  I don't think I was clear is stating my problem with or expectations of the iCloud document syncing function.  I'm able to create a Pages document (suffix *.pages document) on my iMac and save it in the mobile documents folder but once I access it on my iPad the suffix changes to a "jpg" file and Pages can not open a "jpg" file.
    When working on the document on my iPad, the only way I can save it a in the ".pages document" format is to push it though iTunes and then go into iTune on my iMac and save the document down to my destop or document folder.  My expectation is that like the iCal, Contacts, Music, and Apps syncing, the document and data functions would be/should be seemless (i.e. same format on the OS platform as it is on the iOS platforms).
    It may be a bridge too far to Apple right now but, if they implemented this capability it would be awesome.
    Thanks again for your assistance,
    R,
    Seed 2.0

  • How to configure HFM to allow loading of EOM and AVG rates?

    I am new to HFM and would appreciate some assistance with loading of Exchange rates. I have created the currency members in the Value and Account Dimensions, and have also created two additional accounts (in the Accounts dimension) to capture the EOM and AVG rates, and tagged these as "currencyrate" in account type. How do I get the rates to appear in C1 and C2 so that I can load EOM and AVG rates? Firstly, the TO and FROM rates do not appear in C1 & C2 for me to select (via a Grid).  And when I tried to load the data via a flat file, the system highlights that the intersection is invalid..
    Scenario;Year;Period;View;Entity;Value;Account;ICP;C1;C2;C3;C4;Amount
    Actual;2013;Jul;YTD;[None];<Entity Currency>;EOMRate;[ICP None];AUD;USD;[None];[None];X.XXXX
    When I tried creating the currencies in C1 & C2, the system rejected the members due to duplication (ie in the Value dimension)
    Assistance appreciated.
    Thanks
    JC

    Hi JC,
    To view/load the rates in a grid you'll want to select [Currencies] from View option in your Member Selection.  View is the first of the three icons at the top of the screen (View, Filters, and Options).  Once you select [Currencies] you'll see a list comprised of all members you've previously added to the Value dimension.
    Your flat file looks good, however, you might try loading to [None] in the Value dimension rather than <Entity Currency>.  Also, confirm the members to which you're loading in C1 and C2 exist in the Value dimension.
    Note: you can also view/load rates using HsSetValue formulas.
    Thanks,
    Erich

  • How to properly configure a home network using both Mac and PC computers

    Is there a book or set of guidelines that can tell me how to properly configure (exact specifications) my computers in a home network? Here is what I am trying to do and using:
    1) Three computers: iMac (late 06 ver), Macbook (newest version), Dell laptop. The two Macs are using Leopard and the PC is XP.
    2) Bellsouth modem which feeds into the Airport Extreme Base Station (AEBS)
    3) The AEBS has a USB hub which is connected to a external hard drive and two inkjet printers. A third laser printer/scanner/fax machine is connected to the AEBS via ethernet.
    4) All three computers use a wireless connection to the AEBS.
    I would like the following:
    1) Have a secured and password driven network - don't want outsiders connecting to the nework without permission.
    2) All computers to be able to access the USB printers and ext HD.
    3) The two Macs to read/write to each other with password access
    4) The iMac to have read/write capabalities over the PC via VSFusion or Bootcamp if possible.
    Currently, all three have Internet access via the AEBS and can print on the ethernet printer. Both Macs can see the Bonjour USB printers and print (however they to do not display on the AEBS configuration display utility and neither does the ext HD). The USB ext HD is shown on the iMac desktop and I have access to it, but does not display on the MacBook. I have not checked if the PC sees the external HD and it really does not matter if it ever does, although it would be nice.
    I am hoping that there is some standard configuration that I can "cut and paste" that is generally used to allow a home network to share resources while still being secure.
    Any advice and help is greatly appreciated.
    Thanks,
    Andrew

    Andrew,
    What you would like is fairly complicated so this will probably be a lengthy post, but hopefully I can assist you.
    As others here have pointed out, networks can vary widely, but the best networks have one element in common: planning. The first thing you need to think about is how you would like all of these systems to cooperate. For instance, do you want one of the machines to serve files to the others and be a central repository, or are you just interested in having them share documents on occasion so that you don't have to carry around, say, a USB key all the time? That said, here is a basic list of things I think you should look into.
    1. Network Basics
    First step is to get your local network set up. I'd go for WPA or WPA2 wireless security as they are relatively strong standards and you can use human-readable passwords. Additionally, unless you have an explicit need for someone outside your network to initialize a connection (Windows' RDP for instance), do not allow any passthroughs or port redirects on your AEBS.
    2. Network Topology
    Decide how you want computers and networked devices to identify themselves and their relative locations in the network: in short, do you want static ip's or dynamic ip's? Most of the time, static IP's can be assigned on a DHCP router, the trick is to assign the statics higher than your number of devices (or lower on some routers - for instance Linksys routers start DHCP at 192.168.1.100 but you could have statics from 192.168.1.2 to 192.168.1.99). For instance, it is impractical to set a laptop to static because I'm often in coffee shoppes and other environments that assign via DHCP; on the other hand, it's a good idea to have a printer be static so that you always know where to find it. So, I have 10.0.1.x network (default on AEBS), and the printer is 10.0.1.24, since the likelihood of my encountering an IP conflict with 4 computers on the subnet is virtually zero. If you configure a static device behind your AEBS, defaults are usually
    Default Gateway 10.0.1.1
    IP Address 10.0.1.(your choice)
    Subnet Mask 255.255.255.0
    3. File-sharing.
    3a) Mac OS X has a built-in SMB/CIFS (Windows file & printer sharing protocol) client, and a basic SMB [samba] server can be enabled in the sharing preference panel (enable file and/or printer sharing). Windows XP can use these shares, but must authenticate. For that reason, you may not be able to see your shares in the Network Places browser, however you should be able to get to them by mapping the network drive (tools menu) or executing RUN with \\computer.name\share.name. You will then be able to type in your credentials. I would also suggest relatively simple names for the Macs in question (set in Sharing preference pane). Typing Andrew's-iMac-G4 in every time you want to find it will get irritating after a while to say the least, especially if you need to troubleshoot.
    3b) The reverse works similarly. You can Connect to Server... from Finder to get to the Windows shares. To do this you must have Windows File and Printer sharing enabled (most easily through the Network Setup Wizard in Control Panels - Use Classic View). It's really easy if your account names and passwords are identical on the Mac and PC, because when loading user profiles, the Mac will generally automatically try to authenticate against the Windows machine with your Mac logon credentials. (Windows seems to do this against the Mac as well) You can write an Applescript or there are some PLIST modifications you can make to mount Windows shares at login.
    4. Printing
    I'm not exactly sure what you had in mind here since I'm not sure what's connected to which computer or directly to the network. If it is possible, I personally find putting my printers directly on the network to be the easiest thing. Especially if printing large PDF or graphics files, the spooling on the host system can really slow the computer down, and slow down printing. For example, I used to have a laserjet on a Windows box and had to print a very large file. Going through a Win print server, it only printed a page every 30 seconds, but when I got a jetdirect adapter, the whole thing was done in under two minutes. If you have HP Printers, I would recommend the jetdirect print servers (I have used with both a laserjet and a supposedly unsupported color inkjet).

  • Distributed system concept, how 2 server link up and serve a client

    here are my code...
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class Server extends JFrame{
         private JTextArea jta=new JTextArea();
         public static void main (String[] args){
              new Server(); //launch server
         public Server(){//construct a server class
         getContentPane().setLayout (new BorderLayout());
         getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
         setTitle("Server");
         setSize(500,300);
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setVisible(true);
         try{
         //create a server socket
              ServerSocket serverSocket=new ServerSocket(8000); //server scoket
              jta.append("Server started" +"........"+'\n');
              //listen for a connection request
              Socket socket=serverSocket.accept(); //connect client
              //create data input and output stream
         DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
         DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
         while(true){ // while true, server wait user input
              jta.append("Server waiting input from client" +"........"+'\n');
              Calendar calendar = Calendar.getInstance();
             int GMT = calendar.get(Calendar.HOUR_OF_DAY); //time
             long totalMilliseconds=System.currentTimeMillis();
             long totalSeconds=totalMilliseconds/1000;
             int currentSecond=(int)(totalSeconds%60); //GMT seconds
              long totalMinutes=totalSeconds/60;
              int currentMinute=(int)(totalMinutes%60);     //GMT minutes
              long totalHours=(totalMinutes/60);
              int currentHour=(int)(totalHours%24);
              int Hour=(currentHour+8)%24; // GMT HOUR
             String c=""; // c for country
              int option = inputFromClient.read();//getinput perform country selection
              if(option==1){
                   c="Africa";
              if(option==2){
                   c="Australia";
              if(option==3){
                   c="Adelaide";
              if(option==4){
                   c="Chaina";
              if(option==5){
                   c="Korea";
              if(option==6){
                   c="Chicago";
              if(option==7){
                   c="New York";
              if(option==8){
                   c="Caracas";
              if(option==9){
                   c="Rio De Janeira";
              if(option==10){
                   c="Racife";
              if(option==11){
                   c="Azores";
              if(option==12){
                   c="London";
              if(option==13){
                   c="Paris";
              if(option==14){
                   c="Cairo";
              if(option==15){
                   c="Moscow";
              if(option==16){
                   c="Baku";
              if(option==17){
                   c="Karachi";
              if(option==8){
                   c="Dhaka";
              if(option==19){
                   c="Bangkok";
              if(option==20){
                   c="Tokyo";
              jta.append("Client select: " + c +'\n');
    switch(option)//read desire destination, and perform calculation, GMT time base on LONDON
             case 1:
             GMT=currentHour+1;
             jta.append("Africa time now is " + GMT+ ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);     
                 break;
                 case 2:
             GMT=currentHour+8;
             outputToClient.writeInt(GMT);
                 jta.append("Australia time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             break;
             case 3:
             GMT=currentHour+9;
             outputToClient.writeInt(GMT);
             jta.append("Adelaide time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             break;
             case 4:
             GMT=currentHour+8;
             outputToClient.writeInt(GMT);
             jta.append("Chaina time now is " + GMT + ":" +currentMinute + ":" + currentSecond +"\n");
             break;
             case 5:
             GMT=currentHour+9;
             outputToClient.writeInt(GMT);
             jta.append("Korea time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");     
              break;
             case 6:
             GMT=currentHour-6;
             outputToClient.writeInt(GMT);
             jta.append("Chicago time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break;
             case 7:
              GMT=currentHour-5;
             jta.append("New York time now is " + GMT + ":" +currentMinute + ":"+currentSecond +"\n");
             outputToClient.writeInt(GMT);
              break;
             case 8:
             GMT=currentHour-4;
             outputToClient.writeInt(GMT);
             jta.append("Caracas time now is " + GMT + ":"+ currentMinute + ":"+currentSecond +"\n");
                break; 
             case 9:
             GMT=currentHour-3;
             outputToClient.writeInt(GMT);
             jta.append("Rio De Janeiro time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break;
             case 10:
             GMT=currentHour-2;
             outputToClient.writeInt(GMT);
             jta.append("Recife time now is " + GMT + ":"  + currentMinute + ":" + currentSecond +"\n");
              break;
             case 11:        
             GMT=currentHour-1;
             outputToClient.writeInt(GMT);
             jta.append("Azores time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
                break;
             case 12:
             GMT=currentHour;
             outputToClient.writeInt(GMT);
                 jta.append("London time now is " + GMT + ":"+ currentMinute + ":" + currentSecond +"\n");
              break;
             case 13:
             GMT=currentHour+1;
             outputToClient.writeInt(GMT);
             jta.append("Paris time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
              break;
             case 14:        
             GMT=currentHour+2;
             outputToClient.writeInt(GMT);
             jta.append("Cairo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break; 
             case 15:       
             GMT=currentHour+3;
             outputToClient.writeInt(GMT);
             jta.append("Moscow time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
                 break;
             case 16:       
             GMT=currentHour+4;
             jta.append("Baku time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);        
                 break;
             case 17:
                 GMT=(currentHour+5)%24;
             jta.append("Karachi time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
                 break;
             case 18:
             GMT=(currentHour+6)%24;
             jta.append("Dhaka time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
              break;
             case 19:
             GMT=(currentHour+8)%24;
             jta.append("Hong Kong time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
              outputToClient.writeInt(GMT);
              break;
             case 20:
             GMT=(currentHour+9)%24;
             jta.append("Tokyo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
                 break;
             }//end switch
                //export HOUR, minute,second to client side
             outputToClient.writeInt(GMT);
             outputToClient.writeInt(currentMinute);  
             outputToClient.writeInt(currentSecond);
              jta.append("Option Found "+ c +'\n');
              catch(IOException ex){
              System.err.println(ex);
      }//end constructor
    }//end server class
    //server 2
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class Server2 extends JFrame{
         private JTextArea jta=new JTextArea();
         public static void main (String[] args){
              new Server(); //launch server
         public Server2(){//construct a server class
         getContentPane().setLayout (new BorderLayout());
         getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
         setTitle("Server");
         setSize(500,300);
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setVisible(true);
         try{
         //create a server socket
              ServerSocket serverSocket1=new ServerSocket("127.0.0.2",8001); //server scoket
              jta.append("Server2 started" +"........"+'\n');
              //listen for a connection request
              Socket socket=serverSocket1.accept(); //connect client
         //     Socket socket1=serverSocket.accept();
              //create data input and output stream
         DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
         DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
         while(true){ // while true, server wait user input
              jta.append("Server waiting input from client" +"........"+'\n');
              Calendar calendar = Calendar.getInstance();
             int GMT = calendar.get(Calendar.HOUR_OF_DAY); //time
             long totalMilliseconds=System.currentTimeMillis();
             long totalSeconds=totalMilliseconds/1000;
             int currentSecond=(int)(totalSeconds%60); //GMT seconds
              long totalMinutes=totalSeconds/60;
              int currentMinute=(int)(totalMinutes%60);     //GMT minutes
              long totalHours=(totalMinutes/60);
              int currentHour=(int)(totalHours%24);
              int Hour=(currentHour+8)%24; // GMT HOUR
             String c=""; // c for country
              int option = inputFromClient.read();//getinput perform country selection
              if(option==1){
                   c="Africa";
              if(option==2){
                   c="Australia";
              if(option==3){
                   c="Adelaide";
              if(option==4){
                   c="Chaina";
              if(option==5){
                   c="Korea";
              if(option==6){
                   c="Chicago";
              if(option==7){
                   c="New York";
              if(option==8){
                   c="Caracas";
              if(option==9){
                   c="Rio De Janeira";
              if(option==10){
                   c="Racife";
              if(option==11){
                   c="Azores";
              if(option==12){
                   c="London";
              if(option==13){
                   c="Paris";
              if(option==14){
                   c="Cairo";
              if(option==15){
                   c="Moscow";
              if(option==16){
                   c="Baku";
              if(option==17){
                   c="Karachi";
              if(option==8){
                   c="Dhaka";
              if(option==19){
                   c="Bangkok";
              if(option==20){
                   c="Tokyo";
              jta.append("Client select: " + c +'\n');
    switch(option)//read desire destination, and perform calculation, GMT time base on LONDON
             case 1:
             GMT=currentHour+1;
             jta.append("Africa time now is " + GMT+ ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);     
                 break;
                 case 2:
             GMT=currentHour+8;
             outputToClient.writeInt(GMT);
                 jta.append("Australia time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             break;
             case 3:
             GMT=currentHour+9;
             outputToClient.writeInt(GMT);
             jta.append("Adelaide time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             break;
             case 4:
             GMT=currentHour+8;
             outputToClient.writeInt(GMT);
             jta.append("Chaina time now is " + GMT + ":" +currentMinute + ":" + currentSecond +"\n");
             break;
             case 5:
             GMT=currentHour+9;
             outputToClient.writeInt(GMT);
             jta.append("Korea time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");     
              break;
             case 6:
             GMT=currentHour-6;
             outputToClient.writeInt(GMT);
             jta.append("Chicago time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break;
             case 7:
              GMT=currentHour-5;
             jta.append("New York time now is " + GMT + ":" +currentMinute + ":"+currentSecond +"\n");
             outputToClient.writeInt(GMT);
              break;
             case 8:
             GMT=currentHour-4;
             outputToClient.writeInt(GMT);
             jta.append("Caracas time now is " + GMT + ":"+ currentMinute + ":"+currentSecond +"\n");
                break; 
             case 9:
             GMT=currentHour-3;
             outputToClient.writeInt(GMT);
             jta.append("Rio De Janeiro time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break;
             case 10:
             GMT=currentHour-2;
             outputToClient.writeInt(GMT);
             jta.append("Recife time now is " + GMT + ":"  + currentMinute + ":" + currentSecond +"\n");
              break;
             case 11:        
             GMT=currentHour-1;
             outputToClient.writeInt(GMT);
             jta.append("Azores time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
                break;
             case 12:
             GMT=currentHour;
             outputToClient.writeInt(GMT);
                 jta.append("London time now is " + GMT + ":"+ currentMinute + ":" + currentSecond +"\n");
              break;
             case 13:
             GMT=currentHour+1;
             outputToClient.writeInt(GMT);
             jta.append("Paris time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
              break;
             case 14:        
             GMT=currentHour+2;
             outputToClient.writeInt(GMT);
             jta.append("Cairo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
              break; 
             case 15:       
             GMT=currentHour+3;
             outputToClient.writeInt(GMT);
             jta.append("Moscow time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");        
                 break;
             case 16:       
             GMT=currentHour+4;
             jta.append("Baku time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);        
                 break;
             case 17:
                 GMT=(currentHour+5)%24;
             jta.append("Karachi time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
                 break;
             case 18:
             GMT=(currentHour+6)%24;
             jta.append("Dhaka time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
              break;
             case 19:
             GMT=(currentHour+8)%24;
             jta.append("Hong Kong time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
              outputToClient.writeInt(GMT);
              break;
             case 20:
             GMT=(currentHour+9)%24;
             jta.append("Tokyo time now is " + GMT + ":" + currentMinute + ":" + currentSecond +"\n");
             outputToClient.writeInt(GMT);
                 break;
             }//end switch
                //export HOUR, minute,second to client side
             outputToClient.writeInt(GMT);
             outputToClient.writeInt(currentMinute);  
             outputToClient.writeInt(currentSecond);
              jta.append("Option Found "+ c +'\n');
              catch(IOException ex){
              System.err.println(ex);
      }//end constructor
    }//end server2 class
    //client class
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Client extends JFrame implements ActionListener{
         private JTextField jtf =new JTextField();//text feild for receiving option
         private JTextArea jta=new JTextArea();//text area display contents
         private JButton btnDownload=new JButton("Download");
         //IO stream
         private DataOutputStream toServer;
         private DataInputStream fromServer;
         public static void main(String [] args){
              new Client();        //launch client
         public Client(){//construct a client class
             //display layout
              JPanel p=new JPanel();
              p.setLayout(new GridLayout(1,3));
             p.add(new JLabel("Select file name:"));
             p.add(jtf, BorderLayout.NORTH);
             p.add (btnDownload);
              p.add (new JButton("RESUME"));
              p.add(new JButton("STOP"));
             jtf.setHorizontalAlignment(JTextField.LEFT);
             getContentPane().setLayout(new BorderLayout()); //set borderlayout
            getContentPane().add(p, BorderLayout.NORTH);
             getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
             //     btnDownload.addActionListener(this);
             jtf.addActionListener(this); //perform action
             setTitle("Client"); //interface title
             setSize(600,300); //interface size
             setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             setVisible(true);
             try{
              //create a client socket
              Socket socket=new Socket("localhost",8000);
        //      Socket socket1=new Socket("127.0.0.2",8001);
              jta.append("Client started.....\n" +"your locale time is " + new Date()+ '\n');
              fromServer=new DataInputStream(socket.getInputStream()); //initialize get from server
              toServer=new DataOutputStream(socket.getOutputStream()); //initialize to server
              catch(IOException ex){ //error if server timeout
                   jta.append(ex.toString()+'\n');
         public void actionPerformed(ActionEvent e){ //action perform when user hit enter
              String actionCommand=e.getActionCommand();
              if(e.getSource() instanceof JTextField){
                   try{
                        int option=Integer.parseInt(jtf.getText().trim());//convert text to integer
                        String c=""; //c for country list
                        toServer.write(option);//write selection and sent to server
                        toServer.flush(); //server refresh
                        int inputFromServer = fromServer.readInt();//initilize read data from server, integer format
              //if ...selection to determine the country user desire     
              if(option==1){
                   c="Africa";
              if(option==2){
                   c="Australia";
              if(option==3){
                   c="Adelaide";
              if(option==4){
                   c="Chaina";
              if(option==5){
                   c="Korea";
              if(option==6){
                   c="Chicago";
              if(option==7){
                   c="New York";
              if(option==8){
                   c="Caracas";
              if(option==9){
                   c="Rio De Janeira";
              if(option==10){
                   c="Racife";
              if(option==11){
                   c="Azores";
              if(option==12){
                   c="London";
              if(option==13){
                   c="Paris";
              if(option==14){
                   c="Cairo";
              if(option==15){
                   c="Moscow";
              if(option==16){
                   c="Baku";
              if(option==17){
                   c="Karachi";
              if(option==8){
                   c="Dhaka";
              if(option==19){
                   c="Bangkok";
              if(option==20){
                   c="Tokyo";
              jta.append("Selected: "+ c +'\n');     
                        int GMT = fromServer.readInt();     //hour import from server     
                      int currentMinute = fromServer.readInt();//minute import from server
                        int currentSecond = fromServer.readInt();// second from server
                        //print full time format in JtextArea
                        jta.append("Time is >>"+GMT+ ":" +currentMinute+ ":" +currentSecond+'\n');
                   catch (IOException ex){
                        System.err.println(ex);
              }// end if ..true
         }// end actiond
    }//end client class

    here i attach my similar code again, which can compile..
    problem is, how to let this server to communicate with each other, if i duplicate my server code. Which mean 2 server.
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class Server extends JFrame{
         private JTextArea jta=new JTextArea();
         public static void main (String[] args){
              new Server(); //launch server
         public Server()
         {//construct a server class
         getContentPane().setLayout (new BorderLayout());
         getContentPane().add(new JScrollPane(jta), BorderLayout.CENTER);
         setTitle("Server");
         setSize(500,300);
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setVisible(true);
         try{
         //create a server socket
              ServerSocket serverSocket=new ServerSocket(8000); //server scoket
              jta.append("Server started" +"........"+'\n');
              //listen for a connection request
              Socket socket=serverSocket.accept(); //connect client
         DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());//input from client
         DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());//output to client
         while(true){ // while true, server wait user input
              jta.append("Server waiting input from client" +"........"+'\n');
                         jta.append("Option Found "+ '\n');     
              catch(IOException ex){
              System.err.println(ex);
    }

  • How i will configure handling unit(3shirt in one pocket and 10 pocket in ca

    Hi MM guru,,,
    i want to know how Handling unit  is configured..
    actually my client is garment company...
    senero is shirt pack in one pocket..and 10 pocket pack in one cartoon...
    then how i will configure this and in sales order what will be material code.....i have  confusion
    kindly suggest me...
    how i will sale the cartoon.from which material code
    kindly suggest me in detail
    Regards
    Aqueel

    Packing Material ---> MM01
    material group packing materials( sales: general/plant)
    packing material type
    Raw material/Finished Goods
    Mat group pack matls (Basic data)
    Note : System picks the packing materials based on  the packing material group defined in the raw material/ Finished Goods .
    PACKING INSTRUCTION
    1.POP1
    packing material and Refrence material is given.
    (with target quantity )
    2.POP1
    packing instruction made and packaging material is given.
    (with target quantity )
    3.POF1
    Condition record
    Reference material for Material packed .
    ok ,

  • Remote access VPN to server from outside and server reach internet on the same time

    Dear,
    I have problem in my ASA 5515-X , when i make Remote access VPN to servers in inside zone the internet connection disconnected in the servers, or when i have internet in servers, the remote access cant reach servers.
    the configuration for server as static NAT for each server, and the connection of VPN is to another public IP but in the same subnet of NAT ip.
    server1 : 10.10.10.2 nat to 5.6.7.8
    server2: 10.10.10.3 nat to 5.6.7.9
    server3: 10.10.10.4 nat to 5.6.7.10
    VPN connection to 5.6.7.12
    is there any solution for this senario, remote vpn to servers and the same time the servers have internet readability for download updates .. etc

    Hi,
    So it seems that the problem is with lacking a NAT0 configuration
    You could modify the below configuration to match your networks/IP addresses used. In the below configuration I presume that you have interfaces "inside" and "outside".
    object network SERVER-NETWORK
     subnet <server network address> <network mask>
    object network VPN-POOL
     subnet <vpn pool network address> <network mask>
    nat (inside,outside) 1 source static SERVER-NETWORK SERVER-NETWORK destination static VPN-POOL VPN-POOL
    Just insert the correct address related information and change the "object" and interface names if required.
    This configuration will tell the ASA that no NAT will be performed for traffic between the VPN-POOL and SERVER-NETWORK. The NAT configuration is bidirectional. With this configuration the Static NAT configurations will continue to work for the servers Internet traffic and this NAT0 configuration will be applied only to the VPN Client traffic.
    Hope this helps :)
    - Jouni

  • How can I configure radius to allow a non-windows device to authenticate with a certificate?

    I currently have a 2008r2 server with NPS acting as a radius server for our wireless network.  The existing rules are setup to allow access based on windows group membership.  I need to get a wireless jetdirect connected to the wifi network.  
    If I create a certificate for this device with key usage settings for client auth / server auth, can it authenticate to radius with that cert?  
    How would I set up a NPS policy to allow this device, since it's not a domain member and not a member of the windows groups?

    Hi there -
    I asked the NPS team about this, and following is their response:
    Yes, it’s possible but it’s a very manual process.  I will give you the easy steps then the hard ones.
    Easy(relative):
     Using a domain joined machine, request a certificate from a template that allows the private key to be exported.
    Export the cert with the private key
    Import on all workstations/devices that require it.
    Pros:
    Relatively easy to create the cert and manage the account
    Cons:
    Single certificate used on multiple machines
    Certificate does not accurately reflect the name of the device
    Hard:
    Create an account in AD
    Issue a certificate from a template that allows the private key to be exported
    Using name mappings, attach the certificate to the account
    Create an SPN that matches the SAN on the certificate..i.e. if the SAN is computer.domain.com, you need to create a SPN on the account host/computer.domain.com
    Install certificate on to target workstation/device
    Pros:
    Relatively, more secure than previous steps as you create a single account/certificate pair per device
    Cons:
    Not very manageable
    Thanks -
    James McIllece

  • How can I configure Mac Mail to use the correct SMTP server?

    I have successfully set up Mac Mail to use a new e-mail account. Inbound and outbound mail is working just fine. However, I am seeing something odd when I create a new message or reply to an existing message. The outbound account that shows is not that which has been configured for the account. I can manually select the correct outbound account.
    What are my troubleshooting steps?

    One of the first things to check in Mail Preferences, Composing:

  • How to create more than one connections between my host and server

    Hi,
    I want to create multiple connections(at least, two connections) between my host and the server.
    And use them to transfer data at the same time.
    Could you help me, and could you give me a sample code example?
    ^-^
    Thank you very much

    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.*;
    import java.io.*;
    import java.nio.channels.*;
    import javax.swing.*;
       This program shows how to interrupt a socket channel.
    public class InterruptibleSocketTest
       public static void main(String[] args)
          JFrame frame = new InterruptibleSocketFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setVisible(true);
    class InterruptibleSocketFrame extends JFrame
       public InterruptibleSocketFrame()
          setSize(WIDTH, HEIGHT);
          setTitle("InterruptibleSocketTest");
          JPanel northPanel = new JPanel();
          add(northPanel, BorderLayout.NORTH);
          messages = new JTextArea();
          add(new JScrollPane(messages));
          busyBox = new JCheckBox("Busy");
          northPanel.add(busyBox);
          startButton = new JButton("Start");
          northPanel.add(startButton);
          startButton.addActionListener(new
             ActionListener()
                public void actionPerformed(ActionEvent event)
    //               startButton.setEnabled(false);
                   cancelButton.setEnabled(true);
                   connectThread = new Thread(new
                      Runnable()
                         public void run()
                            connect();
                   connectThread.start();
          cancelButton = new JButton("Cancel");    
          cancelButton.setEnabled(false);
          northPanel.add(cancelButton);
          cancelButton.addActionListener(new
             ActionListener()
                public void actionPerformed(ActionEvent event)
                   connectThread.interrupt();
                   startButton.setEnabled(true);
                   cancelButton.setEnabled(false);
              new Thread(new TestServer(Port)).start();
          Connects to the test server.
       public void connect()
           new Thread(new Client(Port)).start();
    //       Port++;
       class Client implements Runnable{
               Client(int port){
                   this.port = port;
               private Scanner in;
           private int port;
            public void run() {
                    try
                       SocketChannel channel = SocketChannel.open(new InetSocketAddress("localhost", port));
                       try
                          in = new Scanner(channel);
                          while (true)
                               try{
                                  if (in.hasNextLine())
                                     String line = in.nextLine();
                                     System.out.println(line + "  " + channel);
         //                            messages.append(line);
         //                            messages.append("\n");                       
                                  else Thread.sleep(100);
                               }catch(Exception e){
                                    e.printStackTrace();
                       }finally
                            messages.append("Socket closed\n" + channel);
                          channel.close();
                    catch (IOException e)
                       messages.append("\nInterruptibleSocketTest.connect: " + e);
          A multithreaded server that listens to port 8189 and sends random numbers to the client.
       class TestServer implements Runnable
              ServerSocket s;
              private int port;
              TestServer(int port){
                  this.port = port;
                  try {
                   s = new ServerSocket(port);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
          public void run()
             try
                int i = 1;
                while (true)
                   Socket incoming = s.accept();
                   Runnable r = new RandomNumberHandler(incoming);
                   Thread t = new Thread(r);
                   t.start();
             catch (IOException e)
                messages.append("\nTestServer.run: " + e);
          This class handles the client input for one server socket connection.
       class RandomNumberHandler implements Runnable
             Constructs a handler.
             @param i the incoming socket
          public RandomNumberHandler(Socket i)
             incoming = i;
          public void run()
             try          
                  int i = 0;
                OutputStream outStream = incoming.getOutputStream();
                PrintWriter out = new PrintWriter(outStream, true /* autoFlush */);
                while (true)
                   out.println(i);  
                   i++;
                   Thread.sleep(100);
             catch (IOException e)
                messages.append("\nRandomNumberHandler.run: " + e);
             catch (InterruptedException e)
                messages.append("\nRandomNumberHandler.run: " + e);
          private Socket incoming;
       private JButton startButton;
       private JButton cancelButton;
       private JCheckBox busyBox;
       private JTextArea messages;
       private TestServer server;
       private Thread connectThread;
       public static final int WIDTH = 300;
       public static final int HEIGHT = 300;
       public static int Port = 8848;

  • How to merge pdf in db, with data in db and serve as PDF doc to browser

    Hi,
    I have a requirement as:
    On an ebusiness suite webpage user clicks on a hyperlink.
    This downloads a merged pdf form, as:
    a. Retrieve pdf document from fnd_lobs
    b. Retrieve the data to be merged from a database table in the format merge_field_name, merge_field_value
    c. Merge the data and the pdf on the fly.
    d. Return the merge pdf file to the webbowser
    I have never used XML etc, and browsing metalink etc, it seems the using XML Publisher may be the best way to go.
    So, I would appreciate it if I could have the following answers:
    1. Is XML publisher the correct tool to use for this, or is their another technology that may be better suited.
    2. As we have a number of ebusiness suite applications licensed, would we need to buy an additional license for XML publisher.
    3. If I am on the right track, then any pointers on how to start.
    Thanks in advance.
    Mark

    Hi Mark
    1. XMLP will do this for you with a little code.
    2. As long as the data for the documents came from the delivered EBS schema (incl flexfields) i.e. not from a custom table. Then you are within the EBS license terms and there would be no extra kicense to purchase.
    3.
    a. You will need to extract the PDF from fnd_lobs as a PDF document and out it somewhere temporarily.
    b. Write the extract and template to format the data into PDF ... this is basic XMLP suff covered in the user guide and the XMLP pages on OTN.
    c. You now have your fnd_lobs PDF and the generated one, you can now combine them into a single document using an API. The PDF bookbinder API is the most poweful but there are others available too ... check the user guide for PDFBookBinder and FormProcessor.
    d. then you'll need to either stream the resulting PDF to browser yourself or you can use the XMLP OA Framework common region and embed it inside a page.
    Regards, Tim

  • Server 2012 ADFS and Server 2008 R2 ADFS Proxy compatilibility

    Hi,
    Does anyone know if a 2008 R2 ADFS Proxy will talk to ADFS running on Server 2012?
    TIA.

    I have not found a reference to say if this is supported or not. I know that there is no longer a separate ADFS proxy role in Windows 2012 R2.  The Remote Access feature provides VPN, Direct Access and Web Application Proxy (WAP) functionality.
    So, better to use the new functionality.
    More if you ask them here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to configure my keyboard to portuguese from brazil and can type "c̡", "é", "ã", etc?

    How can I configure my keyboard to portuguese from brazil, and can write "c̡", "á", "ã", etc ?

    System Preferences > Language and Text > Input Sources tab. Top of the left column, tick (check) "Keyboard and Character Viewer", Bottom of window next to search field, tick "Show input menu in menu bar"
    Enable Portuguese keyboard layout.
    System Preferences > Keyboard > Keyboard tab; tick "show keyboard and character viewers in menu bar"
    If you open Keyboard Viewer and press the alt (option) key, the location of the diacritics will be revealed. Note that five of them are highlighted in orange; these are the ones which can be used with multiple  letters (acute, umlaut, gràve, circumflex and tilde)
    Shift+Alt will show more.
    If you want to use the Portuguese layout, go to the flag symbol in the menu bar and change the keyboard in the dropdown, then use Keyboard viewer again to see where the characters are in relation to your own keyboard.

Maybe you are looking for

  • Problem in pricing regardinr business blueprint

    HI Gurus, i am new in sap sd field i just put my foot in this field. i got business blueprint for sap sd implementation i have folloing problem in pricing please help me out. <b>1</b>.Do you require the functionality to create user-defined indexes in

  • Async WebService processed as synchronous

    Hi, I have the following scenario on a SAP XI 7.0 webService -> R/3 Idoc As I don't want to use the sync/async bridge I defined the webService sender channel with QoS = Exactly Once to make it asynchronous. The calling client (correctly) gets back an

  • Run Apple Script in User Space

    Hi, My application runs in administrator privileges . I want to run an apple script from the application in user space . Please guide me . Thanks

  • HT1206 cant get authorization on my computer

    my family set up an itunes account yrs ago and didnt use a email account.  we have a lot of music on it and then we got a different computer (lap top).  we cant get the comp to authorize to play or use now.  the comp doesnt ask for authorization to a

  • Signed in, hit convert, program error says "error occurred while signing in"

    signed in, hit convert, program error says "error occurred while signing in"