No announcement yet.

Last Login

  • Filter
  • Time
  • Show
Clear All
new posts

  • Last Login

    Is there a Cisco command to show who was the last person to login to a switch or router?

  • #2
    Re: Last Login

    Anyone have any suggestions?


    • #3
      Re: Last Login

      Doesn't really seem necessary to bump the thread, particularly as it's not even been very long since you posted the question. If somebody has something to contribute then they will do, when they get round to it - nobody is being paid to answer questions here.
      Gareth Howells

      BSc (Hons), MBCS, MCP, MCDST, ICCE

      Any advice is given in good faith and without warranty.

      Please give reputation points if somebody has helped you.

      "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

      "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.


      • #4
        Re: Last Login

        this is something that TACACS would usually do...either that, or having your AAA methods setup appropriately to record all access. (This is somethng I never got around to fully doing.. i wanted to see who vpn'd when)

        What did you need to know the last login for ?

        aaa logging is probably what you need.. must be in your config already, so if you're hunting something that happened recently it won't help if it's not there.

        you can usually see who has made a configu change however -
        show run will show your running config and whoever changed it last:
        XXXXXX#sh run
        Building configuration...

        Current configuration : 10300 bytes
        ! No configuration change since last restart
        version 12.4
        if i had made a change recently, it would say "last change by MyName" or something lik that
        Please do show your appreciation to those who assist you by leaving Rep Point


        • #5
          Re: Last Login

          SH USER

          Is the command in router in privlegle mode .Which can tell the user name and user IP .



          • #6
            Re: Last Login

            "show user" will only detail the current users logged into the device, it will not show any previous user activity.

            Tehcamel is correct, if logging is not configured then "show run" is your best bet.
            Infrastructure Architect
            CCNA, CCNA Security, MCSE, JNCIS