Trunk and channel problem

i have 2 4507s each with dual sup 4s. I have applied the below configs to them respectively. However, the interfaces both show down and down, any suggestions?
interface Port-channel1
description Connecting both buildings
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
interface GigabitEthernet1/1
description Connection to building-1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
interface GigabitEthernet2/1
description Connection to building-1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
(2nd Switch)
interface Port-channel1
description Connecting both buildings
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
interface GigabitEthernet1/1
description Connection to building-2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active
interface GigabitEthernet 2/1
description Connection to building-2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 1 mode active

I noticed in your configs that there is a difference between both supervisors. The channel is configured on one module, shut on the otehr one. This may point to a redundancy issue. Looked up a URL on that as well:
http://www.cisco.com/en/US/products/hw/switches/ps4324/products_configuration_guide_chapter09186a00804d781c.html#wp1113491
Suggest that you check this first and bring your sup4's back in sunc if needed.
Leo

Similar Messages

  • How to configure a port channel with VLAN trunking (and make it work..)

    We're trying to configure a port channel group with trunked ports to connect a NetApp HA pair. We want to create two data LIFs and connect them to the switch stack.  We are trying to create 2 data lifs, one for cifs and one for nfs that are on different vlans.
    We want the same ports to be able to allow multiple vlans to communicate. (trunked)
    These data lifs should be able to fail over to different nodes in the HA pair and still be able to communicate on the network.
    What this means is that we have to connect 4 ports each for each node in the NetApp HA Pair to the switches and create a port channel of some type that allows for trunked vlans. When we configure the ports, the configuration is as follows (below):
    We are only able to configure an IP on one of the vlans.
    When we configure an IP from another vlan for the data lif, it does not respond to a ping.
    Does anyone have any idea what I'm doing wrong on the Cisco switch?
    interface GigabitEthernet4/0/12
    description Netapp2-e0a
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    channel-protocol lacp
    channel-group 20 mode active
    end
    interface GigabitEthernet4/0/13
    description Netapp2-e0c
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    channel-protocol lacp
    channel-group 20 mode active
    end
    interface GigabitEthernet6/0/12
    description Netapp2-e0b
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    channel-protocol lacp
    channel-group 20 mode active
    end
    interface GigabitEthernet6/0/13
    description Netapp2-e0d
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    channel-protocol lacp
    channel-group 20 mode active
    end
    interface Port-channel20
    description Netapp2-NFS
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    spanning-tree portfast
    spanning-tree bpduguard enable
    end

    Our problem was fixed by the storage people.  They changed the server end to trunk, and the encapsulation / etherchannel.
    I like all the suggestions, and they probably helped out with the configuration getting this to work.
    Thanks!
    interface Port-channel20
    description Netapp2-NFS
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    switchport mode trunk
    interface GigabitEthernet4/0/12
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    switchport mode trunk
    channel-protocol lacp
    channel-group 20 mode active
    interface GigabitEthernet4/0/13
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    switchport mode trunk
    channel-protocol lacp
    channel-group 20 mode active
    interface GigabitEthernet6/0/12
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    switchport mode trunk
    channel-protocol lacp
    channel-group 20 mode active
    interface GigabitEthernet6/0/13
    switchport trunk encapsulation dot1q
    switchport trunk allowed vlan 10,20,511,519
    switchport mode trunk
    channel-protocol lacp
    channel-group 20 mode active

  • Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels. For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one .. Than

    Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels.
    For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one ..
    Thank you for your attention.
    Annalisa 

    Don't understand what you writing here.  Screen shoots would be most helpful.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Firewire 400 and 800 problem ? Need confirmation

    OK, I have been running 2 external Lacie HD's over a USB hub into my MacBook Pro. A couple of weeks ago I decided that I needed more storage so purchased 2 Western Digital MyBook Pro's at 500GB.
    I got these two specifically because I knew they supported Firewire 800 and wanted to take advantage of the high speed connection.
    All is going well until yesterday.... Let me explain my set up. Firstly I am a DJ and use a Firewire Audiophile soundcard from M-Audio, this connects to the 400 port on my MacBook Pro, and the HD's connect to the 800... When I play music I get audio drop outs... I have looked through the forums and I am under the impression that both the 400 and 800 ports on my MacBook Pro run on the same connect, so is this the cause of the audio drop outs ?
    I connect the 2 HD's via USB and have no problems, am I right in thinking that I have wasted good money on getting 2 HD's that I'm not going to be able to use the 800 port with ? When I run the audio through the internal soundcard I get no drop outs !
    Also.... Just to annoy me even more I have a 20" cinema display so if I have use USB I decided to connect the two HD's to this and then to the MacBook Pro, now the problem here is when my MacBook Pro goes to sleep one of the HD's wakes up the MacBook Pro as it has been removed incorrectly ??? Do I now have a problem with one of my USB ports on the cinema screen also ????? I have put my iPod in the port and no problems ?
    Does anyone know how I can solve these problems without having to spend even more money ?
    And can someone confirm if the 400 and 800 ports are on the same connection, if so, whats the point ???
    Thanks
    - Neil

    neil,
    I wouldn't do that right away.. USB audio interfaces are usually at the more consumer end of the market, I don't think it's the best way to go just to solve your problem.
    did you read the part in my post about PCexpress cards that give you a totally new and independent FW800 bus? seriously, I think this is your best bet. these cards first came out when the original series of MBP didn't have FW800 on them (only 400) much to the consternation of video pros.. so 3rd party vendors made a card solution. as I said, they aren't expensive, I would have thought around or under $100 US. connect one of those to your MBP's express slot and your problem is solved. you'll have a powerful, dedicated FW channel just for those FW800 drives you bought. then, your m-audio interface will be fine. and even if you still want to get rid of it and get a better interface, you won't be forced to go to USB which generally means opting for a lower end of the market interface.
    also one other thing.. I don't know what your actual audio i/o needs are. but if you only ever work with stereo out and stereo in, ie, you never need more than 2 physical outputs and 2 physical inputs, then you have other options. the MBP (and in fact all macs) have optical digital audio built in. you can buy a 2in 2out digital to analog/analog to digital converter and connect it to the opticals. then, you'll never need to worry about FW or USB bandwidth ever again, nor will you ever need to think about drivers or compatibility or updates either.
    on my MBP I use logic pro. and on this system, I only ever need a stereo out to hear what I'm working on with good quality.. and when I record actual audio tracks, it's only ever one source at a time, like a mic input or an instrument. so I do not need an interface at all, I use the opticals and I love it. I bought a mindprint trio, not the USB one, but the one that uses optical i/o. it just connects to the same connectors on the MBP that you would connect headphones or a mic, but obviously uses the digital optical signal not analog audio. it sounds really very good. the trio itself is a very handy little box that conveniently lets you do a lot of things to work comfortable when recording. and I just use built-in sound, no drivers needed ever, which is very much a rare relief in the audio world, believe me.
    anyway, hope this helps. and seriously check out a card for FW800, in my opinion it's the best solution to your problem no matter which way you go.

  • Sender JDBC Commn channel problem - Channel is not reading any data.

    Hi,
    I am referring to the following blog as i have exactly the same problem:
    [Blog|Sender JDBC Commn channel problem;
    I communication channel monitoring i am getting the following logs -
    6/21/10 7:19:07 PM   Processing started
    6/21/10 7:19:07 PM   Retry interval started. Length: 86400.0 seconds
    Here in the channel the poling interval is 86400 seconds.
    Now according to this blog the solution to my issue is "Check whether anything is locked in "Locking adapter" in VA? If there is then just release the lock and restart the comm channel. Note: In "locking adapter" the name will be something like $XIDBAD.JDBC2XI."
    Mine is a PI7.1 system and i am not able to find any thing like this in NWA.
    Can some one please help me on this?
    Thanks & Regards,
    Anshul

    try;
    Goto NWA -> Availability and Performance Management -> Resource Monitoring -> Locks

  • Rss; item and channel glitch

    Hi,
    Thanks so much for the previous input.
    Now- I went to ensure the rss is accurate through feedburner and I get this Issue/Problem ...lol.
    [This is bit strange, because previously the rss was fine since january up until recently.]
    rss feed:
    http://www.spheresofessence.com/rss/empodcast.xml
    Below is the Error Message:
    Sorry
    This feed does not validate.
    line 25, column 1: Undefined itunes:category element: item (8 occurrences) [help]
    <item>
    ^
    line 114, column 2: XML parsing error: <unknown>:114:2: mismatched tag [help]
    </channel>
    again, I tried adjusting things exactly like the tech specs.I tried both space between each item and space between last item and channel and with no spaces..still didn't validate in feedburner.
    What is not accurate?
    Any help or suggestions would be appreciated.
    Thanks!! :-D
    mystic

    I had this same problem, but it wasn't an issue with the "<item>" tag -- as I had thought for the last hour or so.
    Looking immediately above the <item> in my code, and comparing sample text side by side, I realized that I had improperly closed (or failed to close) the tag above.
    In my case, it is the <itunes:category> tag, which much be closed with an </itunes:category> tag ... or at least in this case it must.
    Have a look just above <item> and see if that does the trick.
    Good luck.

  • Properties (group and channel) added are not a numeric data type.

    I am using a dataplugin to add both group and channel custom properties. The properties are both text and numeric, doubles and integers.
    When I create a query in Navigator, I select the custom property using the dropdown, but the operator dropdown only has "=" or "<>". The property displayed in the Data Portal is a float number. I was having this problem when I was adding custom properties using a script. I then tried "Navigatorettings/My DataFinder/Reset/Reset Index", then repopulated my Search Area, using the dataplugin on my raw data files. At this point, all my properties only have the "=" or "<>" operator choices in the query.
    So it appears that my properties are numeric in the Data Portal, but string in the Navigator Query.
    In advance, thanks
    Solved!
    Go to Solution.

    Hi Bill,
    could it be the properties you are talking about are already "optimized" for query?
    In case yes, did you do the optimization by script like
    Dim oMyDataFinderSettings
    Set oMyDataFinderSettings = Navigator.ConnectDataFinder("My DataFinder").GetSettings()
    Call oMyDataFinderSettings.OptimizeCustomProperty(eSearchChannel, "Author_age")
    And did you do this, before DataFinder has indexed some of your files?
    In case yes, DataFinder has to make a guess the datatype of the property without example - so always "string" is chosen.
    (If DataFinder has already indexed some(or better all) files containing the property, DataFinder will "optimze" the property in the datatype which occurs most for this property.)
    In case you know the datatype of the property you are about to "optimze", you can provide this information to DataFinder
    Call oMyDataFinderSettings.OptimizeCustomProperty(eSearchChannel, "myText", DataTypeString)
    Call oMyDataFinderSettings.OptimizeCustomProperty(eSearchChannel, "myInt", DataTypeInt32)
    Call oMyDataFinderSettings.OptimizeCustomProperty(eSearchChannel, "myFloat", DataTypeFloat64)
    Call oMyDataFinderSettings.OptimizeCustomProperty(eSearchChannel, "myDate", DataTypeDate)
    Stefan

  • UCS F port trunking and reserved VSAN confusion

    We have an existing UCS infrastructre where all  the FI's FC ports are connected to the MDS9513 as one to one connection ( no port channel or trunking) and the FI is working as "end host mode" . We are planning to move some crtical production application to the UCS infrastrcture and becuse of that we would like to use the FC port chanelling and F-port trunking. While reading some documents I found that there are some restriction on UCS for VSAN numbering while using the FI  for F-port trunking . As per the following doc http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/cli/config/guide/2.0/b_UCSM_CLI_Configuration_Guide_2_0_chapter_010101.html#concept_5223F7F368524A39AB1A47B9F8BFEC8A
    it says donot configure VSAN  ID range from 3840 to 4079 . The MDS 9513 is running NX-OS 4.2(3) . Our existing  MDS SAN infrstructure already  have 2 VSANs with ID number  4000 and 4001 ( Both of these VSANS are usied for some storage replication unrelated to UCS). In the UCS we alreay have 2 VSANS' ( 200 and 201) and are planning to create 2 more ( 300 and 301).  My question is if  I  configure the FI's  for  F-port truncking/FC port channeling then what will happen to my existing VSAN 4000 and 4001 on the MDS9513 SAN
    Thanks
    RK

    If you are asking how long it will take to enable f-port trunk and how disruptive it will be? It's not lengthy, but, it will cause the link to stop passing traffic and cause SCSI retrys. Your server will know it happened. If your fc multipathing is operating properly there will be no outage.If there are any configuration issues, the link may be down for an extended period, further compounding this disruption in traffic.
    You initially asked about two features, f-port trunk and f-port channel. These are seperate features and require different configuration changes. It's best to add one feature at a time, not both in the same configuration change. Each change will be disruptive.
    Do one fabric at a time. Ensure the f-port trunk is fully functional before doing the f-port channel, making sure it is functional before starting work on the second fabric.If your multipathing is operating as it should, there will be no outage. If there is any doubt schedule an outage window.
    Dave

  • WRVS4400N and WPC4400N Problems

    This is part rant and part problem report.I don't know who's listening, maybe someone who knows more than I do.
    Let me preface this by telling you I am a reseller of Linksys products and a Linksys Partner. I have had pretty good experience with the products. I am currently installing several of their products a week. I've been doing IT support for over 12 years. I have configured a lot of routers.
    So I think why not treat myself to a top of the line router and test out 802.11N at the same time.
    Here is the setup:
    Dell D520 with fresh reload of WinXP SP2
    Linksys WRV4400N
    Linksys WPC4400N
    First problem was I installed the card with the CDROM it shipped with. Big mistake. The driver and utility would not connect when WPA was configured. Ok my mistake, always download the latest drivers.
    Second problem was my HP2600n that is connected to the router was unable to get print jobs. It was connected on the LAN, could ping but print jobs would fail, more on this later.
    Third problem is that my wife could no longer get connected to her corporate VPN over this router. They use a Cisco VPN solution. Yes, VPN passthrough is enabled. Hey it  worked fine on my WRT54G! She has a dell D630 with an Intel Pro 2200 WLAN card. It worked PERFECT with the WRT54G.
    Fourth problem is the wireless connection would periodically disconnect.
    Fifth problem is that I pulled the WRVS4400N and reinstalled the WRT54G and now the Linksys WPC4400N has a fluctuating signal level. The router is in the next room and with my build in Dell WLAN card the signal stays strong.
    Yes, I upgraded the firmware on the router to the latest version.
    IN regard to problem number two, it turns out the WRVS4400N uses 192.168.1.3 for the WLAN interface. That was the same IP I had on my printer. OK, now you all know that you need to resever 192.168.1.3 on your LAN if you use a WRVS4400N
    IN regard to number three, no amount of tinkering allowed the Cisco VPN client to connect. I changed MTU size, turned off the firewall, added port triggers, you name it. Nothing worked but replacing the router. Now this is just supposed to work. I should not need to be a network engineer to make a WRVS4400N work. VPN's are supposed to pass through!!!
    In regard to number 4, periodic dropping of Wireless, connection, I tried going to channel 1, even removing wireless security. Nothing seems to work except revert to the Dell WLAN card. This issue was seen on the WRVS4400N and the WRT54G. Acutally worse on the WRT54G and WPC4400N combination. I also noticed my Dell card was picking up about 10 WLAN's in my neighbor hood and the Linkys only 2.
    So there is a special support phone number for partners. I waited for 55 minutes on hold and did not get an answer.
    One Disapointed Linksys Reseller

    ---- quote "cmartell" ----
    Fourth problem is the wireless connection would periodically disconnect.
    In regard to number 4, periodic dropping of Wireless, connection, I tried going to channel 1, even removing wireless security.
    ---- end quote ----
    I have a WPC4400N PCMCIA card, and I am having this same exact problem too. I am using drivers 1.0.2.5, which also carries the designation of "Lite" - what the heck is up with "Lite" anyway? I want the full blown drivers!
    Anyway, I can't seem to stay connected for too long, even though my router (ALSO a Linksys product, a WRT350N, with updated Linksys firmware 1.03.7) is only 4 feet away, if that.
    My wireless card (the WPC4400N) keeps dropping connection, even if the router is right next to it! And of course, when I had my wireless router all the way across my apartment (roughly 20 feet) it would keep doing the same thing too, kept disconnecting periodically! Any kind of adjustment to driver parameters in my network card settings would just simply not help it at all, and I don't know what the problem is!
    Can anyone please help?
    My brother is a CISCO C.C.I.E. (Linksys is owned by Cisco), and I have yet to ask his help, but somehow I doubt even he could help me with this one.
    I should not have to change my channel #, nor my security method, in order to keep a connection, especially when it has problems while the PCMCIA network card is being only 3-4 feet away from the router!!

  • Picture breakup and pixelation on ITV and channel...

    hi l keep getting picture breakup and pixelation on ITV and channel 5   does anyone else have the same problem

    It's usually a sign of a dodgy aerial, though the effect can also depend on the weather.  Both ITV and Ch 5 are on the same multiplex, so the chances are that you're not getting good enough reception on that frequency.

  • Registration requests and other problems with LE 8.0.2 upgrade from 7.2.3

    Great upgrade. Improved sound, look and features, but:
    1. When I switch between Logic Express 7 and 8, I'm forced to register each version again & again.
    2. If LE 8 is left open when I put my computer to sleep, it won't recognize an iControl at wake up. After deleting the device from the surface controller set-up, rescanning it & resetting midi drivers, the play button won't work. It took until OS X 10.4.9 for Apple to get the iControl to work in LE 7.2.
    3. The instrument plug-in window doesn't come up after selecting a software instrument even with the box checked in preferences.
    3. If you've used a lot of preset voices in LE 7, the upgrade will require a lot of reprogramming. Tones like Jangly Jack are gone completely. Some missing LE 7 voices like the Ubiquitous DX can be imported into version 8 and saved as a channel strip setting. Logic 8 & GarageBand 3 lack a good DX7.
    4. The word Strings is misspelled in the channel strip setting window.
    5. Some LE 7 keyboard commands are no longer available in LE 8. For example, at certain times, you could move around an environment window in LE 7 with shift-plus and shift-minus keys. There was no way to program that in LE 7 either.

    Hi Robby
    I don't know if you solved your 'register now' problem concerning LE7 & LE8. I suspect the error your making is trying to open up each project in it's initial program - i.e. 7 or 8. The computer sees it differently (concerning Library settings etc) and your problem will be solved (hopefully) if you open up things in the right order :
    1° Open Logic EX 8.
    2° Then open the old project from LE 7. This should then open in your new system of LE8.
    Of course if you wish to keep working on LE7 projects in LE7 then you'll have to change between each system as you go. You should remember that in terms of programs (with the same 'name/directory') that a computer works much like a tightly packed garage - if you wish to get out your old bike you'll have to move the new one first and vice versa!!
    Normally you won't be asked to register again, BUT ... remember that you have to decide if you're going to save in 8 (and so keep working in that format) or not and I imagine if you've bought an update this is certainly your idea. Of course if you now decide to close LE8 and then start clicking on files in LE7 you'll be back at square one ..... register now etc. Please also remember that LE7 projects can work in LE8 but not the other way round, so once you've opened a LE7 project and made adjustments using LE8 you can't reuse 7 - I suggest you back up all your LE7 first on external/DVD support for later/backwards adjustments or reference.
    Another small point to remember is that your computer will now be saving your project a second time in a LE8 format. So at some point you should remember that you'll be using valuable HD space twice over if you just convert and save in the new format - if you see what I mean?!

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • BOSD, Battery issues and Heating problem after iOS 8 upgrade

    i have upgraded my iPad mini to iOS 8. Ever since I upgraded to iOS 8 am facing blue screen issues and heating problem as well. This is really frustrating even the patch iOS 8.0.2 dint solve the problem. Are you guys listening our complaints. When will you fixing it.

    The same thing happened to me on my 2012 Subaru Outback.  I'm not sure this will help you since you have a Honda, but I'm posting this just in case.
    I paired the audio on my car with my iPhone 6.  However, when I turned the car off and back on again, the iPhone would not pair automatically.  I had to manually connect the iPhone with the car.  Turns out there are two separate bluetooth pairings on my car: one for phone which allows up to 5 devices and one for audio which allows only one device.  So I did the second bluetooth pairing for the phone (had already done the audio), and that fixed it.  YMMV

  • I am making code to try to make a game and my problem is that my code......

    I am making code to try to make a game and my problem is that my code
    will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
    Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
    Here is the code for my objects:
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class rockCrab {
         //Wounding formula
         double sL = 70;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 50;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         rockCrab() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              double done = rint(fH - fA);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("Rockcrab hit" +done);
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class self {
         //Wounding formula
         double sL = 1;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 1;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         self() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("You hit" +done);
    }Here is the main code that writes what the objects do:
    class fight {
         public static void main(String[] args) {
              self instance1 = new self();
              rockCrab instance2 = new rockCrab();
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
    }when the code is run it says something like this:
    you hit 1
    RockCrabs health is 9
    RockCrab hit 7
    your health is 38
    you hit 1
    RockCrabs health is 8
    RockCrab hit 7
    your health is 31
    you hit 1
    RockCrabs health is 7
    RockCrab hit 7
    your health is 24
    you hit 1
    RockCrabs health is 6
    RockCrab hit 7
    your health is 17
    my point is whatever some one hits it always repeats that
    my expected output would have to be something like
    you hit 1
    RockCrabs health is 9
    RockCrab hit 9
    your health is 37
    you hit 3
    RockCrabs health is 6
    RockCrab hit 4
    your health is 33
    you hit 2
    RockCrabs health is 4
    RockCrab hit 7
    your health is 26
    you hit 3
    RockCrabs health is 1
    RockCrab hit 6
    your health is 20
    Edited by: rade134 on Jun 4, 2009 10:58 AM

    [_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.

  • Remote and IR Problem

    A rather odd and annoying problem has recently been occuring on my MBP. A couple days ago my remote (after working without fail for over a year now) suddenly stopped working. Yesterday night and this morning it started working again but after a while it stopped again. I've read dozens of support articles which haven't really helped because there seems to be another problem.
    Most articles have stated that there is an option to disable the IR receiver in the "security" window under system preferences. When the IR and remote are not working this option disappears but when they are working the option is present. I have also tried replacing the battery without any result.
    I am now thinking that it might have something to do with heat buildup because it is mainly occuring after the laptop has been on for about a half hour, so I am going to try to borrow someone's fan.
    If anyone has any suggestions to solve this I would appreciate it if you could help. Thanks!
    MacBook Pro 1.83 GHz   Mac OS X (10.4.9)  

    check out this thread. Seems to be the same problem.
    http://discussions.apple.com/thread.jspa?messageID=4701905&#4701905

Maybe you are looking for

  • Question about ear file and jar file

    I have an ear file that I built using ant. Say my project name is test. So my ear file name is test.ear. Everytime I try to deploy the ear file, weblogic complains about not finding the test-ejb.jar. I'm confused as to why weblogic expects a test-ejb

  • Cannot create copy of Std inspection type 08 (Stock transfer inspection)

    Dear All: I have created a copy of std inspection type 08 as Z08CP. I have made all the relevant assigments in IMG such as Maintain Inspection Lot Origins and Assign Inspection Types, Default values, etc. During my unit testing I did use the newly cr

  • DC111 - XBMC WIFI and Audio,Video drop outs

    Hi I'm using Linux XBMC on DC111. I found some issue when I'm playing movie, form time to time I have audio and video drop outs, but it's only appears when the WiFi card is on. But when I disable the WiFi by software (rfkill) the drop out disappeared

  • Syncing iTunes with iPhone 4

    i recently synced my iphone 4 and lost all the music on my phone.  all of the music on my phone disappeared, but is still available on my computer.  I believe I synced the music to icloud, and it is not recognizing the music i downloaded prior to tha

  • Archive SAPscript - How to?

    Hi all, I have now a task where I want to get my invoice documents archived as PDF files. There is many ways to do this, but I have decided to try SAP std, and to make use of the archive administration tools. (SARA). I have had a look througt the doc