NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
velis
Jun 21, 2016Aspirant
What are commands dealing with PoE on a M4100 type switch
I would like to power-manage devices connected to the switch, e.g. turn them off for the night.
I wanted to write a CRON job (I'm assuming the switch in question is running CRON) which would do this for me. However, I can't seem to find any documentation that would explain how to access the PoE functionality from shell.
These are the functions I'm looking for:
Enumerate all ports (not essential, they could also be provided as a const in the script itself)
Get port power usage status --> whether it's used or not
Cut power from port
Activate power to port
Any help would be greatly appreciated.
Hi velis,
I have inquired your concern to a higher tier of NETGEAR Support. I'm afraid to inform you that it is not possible to do what you require unfortunately. Via the CLI access, it is only possible to run commands capable of applying/editing changes to the configuration of the switch not any changes to the OS of the switch.
Regards,
DaneA
NETGEAR Community Team
8 Replies
- velisAspirant
Hm, there seems to be a manual I couldn't find via web site, but found in a suggested thread.
It also contains info on poe command. Hopefully it will work.
- velisAspirant
The manual doesn't help:
I connect via telnet. However, the list of supported commands is practically blank: Ezconfig, enable, help, logout, password, ping, quit, show and telnet.
If I try to enter "poe", I would expect to get a help on using the command. What I get, however, is a syntax error, pointing to the letter "o".
I would appreciate a guide on this.
Edit: OK, I found that I need to enable the appropriate mode before this will be accepted. This means a lot more reading of that manual. I don't see however, how I can progress from this *designed for interactive management* into a script that would do what I want. Obviously this manual is not the way.
- velisAspirant
Anybody?
I realise I'm a total n00b here, but I have a boss that tasked me with this and it is ultimately a very short script to write.
I'd really appreciate some pointers.
Thanks, Jure
- DaneANETGEAR Employee Retired
Hi velis,
I am not familiar about writing a CRON job. However, from your initial post you mentioned about port power usage status and activate/deactivate power to a port, I think these can be monitored and be configured respectively via the web-GUI of the M4100 switch. Kindly read pages 76-83 of the M4100 Series Managed Switch user manual here.
About the CLI access, you could only perform PoE commands as per indicated on the M4100 Series Managed Switch CLI reference manual here.
Regards,
DaneA
NETGEAR Community Team
- velisAspirant
I'm already managing both of the suggestions.
However, I need a bit more power:
I need to periodically run a script that would check a few things and if needed, reset the port affected. TBH, I just need to ping to see if the device is still alive on the other side and then reset it if it's not. That's the gist of it.
I don't know if a CRON job is even a possibility: I have seen that the switch supports SSH connections, but I'm not sure that would give me a "standard" unix prompt. Will check during one of the next steps. Anyway, the manual I linked to mentions a different way of executing scripts and I'm not sure those can even be scheduled. So far I have only seen manual execution instructions.
I have also seen some timer & scheduling in the HTML interface, but that can only be set up for running once a day. I need a check as often as 5 minutes.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!