How to tell when the interface is down and was last active.

Is there a function within Cisco Prime Infrastructure 2.0 (2.0.0.0.294) that will display the last time that an interface was active? Our end switch hardware is as follows C2960s-48fps and C3750-48PS-S.
See below for command and command output from the console of one of our switches.
C2960s-48fps#show int gi1/0/6 | include Last | proto
GigabitEthernet1/0/6 is down, line protocol is down (notconnect)
Last input never, output 1w6d, output hang never
Above is an example of one interface but can this be accomplished for all interfaces on the said switch?
Thanks
Message was edited by: Bobby Sasser The following is the response that Cisco TAC sent. Not happy with this answer! Unfortunately , Prime doesn’t collect those precise information. So apparently you won’t be able to poll that information from the device.

You have not posted to code for Stopper, so it's impossible to reason about that
1. How can I tell when thread is finished?
Use Thread.Join() or Thread.isAlive()
2. How do I kill this thread once it is finished?
You can't and you don't. Just let the method the thread is running exit normally. Sometimes that means putting in a boolean variable to control a loop, and then exiting when the boolean is false.
Another thought - you could set the thread as a Daemon thread - when you don't have any non-daemon threads running, java will exit.

Similar Messages

  • Thread: How to tell when the thread is finished AND how to kill it?

    Hi there,
    I have a thread that runs in the background and does this:
    class MyThread implements Runnable 
              public void run()
                   Stopper stopper = new Stopper();
                            //do something that takes some time
                            stopper.stop();
                            System.out.println("total time "+stopper.getTime());
    }this works fine (I have a swing gui where I click a button and this thread runs and it's ok. PROBLEM IS, when I click the button again (to re-activate the thread) it seems that the stopper is not null but still counting the time (I was under the impression that ...= new Stopper() will create a new object type Stopper).
    so -
    1. How can I tell when thread is finished?
    2. How do I kill this thread once it is finished?
    the invocation:
         public void actionPerformed(ActionEvent arg0)
              Thread t = new Thread( new MyThread());
              t.start();          
         }THANK YOU!

    You have not posted to code for Stopper, so it's impossible to reason about that
    1. How can I tell when thread is finished?
    Use Thread.Join() or Thread.isAlive()
    2. How do I kill this thread once it is finished?
    You can't and you don't. Just let the method the thread is running exit normally. Sometimes that means putting in a boolean variable to control a loop, and then exiting when the boolean is false.
    Another thought - you could set the thread as a Daemon thread - when you don't have any non-daemon threads running, java will exit.

  • How to tell when a user's account password was reset?

    Using Oracle 10g.
    How does one tell when a user's account password was reset?
    Thanks,
    (BLL)

    Dear user445775,
    I didnt get timestamp. ie., getting date alone. How can i able to get it.
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    SQL> select CTIME,PTIME from sys.user$ where name='SCOTT';
    CTIME PTIME
    18-JAN-08 12-JUN-10
    SQL> alter user scott identified by XXXXX;
    User altered.
    SQL> select CTIME,PTIME from sys.user$ where name='SCOTT';
    CTIME PTIME
    18-JAN-08 27-JUL-10
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Solaris: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> select CTIME,PTIME from sys.user$ where name='SCOTT';
    CTIME PTIME
    21-APR-10 17-MAY-10
    SQL> alter user scott identified by XXXXX;
    User altered.
    SQL> select CTIME,PTIME from sys.user$ where name='SCOTT';
    CTIME PTIME
    21-APR-10 27-JUL-10

  • How to tell what version of Acrobat or Reader was last used to save a PDF

    How can I tell what version of Acrobat or Reader was last used to save a PDF file? My users are using fillable forms from grants.gov. We want them to use Adobe Reader 8.1.3 to fill these forms, but some accidentally use the Pro version of Acrobat. They need this to make PDFs from Word & other apps, but Pro will corrupt the fillable forms.
    When I open a saved form in Reader 8.1.3 and click File > Properties it says Acrobat 7.x even though I know it was saved with 8.1.3.
    Is there a way to know which version number and type (Reader or Pro) last saved a PDF?

    But it won't tell you what was used last. It just gives the original information.
    It also won't differentiate between Pro and Standard and of course won't mention Reader at all.

  • How to tell when the system was shut down?

    I'm curious to know what time my system lost power, whats a good way to tell? I have been checking the logs to get the last entry times but was curioius if there were other methods of telling when the box's power was interrupted?

    jo3 wrote:I'm curious to know what time my system lost power, whats a good way to tell? I have been checking the logs to get the last entry times but was curioius if there were other methods of telling when the box's power was interrupted?
    A rather ghetto way of doing it:
    #!/bin/bash
    log="/var/log/uptime-poll"
    pollsecs=10
    echo $$ > /var/run/uptime-poll.pid
    if [[ -f "$log.tmp" ]]; then
    echo "Lost power at: `cut -d';' -f2 "$log.tmp"`" >> "$log.log"
    fi
    while :; do
    date +'%s;%D %T' > "$log.tmp"
    sleep $pollsecs
    done
    ...and in /etc/rc.local.shutdown...
    killall $(cat /var/run/uptime-poll.pid)
    rm /var/run/uptime-poll.pid
    rm /var/log/uptime-poll.tmp
    Last edited by Wintervenom (2009-08-29 06:37:29)

  • How to tell when the load to start

    Hi,
    don't even know where to look for the answer, so I apologize
    if this topic was already opened. Here's my case. In main flash
    movie load another flash movie, where different items come from
    left and right side of the screen (full screen window). After a
    click on one item, all the item go the sam eway off the screen and
    another movie loads. Question. How to tell the flash that first all
    the items must go off the screen and then unload that movie and
    load the new one?
    THX for the help

    jo3 wrote:I'm curious to know what time my system lost power, whats a good way to tell? I have been checking the logs to get the last entry times but was curioius if there were other methods of telling when the box's power was interrupted?
    A rather ghetto way of doing it:
    #!/bin/bash
    log="/var/log/uptime-poll"
    pollsecs=10
    echo $$ > /var/run/uptime-poll.pid
    if [[ -f "$log.tmp" ]]; then
    echo "Lost power at: `cut -d';' -f2 "$log.tmp"`" >> "$log.log"
    fi
    while :; do
    date +'%s;%D %T' > "$log.tmp"
    sleep $pollsecs
    done
    ...and in /etc/rc.local.shutdown...
    killall $(cat /var/run/uptime-poll.pid)
    rm /var/run/uptime-poll.pid
    rm /var/log/uptime-poll.tmp
    Last edited by Wintervenom (2009-08-29 06:37:29)

  • Is there a way to tell when the trash bin in iPhoto was emptied?

    I am a teacher. I lost some very important photos and was under the impression that one of my students deleted them because she was mad at me. I was confused about how she did this because the main trash bin was still completely full. I didn't think until I got home about the trash bin in iPhoto. After a couple of tests, I think this is probably how she deleted the (since-recovered) photos.
    My question is, am I able to tell when photos were deleted from iPhoto?

    None that I know of.
    Regards
    TD

  • How can I display the date a word document was last modified on my web page?

    I have lists of links to word documents on my web pages. I
    want to be able to show the date the word document was last
    modified next to each link. My pages are straight html.
    Thanks.

    >but I would have to go to each individual file (I have
    hundreds) and put this code on each link.
    No, you can use the FileSystemObject to get a list of the
    files in the directory. See if you can adapt this for your site:
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    <%
    Function FormatSize(SizeInBytes)
    if SizeInBytes > 1024^2 then
    FormatSize = formatnumber(SizeInBytes / 1024^2,2) & "
    MB"
    elseif SizeInBytes > 1024 then
    FormatSize = formatnumber(SizeInBytes / 1024,2) & " KB"
    else
    FormatSize = SizeInBytes & " Bytes"
    end if
    end function
    %>
    <%
    dim parts
    dim part
    dim BrowseLine
    dim RelLink
    dim i
    url = Request.ServerVariables("URL")
    Parts = split(URL,"/")
    for part = 1 to ubound(Parts)-1
    ' calc link
    RelLink = ""
    for i = 1 to ubound(Parts) - part - 1
    RelLink = RelLink & "..\"
    next
    If trim(BrowseLine) <> "" then
    BrowseLine = BrowseLine & "/"
    end if
    BrowseLine = BrowseLine & "<A href=" & RelLink
    & ">" & parts(part) & "</A>"
    next
    ' add "back" link
    BrowseLine = Browseline & "  " &
    "<A href='javascript:history.back();'><img
    src='/images/return.gif' border=0></A>"
    Response.Write "<P class = 'NavTop'>" & BrowseLine
    & "</P>"
    Dim fso
    set fso = server.CreateObject("Scripting.fileSystemObject")
    dim fldr
    dim fle
    %>
    <a href="../index.asp"><img
    src="../images/leftbanner.jpg" width="343" height="70"
    border="0"></a>
    <link href="/CSS/dirlist.css" rel="stylesheet"
    type="text/css">
    </p>
    <p></p>
    <table width="85%" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <th width="63%"><div
    align="left">   Document
    Name</div></th>
    <th width="14%">Size</th>
    <th width="23%"><div
    align="left">  Date</div></th>
    </tr>
    <%
    ' display folders
    for each fldr in
    fso.GetFolder(server.MapPath(".")).SubFolders
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    fldr.Name %>'><img src="/images/folder.gif" border=0>
    <%= fldr.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fldr.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fldr.DateLastModified,2)
    %></div></td>
    </tr>
    <%
    next
    %>
    <%
    ' display files
    for each fle in fso.GetFolder(server.MapPath(".")).Files
    dim ext
    ext = fso.GetExtensionName(fle.path)
    if (ext <> "asp") and (ext <> "scc") then
    %>
    <tr>
    <td class="FileName"> <a href='<%=
    escape(fle.Name) %>'><img src="/images/file.gif"
    width="14" height="16" border=0>
    <%= fle.Name %></a></td>
    <td class="FileSize">  <%=
    FormatSize(fle.Size) %></td>
    <td class="FileDate"><div
    align="left">  <%=
    FormatDateTime(fle.DateLastModified,2) %></div></td>
    </tr>
    <%
    end if
    next
    Set fso = Nothing
    Set fle = Nothing
    Set fldr = Nothing
    %>
    </table>
    <p><a href="/index.asp">Return to Home
    Page</a></p>

  • How to tell if the MBP is Original and  Macs 4 Cash

    Hi-
    How do I tell i my MBP is Original or the other? I remember when I got it about 2 years ago it was not the "original" at that time but if the 2 now are the unibody and original, I have the original.
    Anybody do business with Macs 4 Cash? Reputable??
    Also, I had to do a google search on some number to find out if they put the aster speed HD in my MBP because that was not listed in System Profiler. Sure enough the number brought it up and they did but I forgot what number I used and how I did the search.
    Does anybody know? I tried just the serial number and zero returns

    You're correct that your MBP is the "original" version, but there are many different "original" revisions. What else do you want to know about it? Download MacTracker from versiontracker.com to get more info or ask here exactly what else you want to know.
    It sounds as if you might be selling your Mac? If so, you'll always get a better price selling it outright, rather than to a reseller, as they have to turn around and sell it for a profit, and maybe offer a guarantee and service.
    For HD speed, open Disk Utility, copy the manufacturer's model number, paste it into a google search and you'll get your HD info.
    http://support.apple.com/specs/
    http://www.appleserialnumberinfo.com/Desktop/index.php
    http://www.chipmunk.nl/klantenservice/applemodel.html
    Message was edited by: tjk

  • Hello,the new update of firefox make disappear my " onglets when the mouse go down and reappear when the mouse goes up. it makes me crazy.

    bonjour la mise à jour firefox est programée pour que maintenant les onglets et barre de menu disparaisse quand on descent la souris et réapparaisse quand on remonte.
    ça me stress de ne plus voir mes onglets mais ça n'a pas changer meme en revenant à la version d'avant.
    comment faire?

    *[[How to Customize Toolbars]]
    *[[How to make Firefox and websites go full screen]]

  • How to tell when downloading raw and jpeg images is complete

    i just installed lr 3 and have a new mb 8 gb of ram and dont know how to tell when the download of raw and jpeg is done .ie the time from thumbnail to full down loads

    There should be a progress bar in the upper left corner when in library module.

  • How to show  an error Page in Weblogic when the server is down

    Hi ,
    I heard that every container has the facility to show an error page when the server is down and (when the request has arrived at that time ).
    Please tell me how to configure this in BEA weblogic ??
    Thanks .

    Hi,
    From my understanding weblogic dose not provide the thing which you are asking for, reason is given below.
    - An application is deployed only on managed server one (MS-1)
    - Now if the request comes to the server (MS-1) when it was running and then for some reason MS-1 goes down then weblogic server would be able to send any response back to the client as its down.
    - Hence nothing can be done as the request object is been lost when the server goes down or even cant redirect to an error page as for doing that too the server has to be up and running.
    However there are other way round which can help you overcome this issue as shown below
    - Use Clusters with few managed servers in it which gives you high availability and load-balancing.
    - Use any web servers like Apache in front of weblogic servers.
    Using the above things you can also use customized HTTP Error Responses with error-page element in web.xml and create your own error pages which can be re-directed for the web server side also. For more information go through the below links
    Topic: Customizing HTTP Error Responses
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/webapp/configurejsp.html#wp157884
    Topic: error-page
    http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webapp/web_xml.html#1017571
    Topic: ErrorPage
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/plugins/plugin_params.html#wp1155425
    Hope above information helps you.
    Regards,
    Ravish

  • My Macbook Pro (5,3) sporadically goes to sleep when the lid is open and in use.

    My Macbook Pro (5,3) sporadically goes to sleep when the lid is open and I am actively using it.  This problem happens both with OS X 10.7.2 and Windows 7 (64bit), so I don't think it's an OS issue.  Has anyone else encountered this? It's still covered under apple care... But I'd rather try to fix it myself before having to bring it in.
    Thanks!

    I wouldn't be surprised if this were the case - it does get hot.  However, this happens even when I first open it after having it in sleep mode for an entire night...  Do you know how to run the diag tool with OS X 10.7?

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • Question when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    Question
    when I log into Firefox, the screen scrolls down and I have to use the side-bar to go back up to type my query into the 'search' window. How can I stop that and get Firefox to start with the 'search' window accessible? With thanks, Peter

    See this. <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

Maybe you are looking for

  • Registration of several reference images in a test image using vision builder

    I have downloaded the trial version of vision builder, and I am attempting a test to determine if it's worth buying: I would like to determine the position and orientation of two reference parts within a set of test images.  I am able to load the ref

  • Rotating text without embedding fonts - how?

    No doubt same or similar question was asked and most likely answered but I could not find anything that would match... I want to draw column headers of my ADG vertically. So, I need rotate column text 90 degree and adjust position. Is it true that it

  • Flash game not behaving once in Captivate

    Hello everyone, I've recently built a drag and drop game (with targets and text response) in Flash CS5 using AS3 and when I test it in Flash it works exactly how I want it to. Once I insert it into Captivate 5 and then preview the project in a web br

  • Will 5th gen sync cable work with Touch?

    I haven't tried it, because the 5th gen cable has the little squeeze-and release-feature on it. Will it work with the Touch? Or will I risk breaking pins if I attempt to use it?

  • Credit Note and Debit Note

    Hi Gurus, Please tell me the tcodes for Debit note and Credit note. Thank You