Switch interface last state change

Hello all, I have to say I used to be spoiled a bit w/ this one view in our old Nortel Java Device Manager... 
I used to be able to select all ports on a switch, right click, edit, and it'd show me all kinds of stats. One of them I could sort by, is active links, but also the date the interface last had a state change. This was phenomenal in being able to identify vacated wiring that I could strip patch cords from - freeing up swithc ports, cleaning out ugly mismanaged patch cords, etc... 
Is there a way to do this in cisco terms? been trying:
show int | inc line protocol is|input   & other ideas... No luck. 
Can you help me find a way to do the same type of thing on a 2960?
Thanks!
J

Hey Jason,
After some digging I have found a few things:
1.  Running the command:  'show interfaces interface-number' will show you the amount of time since the last configuration made, which may be useful, however it does not show how long since a state change.
2.  You can configure Link-state Tracking on the device using the following guidelines: http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/12-2_55_se/configuration/guide/scg_2960/swethchl.html#wp1376499
Hope this helps,
Ryan

Similar Messages

  • Last State Received / Last State Change Date is Incorrect

    Checking a report today I noticed the Last State Received and Last State Change dates are off for many of our clients. The report I'm looking at is the
    Compliance 8 - Computers in a specific compliance state for an update (secondary)
    The StateMessage.log on our clients show successful submissions to the MP. Statesys.log on SCCM looks healthy as does MPControl.log. Has anyone run into this before?
    Orange County District Attorney

    Hi,
    If you initiate Actions on clients, could this data get updated after a while?
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • RME Detailed Device interface Last Changed date reporting

    How do I create a custom template rule to get ports that have changed since a particular date?
    LMS 3.1 RME 4.2
         when creating a custom template rule for "interfaces" "Last Changed", the date format in the rule is different than
         the field in detailed device reports.  I thought the field " last changed " was the point along the sysuptime timeline
         but the sysuptime is less than the number of days in "LastChanged".
    any help appreciated..

    That explains why the last change numbers are sometimes higher than the sysuptime.  Thank You!!!!
    is there a particular way to select the "Value" in RME-Custom Template Reports-Custom Template-rules when choosing
    Inventory group= interface ,   Attribute = Last Changed (yy:mm:dd:hh)  ?
    The format requires years,months,days and hours while the value of the field is xxxx days, hh:mm:ss
    I seem to be unable to get the correct results...

  • 6500 HIGH CPU, Standby HSRP state changes continuously

    Hi All,
    We are using two  6500 User distribution connected with port channel also WLC is connected on Dist-2 now, these two 6500 are connected with backend core 7609 running ospf in between.  Spanning-tree root and Standby Active on Dist-1
    Suddenly we are facing High CPU utilization on switches, couldn't able to ping nor login. However I could observe to  the following through console.
    Switch1 is stable, all the vlans are active, but on standby all the vlans are getting state changes, suspecting there are not getting hello's on time due to which  it is going to active and standby.
    %HSRP-5-STATECHANGE: Vlan208 Grp 208 state Standby -> Active
    %HSRP-5-STATECHANGE: Vlan160 Grp 160 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan115 Grp 115 state Standby -> Active
    %HSRP-5-STATECHANGE: Vlan156 Grp 156 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan208 Grp 208 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan209 Grp 209 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan196 Grp 196 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan112 Grp 112 state Speak -> Standby
    %HSRP-5-STATECHANGE: Vlan196 Grp 196 state Standby -> Active
    Configuration of Wireless VLAN
    on both switch
    interface Vlan198
     ip address 10.X.X.X
     ip helper-address
     standby 198 ip 10.X.X.X
     standby 198 timers 250 msec 750
     standby 198 priority 90
     standby 198 preempt
    end
    All the vlans having same timers and preempt on both switches,
    we are not tracking any interface, can I remove preempt on secondary switch?
    I have captured packets through netdr
    Dist-2
    interface Vl198, routine mistral_process_rx_packet_inlin, timestamp 23:53:02.823
    dbus info: src_vlan 0xC6(198), src_indx 0x2(2), len 0x40(64)
      bpdu 0, index_dir 0, flood 1, dont_lrn 0, dest_indx 0x40C6(16582)
      F8020400 00C60000 00020000 40080168
     S000 E0000560 8E0FFFF8 00000008 40C60000
    mistral hdr: req_token 0x0(0), src_index 0x2(2), rx_offset 0x76(118)
      requeue 0, obl_pkt 0, vlan 0xC6(198)
    destmac FF.FF.FF.FF.FF.FF, srcmac 00.00.0C.07.AC.C6, protocol 0806
    layer 3 data: 00010800 06040002 00000C07 ACC60A19 C601FFFF FFFFFFFF
                  0A19C601 00000000 00000000 00000000 00000000 0000C601
                  8300A369 00000000 0000FFFF
    protocol ip: version 0x04, hlen 0x05, tos 0x00, totlen 48, identifier 0
      df 0, mf 0, fo 0, ttl 1, src 10.X.X.X, dst 224.0.0.2
        udp src 1985, dst 1985 len 28 checksum 0x53BE
    Dist -1
    interface Vl198, routine mistral_process_rx_packet_inlin, timestamp 23:48:26.830
    dbus info: src_vlan 0xC6(198), src_indx 0x341(833), len 0x42(66)
      bpdu 0, index_dir 0, flood 1, dont_lrn 0, dest_indx 0x40C6(16582)
      60020401 00C60400 03410400 42080000 00110448 0E087C7C 00000008 40C60000
    mistral hdr: req_token 0x0(0), src_index 0x341(833), rx_offset 0x76(118)
      requeue 0, obl_pkt 0, vlan 0xC6(198)
    destmac 01.00.5E.00.00.02, srcmac 00.00.0C.07.AC.C6, protocol 0800
    protocol ip: version 0x04, hlen 0x05, tos 0x00, totlen 48, identifier 0
      df 0, mf 0, fo 0, ttl 1, src 10.X.X.X, dst 224.0.0.2
        udp src 1985, dst 1985 len 28 checksum 0x53BF
    This issue is not continuous, its triggering intermittently sometime with in couple of hours   or days

    After digging I could able to find out
    VLAN0195 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 165 last change occurred 00:31:14 ago
              from GigabitEthernet6/14
     VLAN0196 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 122 last change occurred 00:31:14 ago
              from GigabitEthernet6/14
     VLAN0197 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 291 last change occurred 00:31:14 ago
              from GigabitEthernet6/14
     VLAN0198 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 961 last change occurred 00:31:14 ago
              from GigabitEthernet6/14
     VLAN0199 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 1165 last change occurred 00:31:25 ago
              from GigabitEthernet6/14
     VLAN0200 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 888 last change occurred 00:31:25 ago
              from GigabitEthernet6/14
    Port g 6/14 config
    interface GigabitEthernet6/14
     switchport
     switchport trunk encapsulation dot1q
     switchport trunk native vlan 200
     switchport trunk allowed vlan 195-200
     switchport mode trunk
    connected to Dist2- WLC
    195  Wireless-Voice                   active    
    196  GTC-VIDEO                        active    
    197  IP_Camera                        active    
    198  Wireless-client                        active    
    199  Cisco-AP-MGMT                    active    
    200  NW-MGMT                          active  
    Rest of all vlans
    VLAN0110 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 824 last change occurred 00:51:49 ago
              from TenGigabitEthernet1/3
     VLAN0111 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 680 last change occurred 00:51:49 ago
              from TenGigabitEthernet1/3
    Also some ports I can root inconsistent on secondary switch configured as root secondary
    Ten gig1/3 is connected to floor switch
    VLAN0110 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 297 last change occurred 00:37:47 ago
              from StackPort1
     VLAN0111 is executing the rstp compatible Spanning Tree protocol
      Number of topology changes 164 last change occurred 00:37:47 ago
              from StackPort1

  • [SOLVED] Network interface name keeps changing

    My network interface name keeps changing between wlp2s0 and wlan0. This is a real pain, since I never know what name will be generated at boot. Most of the time it's called wlp2s0, so this is what netctl is set up to handle by itself. At boots were wlan0 is generated I have to connect manually.
    I've tried making the name static by adding a rule to the /etc/udev/rules.d/10-network.rules. The rule i added was:
    SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="48:5d:60:7e:64:e9", NAME="wlp2s0"
    Wlp2s0 is generated at boot alright, but I still have to connect manually with this solution. As if the "new" wlp2s0 is not recognized as the old one (same MAC). What gives?
    This is on an Asus Eee 1001PXD, with the Qualcomm Atheros AR9285.
    Last edited by madr (2013-05-18 20:09:34)

    I've now been able to replicate the issue, and run the command:
    journalctl -b
    I did find the output:
    mai 18 02:30:02 <hostname> systemd-udevd[126]: error changing net interface name wlan0 to wlp2s0: Device or resource busy
    I haven't been able to process the whole output yet (I'll continue tomorrow if necessary), but I've found some things that I hope will clearify things. I get similar outputs to the following a lot throughout:
    mai 18 02:30:03 <hostname> dhcpcd[237]: wlan0: carrier lost
    mai 18 02:30:03 <hostname> dhcpcd[237]: wlan0: waiting for carrier
    mai 18 02:30:04 <hostname> systemd[1]: [email protected]: control process exited, code=exited status=1
    mai 18 02:30:04 <hostname> systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
    mai 18 02:30:04 <hostname> systemd[1]: Unit [email protected] entered failed state.
    mai 18 02:30:04 <hostname> systemd[1]: Starting Network.
    mai 18 02:30:04 <hostname> systemd[1]: Reached target Network.
    EDIT:
    I see now that this is later in time, so that's not so strange after all. I'll look some more.
    EDIT2:
    The error code that a name change i impossible is the first time the term 'wlan0' occurs in the log. However there's a line much earlier that talks about wlp2s0:
    mai 18 02:29:59 <hostname> systemd[1]: Expecting device sys-subsystem-net-devices-wlp2s0.device...
    But as I said, if this information doesn't help, I'll have a closer look at the output tomorrow. Getting late here in Norway now.
    Last edited by madr (2013-05-18 01:20:50)

  • [SOLVED] WIFI interface has "state UNKNOWN"

    I have tried to read myself to a solution for the following problem but without luck. Now I'm stuck so any solution or directions would be most welcome.
    I have a BCM4312 wifi card. No interface appeared when using the b43 driver but with broadcom-wl the interface is recognised.
    I can run
    # ip link set wlp3s0 up
    without problems but then
    $ ip link
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT qlen 1000
    link/ether 0c:ee:e6:d2:20:c5 brd ff:ff:ff:ff:ff:ff
    3: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
    link/ether 00:24:e8:ed:e3:c2 brd ff:ff:ff:ff:ff:ff
    show that the state of the wifi interface wlp3s0 has changed (from down) to UNKNOWN. What does this mean and how can I get it up?
    Furthermore, trying to assign an ip address gives
    # dhcpcd wlp3s0
    dhcpcd[312]: version 5.6.8 starting
    dhcpcd[312]: wlp3s0: sending IPv6 Router Solicitation
    dhcpcd[312]: wlp3s0: broadcasting for a lease
    dhcpcd[312]: wlp3s0: sending IPv6 Router Solicitation
    dhcpcd[312]: wlp3s0: sending IPv6 Router Solicitation
    dhcpcd[312]: wlp3s0: sending IPv6 Router Solicitation
    dhcpcd[312]: wlp3s0: no IPv6 Routers available
    dhcpcd[312]: timed out
    System info if relevant:
    $ uname -r
    3.10.2-1-ARCH
    I would be thankful for any help.
    Last edited by psychopathrik (2013-07-26 13:13:14)

    Thanks a lot for the quick reply Trilby.
    I guess I should have read more carefully. I thought it would have needed it to be up before connecting.
    Following the wiki solved it.

  • Cisco stack 3750 switch - some switches not accpet the changes

    I have 3750 stack with 4 switches.
    I am trying to make change some port to new VLAN, but switch 2 & 3 new change never works, the ports stick with old VLAN. Other two switches works as I expected on new changed VLAN.
    Tried to reboot, no progress.
    Any idea
    #Show VLAN command confirmed the VLAN changes are made.
    #show switch detail
                                                   Current
    Switch# Role     Mac Address     Priority     State
    1       Member   0019.e752.xxxx     1         Ready
    2       Member   0015.f9bf.xxxx    1         Ready
    3       Member   0016.c880.xxxx     1         Ready
    *4       Master   0011.bbe4.xxxx     1         Ready
             Stack Port Status             Neighbors
    Switch# Port 1     Port 2           Port 1   Port 2
    1       Ok         Ok               3       2
    2       Ok         Ok               4       1
    3       Ok         Ok               1       4
    4       Ok         Ok               3       2
    #show ver
    Switch   Ports  Model              SW Version              SW Image
         1   52     WS-C3750G-48TS     12.2(25)SEE2            C3750-IPBASE-M
         2   52     WS-C3750G-48TS     12.2(25)SEE3            C3750-IPBASE-M
         3   52     WS-C3750G-48TS     12.2(25)SEE3            C3750-IPBASE-M
    *    4   52     WS-C3750-48P       12.2(25)SEE3            C3750-IPBASE-M

    Now 
    Interface GigabitEthernet3/0/25 and Interface GigabitEthernet3/0/26 are changed to different vlan (308 and 324) , but previous VLAN 107 still traffic that ports..
    #sh vlan confirmed the changes (at beginning, it does not show up the changes, after reboot system, it shows up, but not effect). Switch 1 and 4 ports changed to new vlan , it works. , any port changes on switch 2 and 3 not working, still with previous VALN 107
    #sh vlan
    113 DAL_Backup                       active
    115 DAL_Testlab                     active
    308 VLAN0308                         active   Gi3/0/25
    324 VLAN0324                         active   Gi1/0/1, Gi1/0/26, Gi3/0/26
    #show runn
    interface GigabitEthernet3/0/24
    switchport access vlan 107
    switchport mode access
    spanning-tree portfast
    interface GigabitEthernet3/0/25
    switchport access vlan 308
    switchport mode access
    spanning-tree portfast
    interface GigabitEthernet3/0/26
    switchport access vlan 324
    switchport mode access
    spanning-tree portfast
    interface GigabitEthernet3/0/27
    switchport access vlan 107
    switchport mode access
    spanning-tree portfast

  • How can I initialize all TabNavigator Tabs upon a state change?

    Here's the basic goal. I want to provide two views to the
    user that display the same panels. I configured each view as a
    separate state but I am having trouble initializing each of the tab
    views since they are only created by Flex when the user first
    selects it. I need them all created when the user changes to that
    state so that I can insert my view objects. Does that make sense?
    Ok, how about an example program. I define three view objects
    in ActionScript which will be used in two different states. I use
    AddChild to put them in the proper layout location. The problem is
    with the Tab state. The AddChild operation only works for the first
    tab because it is visible. The other two tabs don't get setup
    properly. Can anyone help me resolve this?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="onCreationComplete()">
    <mx:Script>
    <![CDATA[
    import mx.containers.VBox;
    import mx.controls.Label;
    [Bindable] public var view1:VBox;
    [Bindable] public var view2:VBox;
    [Bindable] public var view3:VBox;
    private function onCreationComplete():void
    var label1:Label = new Label();
    var label2:Label = new Label();
    var label3:Label = new Label();
    label1.text = "This is view 1.";
    label2.text = "This is view 2.";
    label3.text = "This is view 3.";
    view1 = new VBox();
    view1.label = "View 1";
    view1.addChild(label1);
    view2 = new VBox();
    view2.label = "View 2";
    view2.addChild(label2);
    view3 = new VBox();
    view3.label = "View 3";
    view3.addChild(label3);
    currentState = "wizardState";
    private function changeState():void
    switch(stateBox.selectedItem.data)
    case 0: currentState = 'wizardState'; break;
    case 1: currentState = 'tabState'; break;
    ]]>
    </mx:Script>
    <mx:Panel id="mainPanel" title="Tab View Bug" width="400"
    height="320"/>
    <mx:ComboBox id="stateBox" change="changeState()">
    <mx:dataProvider>
    <mx:Object label="Wizard" data="0"/>
    <mx:Object label="Tabbed" data="1"/>
    </mx:dataProvider>
    </mx:ComboBox>
    <mx:states>
    <mx:State name="wizardState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:HBox width="100%" height="100%"
    verticalAlign="top">
    <mx:ToggleButtonBar id="wizardButtonBar" width="20%"
    direction="vertical"
    dataProvider="{wizardViewStack}"/>
    <mx:ViewStack id="wizardViewStack" width="80%"
    selectedIndex="{wizardButtonBar.selectedIndex}"/>
    </mx:HBox>
    </mx:AddChild>
    <mx:AddChild target="{view1}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    <mx:AddChild target="{view2}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    <mx:AddChild target="{view3}"
    relativeTo="{wizardViewStack}" position="lastChild"/>
    </mx:State>
    <mx:State name="tabState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:TabNavigator id="tabViewStack" width="100%"
    height="100%">
    <mx:VBox label="Tab 1" id="tab1"/>
    <mx:VBox label="Tab 2" id="tab2"/>
    <mx:VBox label="Tab 3" id="tab3"/>
    </mx:TabNavigator>
    </mx:AddChild>
    <mx:AddChild target="{view1}" relativeTo="{tab1}"
    position="lastChild"/>
    <mx:AddChild target="{view2}" relativeTo="{tab2}"
    position="lastChild"/>
    <mx:AddChild target="{view3}" relativeTo="{tab3}"
    position="lastChild"/>
    </mx:State>
    </mx:states>
    </mx:Application>

    Ok, here is an even simpler scenario. I take each view from
    the default state and put them in the new tab view when the state
    changes. If you compile and run this example, the only view that
    makes it into the tabview is the one that was active when the state
    changed. Why is that?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Script>
    <![CDATA[
    private function changeState():void
    switch(stateBox.selectedItem.data)
    case 0: currentState = ''; break;
    case 1: currentState = 'tabState'; break;
    ]]>
    </mx:Script>
    <mx:Panel id="mainPanel" title="Tab View Bug" width="400"
    height="320">
    <mx:HBox id="wizardView" width="100%" height="100%"
    verticalAlign="top">
    <mx:ToggleButtonBar id="wizardButtonBar" width="20%"
    direction="vertical"
    dataProvider="{wizardViewStack}"/>
    <mx:ViewStack id="wizardViewStack" width="80%"
    selectedIndex="{wizardButtonBar.selectedIndex}"
    creationPolicy="all">
    <mx:Canvas id="view1" label="Part 1" >
    <mx:TextInput text="This is view 1"/>
    </mx:Canvas>
    <mx:Canvas id="view2" label="Part 2">
    <mx:TextInput text="This is view 2"/>
    </mx:Canvas>
    <mx:Canvas id="view3" label="Part 3">
    <mx:TextInput text="This is view 3"/>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:HBox>
    </mx:Panel>
    <mx:ComboBox id="stateBox" change="changeState()">
    <mx:dataProvider>
    <mx:Object label="Wizard" data="0"/>
    <mx:Object label="Tabbed" data="1"/>
    </mx:dataProvider>
    </mx:ComboBox>
    <mx:states>
    <mx:State name="tabState">
    <mx:AddChild relativeTo="{mainPanel}"
    position="lastChild">
    <mx:TabNavigator id="tabView" width="100%" height="100%"
    creationPolicy="all">
    <mx:Canvas label="Tab 1" id="tab1"/>
    <mx:Canvas label="Tab 2" id="tab2"/>
    <mx:Canvas label="Tab 3" id="tab3"/>
    </mx:TabNavigator>
    </mx:AddChild>
    <mx:RemoveChild target="{view1}"/>
    <mx:AddChild target="{view1}" relativeTo="{tab1}"/>
    <mx:RemoveChild target="{view2}"/>
    <mx:AddChild target="{view2}" relativeTo="{tab2}"/>
    <mx:RemoveChild target="{view3}"/>
    <mx:AddChild target="{view3}" relativeTo="{tab3}"/>
    <mx:RemoveChild target="{wizardView}"/>
    </mx:State>
    </mx:states>
    </mx:Application>

  • How to retrieve date last position change from 0000(sty-Z5)

    hi experts,
    how to retrieve the date last postion change from infotype 0000 with subtype Z5 using select statement with begda of last infotype

    problem solved

  • Agent state changed to reserved but call is not ringing/landing for 30 seconds

    Hi All,
    we have IPCC 8.5, CVP 8.5, UCM 8.5, last few weeks we are facing
    agents are facing intermittently, their state changed to reserved but call is not landing/ring for a while, and we have seen call is going to RONA in CVP logs.
    We have cross checked the Device Target (4 CVP servers) its fine, Queue music is interruptable.
    In Ingress/VXML gateway we have the dial-peer pointing to two subscribers with equal priority. Seems to be some call is not routing to agent phone (delay is there between voice gateway and ip phone) due to some reason. We dont use SIP proxy we use static routing to subscribers.
    Please share your ideas.
    with Regards,
    Manivanna                  

    In Ingress/VXML gateway we have the dial-peer pointing to two subscribers with equal priority.
    The gateway should point to the Call Servers. The Call Servers should have static routes to the subscribers.
    If the call is not getting to the agent even though they go into Reserved (the Call Router has selected them), ensure that the SIP trunks to the Call Servers and the agent phones are in compatible partitions/CSS. Examine the logs on the Call Server when the INVITE is sent to the agent phone. If the INVITE returns 404 (not found) or 503 (unavailable), then the setup is wrong.
    Regards,
    Geoff

  • Someone knows last state of having an UISplitviewcontroller in a UITabbarController? It is still prohibiting?

    Hi,
    Some knows what is the last state of having an UISplitviewcontroller in an UITabbarController? Has any one any app with an UISplitViewController in a UITabBarController already in AppStore?
    I’m still finding in the documentation, that the UISplitViewController has to be the root of the APP.
    http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/Vi ewControllerCatalog/Chapters/SplitViewControllers.html
    “A split view controller must always be the root of any interface you create. In other words, you must always install the view from a UISplitViewController object as the root view of your application’s window. The panes of your split view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally.”
    But reading in Blogs people says that this is no more prohibited..
    Thanks and cheers

    This is a user-to-user consumer forum. Use the develoepr forums for this topic.
    http://devforums.apple.com/

  • SkinnableComponent does not react to state changes

    (Flex 4.5) I'm finding that SkinnableTextBase will change its styles according to the CSS file when it changes state, but SkinnableComponent won't. Why?
    Here's what I do. I create a class which extends SkinnableTextBase like this:
    public function MySTB() {
        super();
        states = new Array();
        for each (var name:String in ["inactive", "active"]) {
            var state:State = new State();
            state.name = name;
            states.push(state);
    I create another class which is the same, but which extends SkinnableComponent.
    In the CSS I tell them to have a green background when they are in the "active" state:
    customLabel|MySTB:active, customLabel|MySCom:active {
        content-background-color: #ccffcc;
    And I give both of them basically the same skin.
    When I call setCurrentState("active") on each of them, the SkinnableTextBase changes its background colour, but the SkinnableComponent doesn't. Why not? I would like to base a component on SkinnableComponent and need it to respond to state changes.

    Thanks Karl for the response. In this case the issue is not skin states but component states. It's rather confusing but there are two types of state and in fact the CSS states syntax as given above pertains to the component state. The skin has nothing to do with it.
    There must be something in SkinnableTextBase which is not in SkinnableComponent which causes the css syntax to be applied; though in theory this should work in any component. (see last example here: http://cookbooks.adobe.com/post_How_to_use_the_new_CSS_syntax_in_Flex_4-15726.html).

  • State change/transition fires addedToStage/removedFromStage events

    Hi,
    Not sure if this is intended behaviour, but I noticed that a state transition in my components actually triggers addedToStage/removeFromStage events for objects in that component.
    i.e. I've got an application with two components and two states.
    Changing states (in the application) has move transitions for both components (one component is like a drawer sliding out and the other makes way for it, but both components were already on the stage before the state change).
    When switching between the two states the components that are moved actually also fire the addedToStage/removedFromState events.
    Cheers
    Skip

    Hi Chet,
    I just tried setting up a new project to demo this, but (surprise surprise) it seems to work fine now.
    I still see it firing in my original project, but I guess that's got to be something I'm doing wrong there.
    It'll probably take me some time to plough through it though as the project is pretty large, but will post if I find it (or if i can isolate to a demo project).
    Thanks
    Skip

  • 2 Vertical Axis Chart & State Change Bug

    When a column or line chart has 2 vertical axis (one on the left and one  on the right), the additional vertical axis must be defined at the series level  as the definition at the chart level only allows for one vertical axis.
    When you define the additional vertical axis at the series level, it will populate on the chart when the chart is first rendered.  But, it fails to populate after a state change.
    This problem does not occur if the data provider uses static data defined in Action Script as an array collection.  But, the problem always occurs if the data provider uses a web service.
    This is a Flex 4 problem.  Flex 3 does not have this problem.
    Below is an example that will demonstrate the problem.  It uses the Flex Grocer web service that comes on the CD with Jeff Tapper’s book “Adobe FLEX 3 Training from the Source” (an Adobe Press book).  However, this example can be easily modified to use any web service.
    The example is currently pointing to static data defined in Action Script.
    You can switch from static data to web service data by commenting the instruction on line 32 ( dp = dpStatic; ) and un-commenting the instruction on line 33 ( dp = (event.result as ArrayCollection); ).
    The example first presents a chart with Gross Sales plotted as columns using the left axis and Net Sales plotted as a line using the right axis.  Note, the vertical axis for Net Sales is defined at the series level.
    When you click the “Data” button a state change occurs and a data grid is presented showing Gross Sales and Net Sales.  When you click the “Chart” button another state change occurs and the chart is presented again.  If you are pointing to static data, both Gross Sales and Net Sales will populate on the chart.  If you are pointing to web service data, Gross Sales will still populate, but Net Sales fails to populate.  This is the problem.
    Does anyone have a solution or work around for this problem?
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   creationComplete="init()">
      <fx:Script>
        <![CDATA[
          import mx.rpc.events.ResultEvent;
          import mx.rpc.events.FaultEvent;
          import mx.collections.ArrayCollection;
          [Bindable]
          public var selectedType:String = "All";
          [Bindable]
          public var startDate:Date = new Date(2006, 4, 1);
          [Bindable]
          public var endDate:Date = new Date(2006, 4, 5);
          [Bindable]
          public var dp:ArrayCollection;
          public var dpStatic:ArrayCollection = new ArrayCollection([
            {DTSALE:"11-Nov-07", NET:41.87, GROSS:63.34},
            {DTSALE:"12-Nov-07", NET:45.74, GROSS:58.56},
            {DTSALE:"13-Nov-07", NET:42.77, GROSS:62.34},
            {DTSALE:"14-Nov-07", NET:48.06, GROSS:75.65},
          private function init():void {
            getData();
          private function getData():void {
            dashboardWS.getSalesData.send();
          private function salesRPCResult(event:ResultEvent):void {
            dp = dpStatic;                                        // Line on chart always populates with static data
            // dp = (event.result as ArrayCollection);   // Line on chart does not populate with WebService data after state change
          private function showFault(event:FaultEvent):void {
            trace(event.fault.faultCode + ":" + event.fault.faultString);
        ]]>
      </fx:Script>
      <fx:Declarations>
        <mx:WebService id="dashboardWS" fault="showFault(event)"
                       wsdl="http://localhost:8300/flexGrocer/cfcs/aggregate.cfc?wsdl">
          <mx:operation name="getSalesData" result="salesRPCResult(event)">
            <mx:request>
              <startDate>{startDate}</startDate>
              <endDate>{endDate}</endDate>
              <category>{selectedType}</category>
            </mx:request>
          </mx:operation>
        </mx:WebService>
      </fx:Declarations>
      <s:states>
        <s:State name="chart"/>
        <s:State name="data"/>
      </s:states>
      <s:controlBarContent>
        <s:Button label="Chart" click="this.currentState='chart'"/>
        <s:Button label="Data" click="this.currentState='data'"/>
      </s:controlBarContent>
      <s:HGroup width="100%" height="100%">
        <mx:ColumnChart includeIn="chart"
                        width="100%" height="100%" dataProvider="{dp}">
          <mx:horizontalAxis>
            <mx:CategoryAxis categoryField="DTSALE"/>
          </mx:horizontalAxis>
          <mx:verticalAxis>
            <mx:LinearAxis id="vLeft" title="Gross Sales Columns"/>
          </mx:verticalAxis>
          <mx:series>
            <mx:ColumnSeries yField="GROSS" verticalAxis="{vLeft}"/>
            <mx:LineSeries yField="NET">
              <mx:verticalAxis>
                <mx:LinearAxis id="vRight" title="Net Sales Line"/>
              </mx:verticalAxis>
            </mx:LineSeries>
          </mx:series>
          <mx:verticalAxisRenderers>
            <mx:AxisRenderer axis="{vLeft}" placement="left"/>
            <mx:AxisRenderer axis="{vRight}" placement="right"/>
          </mx:verticalAxisRenderers>
        </mx:ColumnChart>
        <mx:DataGrid dataProvider="{dp}" width="100%" height="100%" includeIn="data">
          <mx:columns>
            <mx:DataGridColumn dataField="DTSALE"/>
            <mx:DataGridColumn dataField="NET"/>
            <mx:DataGridColumn dataField="GROSS"/>       
          </mx:columns>
        </mx:DataGrid>
      </s:HGroup>
    </s:Application>

    I found a workaround.
    When the chart goes through a state change, the “maximum” property on the additional vertical axis defined at the series level defaults to 100 causing the line not to render as the data values are greater than 100.  Setting this to a higher value (maximum="10000" ) forces the line to appear consistently after a state change.
    I still believe this is a bug.
    The downside is that I will have to dynamically determine the maximum vale to use at runtime, but at least I can still use state changes on two vertical axis charts.

  • CSS-11503 ISC State Change:DOWN

    I'm curious what kind of network errors caused my CSS to have a ISC State Change. Appears all services went down/suspended. Running 8.10.4.01 back to Catalyst 6509.
    After a couple days of running my CSS stops, troubleshooting what's going on.
    show
    02/03/2010 13:37:21:Enterprise:ISC State Change:DOWN, port-1 fail = No Physical Link, port-2 fail = No Interface Assigned
    02/03/2010 13:37:21:Generic:Virtual Router 9 down on interface 10.0.2.238
    02/03/2010 13:37:21:Generic:Virtual Router 100 down on interface 10.0.35.3
    02/03/2010 13:37:22:Enterprise:Service Transition:MATRIXPORTALQA_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:MATRIXPORTALQA_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf135 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf135 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf31 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf31 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf47 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf47 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_8999 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_8999 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws134 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws134 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_8999 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_8999 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_cmed -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us00hqws150_cmed -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:us0999web135_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web41_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web46 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web47_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web110 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web110 -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:web111 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web111 -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:webface_ssl -> suspended
    02/03/2010 13:37:24:Generic:LINK UP for  1/1
    02/03/2010 13:37:25:Generic:COLD START
    02/03/2010 13:37:32:Generic:Virtual Router 9 idle on interface 10.0.2.238
    02/03/2010 13:37:32:Generic:Virtual Router 100 idle on interface 10.0.35.3
    02/03/2010 13:37:32:Generic:Virtual Router 9 backup on interface 10.0.2.238
    02/03/2010 13:37:32:Generic:Virtual Router 100 backup on interface 10.0.35.3
    02/03/2010 13:37:52:Generic:Virtual Router 9 master on interface 10.0.2.238
    02/03/2010 13:37:52:Generic:Virtual Router 100 master on interface 10.0.35.3
    02/03/2010 20:46:18:Enterprise:ISC State Change:DOWN, port-1 fail = No Physical Link, port-2 fail = No Interface Assigned

    I'm curious what kind of network errors caused my CSS to have a ISC State Change. Appears all services went down/suspended. Running 8.10.4.01 back to Catalyst 6509.
    After a couple days of running my CSS stops, troubleshooting what's going on.
    show
    02/03/2010 13:37:21:Enterprise:ISC State Change:DOWN, port-1 fail = No Physical Link, port-2 fail = No Interface Assigned
    02/03/2010 13:37:21:Generic:Virtual Router 9 down on interface 10.0.2.238
    02/03/2010 13:37:21:Generic:Virtual Router 100 down on interface 10.0.35.3
    02/03/2010 13:37:22:Enterprise:Service Transition:MATRIXPORTALQA_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:MATRIXPORTALQA_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf135 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf135 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf31 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf31 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf47 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:newwf47 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_8999 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_HOD_8999 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws157_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00drws158_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws134 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws134 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_8999 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_HOD_8999 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_cmed -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws149_cmed -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1350 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1350 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1354 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_1354 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_80 -> suspended
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_80 -> down
    02/03/2010 13:37:22:Enterprise:Service Transition:us00hqws150_cmed -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us00hqws150_cmed -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:us0999web135_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web41_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web46 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:us999web47_80 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web110 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web110 -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:web111 -> suspended
    02/03/2010 13:37:23:Enterprise:Service Transition:web111 -> down
    02/03/2010 13:37:23:Enterprise:Service Transition:webface_ssl -> suspended
    02/03/2010 13:37:24:Generic:LINK UP for  1/1
    02/03/2010 13:37:25:Generic:COLD START
    02/03/2010 13:37:32:Generic:Virtual Router 9 idle on interface 10.0.2.238
    02/03/2010 13:37:32:Generic:Virtual Router 100 idle on interface 10.0.35.3
    02/03/2010 13:37:32:Generic:Virtual Router 9 backup on interface 10.0.2.238
    02/03/2010 13:37:32:Generic:Virtual Router 100 backup on interface 10.0.35.3
    02/03/2010 13:37:52:Generic:Virtual Router 9 master on interface 10.0.2.238
    02/03/2010 13:37:52:Generic:Virtual Router 100 master on interface 10.0.35.3
    02/03/2010 20:46:18:Enterprise:ISC State Change:DOWN, port-1 fail = No Physical Link, port-2 fail = No Interface Assigned

Maybe you are looking for

  • Can Crystal Enterprise be configured so that  it does not create files in the FileStore - Output

    Post Author: christof CA Forum: Administration We are using the API to create pdf files using Crystal Enterprise but the problem is that now files are create in duplicate.We have one file which is stored in the filestore/output and another file which

  • Electric Boogaloo sheets 1+2

    Q1: i) A wine shop allows customers to only buy wine in packages containing 3, 9 or 12 bottles. Write a method that accepts an integer (num) as a parameter and decides whether or not it is possible to buy num bottles of wine at the shop. Your method

  • PO for IDOC

    Hi experts, I need to create IDOC when PO gets saved. I have checked in the Forum i am unable to find the right one. Please explain in detail  with configuration with tcode. Kindly help rgds sp

  • What is the Account and Contact workflow or best practice?

    I'm just learning the use of the web services. I have written something to upload my customers into accounts using the web services. I need to now include a contact for each account. I'm trying to understand the workflow. It looks like I need to firs

  • I cracked my ipad screen

    Does anyone know the cost to replace the cracked screen of an iPad?  Is this even possible to do without having to purchase an entirely new iPad? Spirit70