GS1920-24HPv2 - Turn on & off PoE on ports by SNMP
I have a APC BackUPS Pro UPS which powers a server, a PoE switch (GS1920-24HPv2), and a RaspPi running NUT (Network UPS Tools) to monitor the UPS.
When power goes off the NUT gracefully shuts the server down.
All is good.
However I'd like to get some more life from the UPS and I was thinking that when the power fails I could get the NUT to somehow tell the PoE switch to continue being a switch but turn off the PoE to the CCTV Cameras.
I tried to turn off the PoE on port17 using the below
snmpset -v2c -c public 192.168.1.1 1.3.6.1.2.1.105.1.1.1.3.17 i 2
But I get the following error
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: iso.3.6.1.2.1.105.1.1.1.3.17
Questions
- Can I not do this with SNMP?
- Is that the wrong OID?
- Is there another way I could do this?
Many thanks in advance
Accepted Solution
-
Hi @IanCH,
I can turn on/off the PoE by the same O.I.D.
Please help to check if you enable the SNMP function on the Service Access Control page (Path: Menu > Security > Access Control > Service Access Control)
Zyxel Melen0
All Replies
-
Hi @IanCH,
I can turn on/off the PoE by the same O.I.D.
Please help to check if you enable the SNMP function on the Service Access Control page (Path: Menu > Security > Access Control > Service Access Control)
Zyxel Melen0 -
Hi @Zyxel_Melen
Thank you so much for the screen shots.
Thanks to those I saw my mistake. I had the wrong OID
I was doing the below for port 17
snmpset -v2c -c public 192.168.1.1 1.3.6.1.2.1.105.1.1.1.3.17 i 2
and should of been doing the below
snmpset -v2c -c public 192.168.1.1 1.3.6.1.2.1.105.1.1.1.3.1.17 i 2
The OID being 1.3.6.1.2.1.105.1.1.1.3.1.portNo
Regards
1
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight