Zyxel XS1930-12HP "Consuming Power" over SNMP
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".Adam
0 -
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?Adam
0 -
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.
Adam
0 -
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.
Adam
0 -
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
Adam
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 237 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight