NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

TDevSw's avatar
TDevSw
Aspirant
Nov 06, 2024

GS716T v3 API

Hi,

 

I would like to do an automatic port test without accessing the web interface.

 

I would like to verify that it actually works by connecting two ports together.

I did a test with the web interface in the "Monitoring -> Cable Test" section, but I would need to automate this function with external software.

 

Does Netgear provide APIs for this model that I can use from C/C#/LabView?

 

Thank you

13 Replies

  • schumaku's avatar
    schumaku
    Guru - Experienced User

    SNMP for example?

     

    agent Cable Tester Status
    1.3.6.1.4.1.4526.10.1.4.1
    Status of the Virtual Cable Tester active(1) - cable testing is in progress. Set to this value to start the test. success(2) - A successful test was performed. Cannot be set. failure(3) - A failure was encountered during the test. Cannot be set. uninitialized(4) - No test has been performed yet. Cannot be set.​

     

    agent Cable Tester If Index
    1.3.6.1.4.1.4526.10.1.4.2
    Determines on which port to perform the cable test. Limited to copper based ports.​

     

    agent Cable Tester Cable Status
    1.3.6.1.4.1.4526.10.1.4.3
    Indicates the results of the Cable Test. normal(1) - The cable is working correctly. open(2) - The cable is disconnected or there is a faulty connector. short(3) - There is an electrical short in the cable. unknown(4) - No test has been performed yet, or a test is currently in progress.​

    • TDevSw's avatar
      TDevSw
      Aspirant

      Hi,

       

       

      Thank you for the answare but I'm not very familiar with the SNMP protocol.

       

      I downloaded from ezfive web site the "SnmpGet.exe" and "SnmpSet.exe" software tool for windows.

       

      On my Netgear I added this user SNMP: 0.0.0.0 - 0.0.0.0 - public - ReadWrite - Enable (I use my neatgear switch on private network) (I tried also added private R/W community)

       

      I launched these command:
      C:\temp\SNMP\SnmpGet>SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.3 -c:public
      SnmpGet v1.01 - Copyright (C) 2009 SnmpSoft Company
      [ More useful network tools on http://www.snmpsoft.com ]

      OID=.1.3.6.1.4.1.4526.10.1.4.3
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -c:public
      SnmpGet v1.01 - Copyright (C) 2009 SnmpSoft Company
      [ More useful network tools on http://www.snmpsoft.com ]

      OID=.1.3.6.1.4.1.4526.10.1.4.2
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.1 -c:public
      SnmpGet v1.01 - Copyright (C) 2009 SnmpSoft Company
      [ More useful network tools on http://www.snmpsoft.com ]

      OID=.1.3.6.1.4.1.4526.10.1.4.1
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpSet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -val:1 -c:public
      SnmpSet v1.01 - Copyright (C) 2009 SnmpSoft Company
      [ More useful network tools on http://www.snmpsoft.com ]

      %Failed to set value to SNMP variable. Not Writable (notWritable(17))

       

      Where I Wrong? Can you help me for laucnh a first command for understand the protocol?

       

      Do you know a simple OID ofr verify the read and write commands?

      Thank you

    • TDevSw's avatar
      TDevSw
      Aspirant

      Hi,

       

      Thank you for the answare but I'm not very familiar with the SNMP protocol.

       

      I downloaded from ezfive web site the "SnmpGet.exe" and "SnmpSet.exe" software tool for windows.

       

      On my Netgear I added this user SNMP: 0.0.0.0 - 0.0.0.0 - public - ReadWrite - Enable (I use my neatgear switch on private network) (I tried also added private R/W community)

       

      I launched these command:
      SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.3 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.3
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.2
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.1 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.1
      Type=<Unknown>
      Value=

       

      C:\temp\SNMP\SnmpGet>SnmpSet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -val:1 -c:public
      %Failed to set value to SNMP variable. Not Writable (notWritable(17))

       

      Where I Wrong? Can you help me for laucnh a first command for understand the protocol?

       

      Do you know a simple OID ofr verify the read and write commands?

      Thank you

    • TDevSw's avatar
      TDevSw
      Aspirant

      Hi,

       

      Thank you for the answare but I'm not very familiar with the SNMP protocol.

       

      On my Netgear I added this user SNMP: 0.0.0.0 - 0.0.0.0 - public - ReadWrite - Enable (I use my neatgear switch on private network) (I tried also added private R/W community)

       

      I launched these command:
      SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.3 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.3
      Type=<Unknown>
      Value=

       

      SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.2
      Type=<Unknown>
      Value=

       

      SnmpGet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.1 -c:public
      OID=.1.3.6.1.4.1.4526.10.1.4.1
      Type=<Unknown>
      Value=

       

      SnmpSet -r:192.168.0.239 -v:2c -o:1.3.6.1.4.1.4526.10.1.4.2 -val:1 -c:public
      %Failed to set value to SNMP variable. Not Writable (notWritable(17))

       

      Where I Wrong? Can you help me for laucnh a first command for understand the protocol?

       

      Do you know a simple OID ofr verify the read and write commands?

      Thank you

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More