{"id":259711,"date":"2015-06-19T17:00:02","date_gmt":"2015-06-19T13:00:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259711"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259711","title":{"rendered":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u0438\u0432\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 SNMP \u0432 Cisco"},"content":{"rendered":"<p>             \u0418\u043d\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432 \u0442\u0440\u0430\u043d\u0441\u0438\u0432\u0435\u0440\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435: \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0432\u044f\u0437\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0440\u043e\u0441\u0441\u0438\u0440\u043e\u0432\u043e\u043a, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0418\u043d\u0436\u0435\u043d\u0435\u0440 \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0440\u0435\u0448\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u0437\u0430 \u043e\u0434\u043d\u0443 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code class=\"bash\">#show interfaces Te1\/49 transceiver !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                  Optical   Optical            Temperature  Voltage  Tx Power  Rx Power Port       (Celsius)    (Volts)  (dBm)     (dBm) ---------  -----------  -------  --------  -------- Te1\/49       53.3       3.25      -4.3      -2.8 <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u0443-\u0442\u043e (\u0443 \u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430) \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0439 \u043c\u0438\u043d\u0443\u0442\u044b \u0446\u0435\u043b\u0443\u044e \u0432\u0435\u0447\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043d\u0430\u043b \u0443\u043f\u0430\u043b \u0432 \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u0438 \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043b\u0438\u043d\u043a\u0435 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u043e\u0442\u0435\u0440\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043b\u0438\u043d\u043a\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c. \u0418\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0430\u0442\u044c \u0432\u0447\u0435\u0440\u0430, \u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b \u043e\u043f\u0442\u0438\u043a\u0443 \u043d\u0430 CWDM-\u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440\u0435, \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0442\u044b\u043a\u0430 \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u043b\u043d\u0443\u00bb. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0434\u0435\u0444\u0438\u0446\u0438\u0442\u0430 \u0432\u0435\u0440\u0445\u043e\u0432\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b, \u0438\u043c\u0435\u044f \u043b\u0438\u0448\u044c read-only \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e SNMP. <a name=\"habracut\"><\/a>\u0416\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 10 \u043c\u0438\u043d\u0443\u0442 (\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0432\u0442\u0443\u044e\u0449\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439). \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 <s>\u0431\u0435\u0437\u043e\u043f\u0430\u043d\u044b\u043c<\/s> \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0434\u043b\u044f \u0440\u044f\u0434\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e \u0442\u0435\u043c \u0438\u043b\u0438 \u0438\u043d\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 CCNA \u0438\u043b\u0438 CCNP (\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u044b \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u0438\u0441\u0442\u044b, \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b). \u0422\u0430\u043a \u0436\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<\/p>\n<h4>\u0414\u0430\u043d\u043e<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u0445\u043e\u0441\u0442 \u0441 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 read-only \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e SNMP \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c Cisco (7604, 7609, 4948-10GE)<\/li>\n<li>IP-\u0430\u0434\u0440\u0435\u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 Cisco (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10.0.7.35)<\/li>\n<li>\u043d\u043e\u043c\u0435\u0440 \u043f\u043e\u0440\u0442\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Te1\/49)<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u041d\u0430\u0439\u0442\u0438<\/h4>\n<p>  <\/p>\n<ul>\n<li> \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u0438\u0432\u0435\u0440\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u0442<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u0439\u0434\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 OID. \u041e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 ID <a href=\"http:\/\/tools.cisco.com\/Support\/SNMP\/do\/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.4.1.9.9.91.1.1.1.1.4\">\u00abentSensorValue\u00bb<\/a> \u0438 \u00ab\u0438\u043d\u0434\u0435\u043a\u0441\u0430\u00bb \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0435\u043d\u0441\u043e\u0440\u0430. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0445\u043e\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e snmp \u043a \u0441\u0435\u0442\u0435\u0432\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u0441 management IP 10.0.7.35:<\/p>\n<pre><code class=\"bash\">$ snmpwalk -v 2c -c community 10.0.7.35  1.3.6.1.2.1.47.1.1.1.1.7 | grep Te1\/49 SNMPv2-SMI::mib-2.47.1.1.1.1.7.1107 = STRING: &quot;Te1\/49 Module Temperature Sensor&quot; SNMPv2-SMI::mib-2.47.1.1.1.1.7.1157 = STRING: &quot;Te1\/49 Supply Voltage Sensor&quot; SNMPv2-SMI::mib-2.47.1.1.1.1.7.1207 = STRING: &quot;Te1\/49 Bias Current Sensor&quot; SNMPv2-SMI::mib-2.47.1.1.1.1.7.1257 = STRING: &quot;Te1\/49 Transmit Power Sensor&quot; SNMPv2-SMI::mib-2.47.1.1.1.1.7.1307 = STRING: &quot;Te1\/49 Receive Power Sensor&quot; <\/code><\/pre>\n<p>  \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0432 OID \u0434\u043b\u044f \u00abTe1\/49 Transmit Power Sensor\u00bb \u0438 \u00abTe1\/49 Receive Power Sensor\u00bb. \u042d\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e 1257 \u0438 1307. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u0438 \u0447\u0438\u0441\u043b\u0430, \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 (value):<\/p>\n<pre><code class=\"bash\">$ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1257 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.1257 = INTEGER: -28 $ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.4.1307 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.1307 = INTEGER: -35 <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c <a href=\"http:\/\/tools.cisco.com\/Support\/SNMP\/do\/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.4.1.9.9.91.1.1.1.1.3\">\u00abentSensorPrecision\u00bb<\/a> \u0438 \u00ab\u0438\u043d\u0434\u0435\u043a\u0441\u00bb \u0441\u0435\u043d\u0441\u043e\u0440\u0430, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u043d\u0430\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439):<\/p>\n<pre><code class=\"bash\">$ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.3.1257 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.3.1257 = INTEGER: 1 $ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.3.1307 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.3.1307 = INTEGER: 1 <\/code><\/pre>\n<p>  \u0426\u0438\u0444\u0440\u0430 \u00ab1\u00bb \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u0434 \u043e\u0434\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u043e\u0439 \u0441\u043f\u0440\u0430\u0432\u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u0435\u043d\u0441\u043e\u0440\u0430.<br \/>  Te1\/49 Transmit Power = -2,8<br \/>  Te1\/49 Receive Power = -3,5<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f <a href=\"http:\/\/tools.cisco.com\/Support\/SNMP\/do\/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.4.1.9.9.91.1.1.1.1.1\">\u00abentSensorType\u00bb<\/a> \u0432 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0441 \u00ab\u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c\u00bb \u0441\u0435\u043d\u0441\u043e\u0440\u0430:<\/p>\n<pre><code class=\"bash\">$ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.1.1257 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.1.1257 = INTEGER: 14 $ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.1.1307 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.1.1307 = INTEGER: 14 <\/code><\/pre>\n<p>  \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 14 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0443\u0435\u0442 \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c \u00abdBm\u00bb. \u0421\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0434\u0430\u0435\u0442\u0441\u044f \u0432 <a href=\"http:\/\/tools.cisco.com\/Support\/SNMP\/do\/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.4.1.9.9.91.1.1.1.1.1\">\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 <\/a>\u00abentSensorType\u00bb.<br \/>  \u041a \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0430\u044f \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430. \u041a\u0430\u043a\u0430\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u2014 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 <a href=\"http:\/\/tools.cisco.com\/Support\/SNMP\/do\/BrowseOID.do?local=en&amp;translate=Translate&amp;objectInput=1.3.6.1.4.1.9.9.91.1.1.1.1.2\">\u00abentSensorScale\u00bb<\/a>:<\/p>\n<pre><code class=\"bash\">$ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.2.1257 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.2.1257 = INTEGER: 9 $ snmpget -v 2c -c community 10.0.7.35 1.3.6.1.4.1.9.9.91.1.1.1.1.2.1307 SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.2.1307 = INTEGER: 9 <\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u00abUnits\u00bb (\u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0447\u0438\u0441\u043b\u0443 9) \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438.<br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0442\u0440\u0430\u043d\u0441\u0438\u0432\u0435\u0440\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u043f\u043e\u0440\u0442\u0443 Te1\/49, \u043d\u0430 \u0441\u0432\u0438\u0447\u0435 \u0441 IP 10.0.7.35<\/p>\n<p>  Te1\/49 Transmit Power = -2,8 dBm<br \/>  Te1\/49 Receive Power = -3,5 dBm<\/p>\n<p>  \u0421\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043e\u0442\u0432\u0435\u0442 \u043f\u043e <a href=\"http:\/\/www.opennet.ru\/docs\/RUS\/bash_scripting_guide\/\">\u0443\u0447\u0435\u0431\u043d\u0438\u043a\u0443<\/a>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">light.bash<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/bash E_OPTERROR=65 verbose=0  get_type () {         if [ -z &quot;$1&quot; ]           # Length of argument is 0?         then                 exit $E_OPTERROR         elif [ &quot;$1&quot; -eq &quot;1&quot; ]         then truetype=other         elif [ &quot;$1&quot; -eq &quot;2&quot; ]         then truetype=unknown         elif [ &quot;$1&quot; -eq &quot;3&quot; ]         then truetype=voltsAC         elif [ &quot;$1&quot; -eq &quot;4&quot; ]         then truetype=voltsDC         elif [ &quot;$1&quot; -eq &quot;5&quot; ]         then truetype=amperes         elif [ &quot;$1&quot; -eq &quot;6&quot; ]         then truetype=watts         elif [ &quot;$1&quot; -eq &quot;7&quot; ]         then truetype=hertz         elif [ &quot;$1&quot; -eq &quot;8&quot; ]         then truetype=celsius         elif [ &quot;$1&quot; -eq &quot;9&quot; ]         then truetype=percentRH         elif [ &quot;$1&quot; -eq &quot;10&quot; ]         then truetype=&quot;rpm&quot;         elif [ &quot;$1&quot; -eq &quot;11&quot; ]         then truetype=cmm         elif [ &quot;$1&quot; -eq &quot;12&quot; ]         then truetype=truthvalue         elif [ &quot;$1&quot; -eq &quot;13&quot; ]         then truetype=specialEnum         elif [ &quot;$1&quot; -eq &quot;14&quot; ]         then truetype=dBm         else echo type=$1,error; exit $E_OPTERROR         fi         return 0 }  get_scale () {         if [ -z &quot;$1&quot; ]     # Length of argument is 0?         then                 exit $E_OPTERROR         elif [ &quot;$1&quot; -eq &quot;1&quot; ]         then truescale=yocto         elif [ &quot;$1&quot; -eq &quot;2&quot; ]         then truescale=zepto         elif [ &quot;$1&quot; -eq &quot;3&quot; ]         then truescale=atto         elif [ &quot;$1&quot; -eq &quot;4&quot; ]         then truescale=femto         elif [ &quot;$1&quot; -eq &quot;5&quot; ]         then truescale=pico         elif [ &quot;$1&quot; -eq &quot;6&quot; ]         then truescale=nano         elif [ &quot;$1&quot; -eq &quot;7&quot; ]         then truescale=micro         elif [ &quot;$1&quot; -eq &quot;8&quot; ]         then truescale=milli         elif [ &quot;$1&quot; -eq &quot;9&quot; ]         then truescale=&quot;&quot;         elif [ &quot;$1&quot; -eq &quot;10&quot; ]         then truescale=kilo         elif [ &quot;$1&quot; -eq &quot;11&quot; ]         then truescale=mega         elif [ &quot;$1&quot; -eq &quot;12&quot; ]         then truescale=giga         elif [ &quot;$1&quot; -eq &quot;13&quot; ]         then truescale=tera         elif [ &quot;$1&quot; -eq &quot;14&quot; ]         then truescale=exa         elif [ &quot;$1&quot; -eq &quot;15&quot; ]         then truescale=peta         elif [ &quot;$1&quot; -eq &quot;16&quot; ]         then truescale=zetta         elif [ &quot;$1&quot; -eq &quot;17&quot; ]         then truescale=yotta         else echo scale=$1,error; exit $E_OPTERROR         fi         return 0 } #reading the options while getopts &quot;:c:h:i:v&quot; Option do #echo $OPTIND   case $Option in     c     ) community=$OPTARG;;     h     ) host=$OPTARG;;     i     ) interface=$OPTARG;;     v     ) echo &quot;Verbose mode is set&quot;;verbose=1;;     *     ) echo &quot;Usage: `basename $0` -c community -h host -i interface&quot;; exit $E_OPTERROR;;   # default options   esac done shift $(($OPTIND - 1)) #moving on to the next provided option if [ -z &quot;$community&quot; ] || [ -z $host ] || [ -z $interface ]  # if some of options is not submitted then           echo &quot;Usage: `basename $0` -c community -h host -i interface&quot;             exit $E_OPTERROR         fi if [ $verbose -eq 1 ] then         echo &quot;community is \\&quot;$community\\&quot;&quot;         echo &quot;host is \\&quot;$host\\&quot;&quot;         echo &quot;interface is \\&quot;$interface\\&quot;&quot; fi #looking for the index of sensor if [ $verbose -eq 1 ] then                 echo &quot;executing snmpwalk&quot; fi # step1: getiing information from device walksnmp=`snmpwalk -v 2c -c $community $host  1.3.6.1.2.1.47.1.1.1.1.7 | grep $interface` # step2: parse received string if [ $verbose -eq 1 ] then         echo &quot;parsing snmpwalk result&quot; fi rx_string=`echo $walksnmp | grep -o -e &quot;[0-9]* = STRING: \\&quot;[ 0-9\\\/a-zA-Z]*Receive[ 0-9\\\/a-zA-Z]*\\&quot;&quot;` rx_sensor=`echo $walksnmp | grep -o -e &quot;[0-9]* = STRING: \\&quot;[ 0-9\\\/a-zA-Z]*Receive[ 0-9\\\/a-zA-Z]*\\&quot;&quot; | cut -f1 -d &quot; &quot;` tx_string=`echo $walksnmp | grep -o -e &quot;[0-9]* = STRING: \\&quot;[ 0-9\\\/a-zA-Z]*Transmit[ 0-9\\\/a-zA-Z]*\\&quot;&quot;` tx_sensor=`echo $walksnmp | grep -o -e &quot;[0-9]* = STRING: \\&quot;[ 0-9\\\/a-zA-Z]*Transmit[ 0-9\\\/a-zA-Z]*\\&quot;&quot; | cut -f1 -d &quot; &quot;` if [ $verbose -eq 1 ] then         echo &quot;index of rx_sensor parsed to $rx_sensor&quot;         echo &quot;index of tx_sensor parsed to $tx_sensor&quot;         echo &quot;$rx_string&quot;         echo &quot;$tx_string&quot; fi #getting the sensor value if [ $verbose -eq 1 ] then         echo &quot;getting the sensor value&quot; fi rx_value=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.4.$rx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`   rx_precision=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.3.$rx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`     rx_type=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.1.$rx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`     get_type $rx_type     rx_type=$truetype       rx_scale=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.2.$rx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`       get_scale $rx_scale       rx_scale=$truescale tx_value=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.4.$tx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`   tx_precision=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.3.$tx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`     tx_type=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.1.$tx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`     get_type $tx_type     tx_type=$truetype       tx_scale=`snmpget -v 2c -c $community $host 1.3.6.1.4.1.9.9.91.1.1.1.1.2.$rx_sensor | grep -o -e &quot;INTEGER: [-+0-9]*&quot; | cut -f2 -d&quot; &quot;`       get_scale $tx_scale       tx_scale=$truescale let lengthrx=${#rx_value}-$rx_precision let lengthtx=${#tx_value}-$tx_precision echo RX=${rx_value:0:$lengthrx}.${rx_value:$lengthrx} $rx_scale$rx_type echo TX=${tx_value:0:$lengthtx}.${tx_value:$lengthtx} $tx_scale$tx_type exit 0 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260721\/\"> http:\/\/habrahabr.ru\/post\/260721\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0418\u043d\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432 \u0442\u0440\u0430\u043d\u0441\u0438\u0432\u0435\u0440\u0435. \u041f\u0440\u0438\u0447\u0438\u043d\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0435: \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0432\u044f\u0437\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0440\u043e\u0441\u0441\u0438\u0440\u043e\u0432\u043e\u043a, \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u0418\u043d\u0436\u0435\u043d\u0435\u0440 \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0440\u0435\u0448\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u0437\u0430 \u043e\u0434\u043d\u0443 \u043c\u0438\u043d\u0443\u0442\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<pre><code class=\"bash\">#show interfaces Te1\/49 transceiver !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!                                  Optical   Optical            Temperature  Voltage  Tx Power  Rx Power Port       (Celsius)    (Volts)  (dBm)     (dBm) ---------  -----------  -------  --------  -------- Te1\/49       53.3       3.25      -4.3      -2.8 <\/code><\/pre>\n<p>  \u041a\u043e\u043c\u0443-\u0442\u043e (\u0443 \u043a\u043e\u0433\u043e \u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430) \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0436\u0434\u0430\u0442\u044c \u044d\u0442\u043e\u0439 \u043c\u0438\u043d\u0443\u0442\u044b \u0446\u0435\u043b\u0443\u044e \u0432\u0435\u0447\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u0433\u0434\u0430 \u043a\u0430\u043d\u0430\u043b \u0443\u043f\u0430\u043b \u0432 \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u0438 \u043d\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043b\u0438\u043d\u043a\u0435 \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043f\u043e\u0442\u0435\u0440\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043b\u0438\u043d\u043a\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u043e\u043c. \u0418\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0434\u0430\u0442\u044c \u0432\u0447\u0435\u0440\u0430, \u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043b \u043e\u043f\u0442\u0438\u043a\u0443 \u043d\u0430 CWDM-\u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440\u0435, \u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0442\u044b\u043a\u0430 \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u00ab\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u043e\u043b\u043d\u0443\u00bb. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0434\u0435\u0444\u0438\u0446\u0438\u0442\u0430 \u0432\u0435\u0440\u0445\u043e\u0432\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b, \u0438\u043c\u0435\u044f \u043b\u0438\u0448\u044c read-only \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e SNMP. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-259711","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259711"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259711\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}