Zyxel XS1930-12HP "Consuming Power" over SNMP

Chris77
Chris77 Posts: 11  Freshman Member
First Comment Friend Collector Fifth Anniversary
edited August 2022 in Switch
Hello experts,

I want to query the switch about the "Consuming Power" via SNMP (OID). What would be the OID string for port 4?

Best regards
Chris

Best Answers

  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    Answer ✓
    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

  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    Answer ✓
    Hi @Chris77,

    It's because the tool does not support to display decimals value, so it round the number.

    Adam

All Replies

  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    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

  • Chris77
    Chris77 Posts: 11  Freshman Member
    First Comment Friend Collector Fifth Anniversary
    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".
  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    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

  • Chris77
    Chris77 Posts: 11  Freshman Member
    First Comment Friend Collector Fifth Anniversary
    edited June 2022
    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:


  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    Answer ✓
    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

  • Chris77
    Chris77 Posts: 11  Freshman Member
    First Comment Friend Collector Fifth Anniversary
    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?
  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    Answer ✓
    Hi @Chris77,

    It's because the tool does not support to display decimals value, so it round the number.

    Adam

  • Chris77
    Chris77 Posts: 11  Freshman Member
    First Comment Friend Collector Fifth Anniversary
    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 greetings
    Chris
  • Zyxel_Adam
    Zyxel_Adam Posts: 430  Zyxel Employee
    Zyxel Certified Network Administrator - Nebula 25 Answers First Comment Friend Collector
    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