Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
JASPAL_SINGH
Contributor
Jump to solution

Verify the Admin IP | Session Details !

Hi Friends,

I want to know  the command  like to verify the IP of the system or platform from where I have login (ssh) the checkpoint gateway (R77.30 / R80 ) .

Something like session login details etc.

 

Regards,

Jaspal Singh

0 Kudos
2 Solutions

Accepted Solutions
Timothy_Hall
Legend Legend
Legend

If the login name you were using is admin for example, to see admin's login history including source IP use the command last admin from expert mode.  You can also just run last by itself to see login history for all accounts.

 

Attend my online "Be your Own TAC: Part Deux" CheckMates event
March 27th with sessions for both the EMEA and Americas time zones

View solution in original post

Danny
Champion Champion
Champion
last -20 -w
last -20 -i

View solution in original post

7 Replies
Timothy_Hall
Legend Legend
Legend

If the login name you were using is admin for example, to see admin's login history including source IP use the command last admin from expert mode.  You can also just run last by itself to see login history for all accounts.

 

Attend my online "Be your Own TAC: Part Deux" CheckMates event
March 27th with sessions for both the EMEA and Americas time zones
JASPAL_SINGH
Contributor

Thanks for the quick response, it works.

But now there is another point came into picture.

In the output, I am getting names instead of IP.

Can we convert it into IP ?

admin    pts/2        reigate_citrix_n Fri Mar 29 12:07   still logged in
admin    pts/2        reigate_citrix_n Fri Mar 29 07:48 - 08:03  (00:15)

0 Kudos
Timothy_Hall
Legend Legend
Legend

Try last -d

 

Attend my online "Be your Own TAC: Part Deux" CheckMates event
March 27th with sessions for both the EMEA and Americas time zones
0 Kudos
JASPAL_SINGH
Contributor
last -20 -i worked
0 Kudos
Danny
Champion Champion
Champion
last -20 -w
last -20 -i
JASPAL_SINGH
Contributor

last -20 -i worked

thanks for the solution. 🙂

 

0 Kudos
Danny
Champion Champion
Champion

I also added these commands to our ccc script.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    Tue 18 Mar 2025 @ 09:30 AM (EET)

    CheckMates Live Greece

    Tue 25 Mar 2025 @ 12:00 PM (MDT)

    Salt Lake City: CPX 2025 Recap

    Tue 08 Apr 2025 @ 12:00 PM (MDT)

    Denver: CPX 2025 Recap
    CheckMates Events