Bounce a port via SSH

User avatar
jjonsson
Associate
Associate
 
Posts: 337
Joined: Wed Nov 05, 2014 12:30 pm
Location: Denmark
Has thanked: 37 times
Been thanked: 65 times

Bounce a port via SSH

Tue Jul 18, 2017 3:18 am

What is the complete CLI command to bounce f.ex. port 4 now for 10 sec. ?

User avatar
jakematic
Experienced Member
 
Posts: 168
Joined: Thu Jul 14, 2016 8:15 am
Location: NC USA
Has thanked: 362 times
Been thanked: 87 times

Re: Bounce a port via SSH

Tue Jul 18, 2017 7:30 am

Code: Select all
cmdline
touch /tmp/poe_override/4


Works the same as the GUI

You'll see this in the log:

Code: Select all
Jul 18 07:27:45 switch[1364]: Port 6 Link: changed from poe override
 

User avatar
jjonsson
Associate
Associate
 
Posts: 337
Joined: Wed Nov 05, 2014 12:30 pm
Location: Denmark
Has thanked: 37 times
Been thanked: 65 times

Re: Bounce a port via SSH

Tue Jul 18, 2017 7:46 am

Great!

But how long does it bounce ?

Immediately off/on, 10 sec. or ?

User avatar
jakematic
Experienced Member
 
Posts: 168
Joined: Thu Jul 14, 2016 8:15 am
Location: NC USA
Has thanked: 362 times
Been thanked: 87 times

Re: Bounce a port via SSH

Tue Jul 18, 2017 8:10 am

For 10 seconds - just like the GUI
Just tested with a device and timed it.

VMSystems
Member
 
Posts: 5
Joined: Wed Dec 28, 2016 9:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Bounce a port via SSH

Fri Feb 02, 2024 6:03 am

Forgive my ignorance...

The first command you type in the SSH window is "cmdline"

then

"touch /tmp/poe_override/4" for port 4

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 7 guests