Zyxel XS1930-12HP "Consuming Power" over SNMP
Options
Best Answers
All Replies
-
Hi @Chris77,
XS1930 switch supports standard mibs only, so you could use all the OIDs regarding POWER-ETHERNET-MIB.
Since the mib file does not support to query consuming power of each port, you could use OID .1.3.6.1.2.1.105.1.3.1.1.4 to check consuming power in total or use command "show pwr".Adam0 -
Zyxel_Adam,
unfortunately the OID .1.3.6.1.2.1.105.1.3.1.1.4 does not work for me. The answer is: " No Such Instance". My firmware is: "V4.70(ABQF.1) | 11/25/2021".
0 -
Hi @Chris77,
I try the same firmware and use snmpwalk and iReasoning Mib Browser to query OID .1.3.6.1.2.1.105.1.3.1.1.4 then it works well.
May I know what tool you are using?Adam0 -
Hi @Zyxel_Adam,
then I must be doing something wrong:
OK, I found it. OID is ".1.3.6.1.2.1.105.1.3.1.1.4.1".
Unfortunately, I can't do that much with it. The value I get is 3 and the data looks like this:
0 -
Hi @Chris77,
I am sorry I miss one number on OID, the correct one is .1.3.6.1.2.1.105.1.3.1.1.4.1
Please help to check it again.
Adam0 -
Hi @Zyxel_Adam,
this OID .1.3.6.1.2.1.105.1.3.1.1.4.1 works. The value I get is 3:
But what is this value 3 now? Otherwise the following values are displayed by the switch:
Is this value 3 from the OID a rounded "Consuming Power (W)"? So 3.1 is 3 here?
0 -
Hi @Chris77,
It's because the tool does not support to display decimals value, so it round the number.
Adam0 -
Hi @Zyxel_Adam,I am now trying to read out the power consumption via ssh. Unfortunately, the next problems have occurred. If I guess it right, my switch supports only the "interactive" ssh mode. Is that correct? When I connect to Putty and type the "show pwr" command, I get the POE information I need. As soon as I do that as a "non-interactivate" ssh session, then something like this happens:
<div>$ ssh admin@192.168.0.10 show pwr</div><div>admin@192.168.0.10's password:</div><div>Received disconnect from 192.168.0.10 port 22:2: invalid command pwr.</div><div>Disconnected from 192.168.0.10 port 22<span style="background-color: rgb(255, 255, 255); font-family: "lucida grande", "Lucida Sans Unicode", tahoma, sans-serif; font-size: 18px;">"</span></div>
<div>$ ssh admin@192.168.0.10 "show pwr"</div><div>admin@192.168.0.10's password:</div><div>Received disconnect from 192.168.0.10 port 22:2: invalid command pwr.</div><div>Disconnected from 192.168.0.10 port 22</div><div></div>
I need to get the POE information from a program and not from a console. How can I do this?Many greetingsChris0 -
Hi @Chris77,
Zyxel switch is not support using this way to query switch information.
There are alternative ways that other users shared to query information from switch via "echo" or "Linux expect".
Please refer to the following link:
https://community.zyxel.com/en/discussion/3401/gs1920-24hpv2-non-interactive-ssh-invalid-command
Adam0
Categories
- All Categories
- 390 Beta Program
- 2.1K Nebula
- 116 Nebula Ideas
- 78 Nebula Status and Incidents
- 5.1K Security
- 51 USG FLEX H Series
- 247 Security Ideas
- 1.3K Switch
- 70 Switch Ideas
- 907 WirelessLAN
- 34 WLAN Ideas
- 5.9K Consumer Product
- 210 Service & License
- 332 News and Release
- 71 Security Advisories
- 21 Education Center
- 5 [Campaign] Zyxel Network Detective
- 1.9K FAQ
- 880 Nebula FAQ
- 415 Security FAQ
- 220 Switch FAQ
- 195 WirelessLAN FAQ
- 46 Consumer Product FAQ
- 137 Service & License FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 72 About Community
- 63 Security Highlight