Jump to content
Local

villagenet

Muggles
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Обычный

About villagenet

  • Rank
    Пролетал Мимо

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. villagenet

    ZTE OLT - опрос по SNMP - уровни

    maybe you will share with us?
  2. villagenet

    ZTE OLT - опрос по SNMP - уровни

    snmpwalk -v 2c -cxxxxxxx -On 192.168.10.10 1.3.6.1.4.1.3902.1012.3.13.3.1.2 .1.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.1 = Hex-STRING: 43 4E 31 38 09 08 16 37 .1.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.2 = Hex-STRING: 5A 54 45 47 C1 71 FB 81 i want to know olt index and SN How to get from Hex-STRING SN ? i use perl and mysql and write this mysql> select * from zte_olt; +----+----------+------------+-------+------------------+--------------+-------+ | id | location | profil_onu | ports | uncfg | sn | state | +----+----------+------------+-------+------------------+--------------+-------+ | 1 | NULL | NULL | NULL | gpon-onu_1/2/2:1 | CN1809081637 | NULL | | 2 | NULL | NULL | NULL | gpon-onu_1/2/2:2 | ZTEGC171FB81 | NULL | +----+----------+------------+-------+------------------+--------------+-------+ 2 rows in set (0.00 sec) but i use telnet
  3. villagenet

    ZTE OLT - опрос по SNMP - уровни

    <?php function serial2txt($hex) { $str = ''; for($i=0;$i<4;$i++) $str .= substr($hex,$i,2); $str .= "-"; for($i=4;$i<strlen($hex);$i++) $str .= dechex(ord(substr($hex,$i,1))); return $str; } $hex = "5A 54 45 47 C1 71 FB 81"; $return_value = serial2txt($hex); echo "Returned value from the function :$return_value\n"; ?> Returned value from the function :5AA 554-34203435203437204331203731204642203831 .1.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.1 = Hex-STRING: 43 4E 31 38 09 08 16 37 .1.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.2 = Hex-STRING: 5A 54 45 47 C1 71 FB 81 where is error ? I want only OltIndex Model SN PW LOID ------------------------------------------------------------------------- gpon-olt_1/2/2 N/A CN1809081637 123456 123456789 gpon-olt_1/2/2 F601V6.0 ZTEGC171FB81 GC0F0FF2C ztepon OltIndex and SN from snmp because i need connect if canot use snmp, with telnet and write to mysql table with script and cron tab on every 5 min
  4. villagenet

    ZTE OLT - опрос по SNMP - уровни

    is notn work givme error syntax error near unexpected token `(' line 1: syntax error near unexpected token `(' /usr/lib/cgi-bin/pppoe_server/sn_onu.php: line 1: `public static function serial2txt($hex) {'
  5. villagenet

    ZTE OLT - опрос по SNMP - уровни

    hi with 1.3.6.1.4.1.3902.1012.3.13.3.1.2 iso.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.1 = Hex-STRING: 43 4E 31 38 09 08 16 37 iso.3.6.1.4.1.3902.1012.3.13.3.1.2.268567040.2 = Hex-STRING: 5A 54 45 47 C1 71 FB 81 but what is this ? i want this show gpon onu uncfg OnuIndex Sn State --------------------------------------------------------------------- gpon-onu_1/2/2:1 CN1809081637 unknown gpon-onu_1/2/2:2 ZTEGC171FB81 unknown i want to get onuindex and sn also gpon onu state with snmp not with telnet?
  6. villagenet

    ZTE OLT - опрос по SNMP - уровни

    Hi I want to know how I get whitch index from onu is uncfg under snmp without i have login in telnet ?
  7. villagenet

    ZTE OLT - опрос по SNMP - уровни

    Здрасти, искам да питам нещо , как мога с snmp да взема кой индекси на онута са нерегистрирани?
×