SNMP settings: Difference between revisions

From Scalelogic Wiki
Jump to navigation Jump to search
migrate>Ad-B
m Ad-B moved page ScaleLogicWiki:Snmp Settings to Snmp Settings over redirect: revert
m 1 revision
 
(27 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<p>
This function enables you to configure access over the '''SNMP''' protocol in versions 2 or 3.
This function enables you to configure access over the SNMP protocol in versions 2 or 3.
 
</p>
With SNMP enabled, you receive a wealth of information (CPU usage, system load, memory info, ethernet traffic, running processes).<br/>System location and system contact are only for your information.&nbsp;&nbsp;For example, when you connect from an SNMP client, you will see your location and name.
<p>
 
With SNMP enabled, you receive a wealth of information (CPU usage, system load, memory info, ethernet traffic, running processes).
SNMP, version 3 has an encrypted transmission feature as well as authentication by username and password.<br/>SNMP, version 2 does not have encrypted transmission, and authentication is done only via the community string.
<br/>
 
System location and system contact are only for your information.  For example, when you connect from an SNMP client, you will see your location and name.
The community string you set can contain up to 20 characters, while the password needs to have at least 8 characters.
</p>
 
<p>
Links to SNMP clients:
SNMP, version 3 has an encrypted transmission feature as well as authentication by username and password.
 
<br/>
*<span style="font-size:larger">[http://www.muonics.com http://www.muonics.com]</span>
SNMP, version 2 does not have encrypted transmission, and authentication is done only via the community string.
*<span style="font-size:larger">[http://www.mg-soft.com http://www.mg-soft.com]</span>
</p>
*<span style="font-size:larger">[http://www.manageengine.com http://www.manageengine.com]</span>
<p>
 
The community string you set can contain up to 20 characters, while the password needs to have at least 8 characters.
 
</p>
 
<p>
{{Note|
Links to SNMP clients:
Our storage system supports the SNMP protocol in MIB-II standard.&nbsp; List of MIBs:
</p>
 
<dl>
*- mib-2.host
<dd>
 
  <a href="http://www.muonics.com">
*- mib-2.ip
  http://www.muonics.com
 
  </a>
*- mib-2.tcp
  <br/>
 
</dd>
*- mib-2.udp
<dd>
 
  <a href="http://www.mg-soft.com">
*- mib-2.interfaces
  http://www.mg-soft.com
 
  </a>
*- mib-2.at
  <br/>
 
</dd>
*- system
<dd>
}}
  <a href="http://www.manageengine.com">
 
  http://www.manageengine.com
ZX offers additional SNMP values to monitor Pool and ZFS attributes.<br/>It is necessary to query specific OIDs in order to receive those attributes.
  </a>
 
  <br/>
For basic ZFS parameters, NYMNETWORKS-MIB mib is included:
</dd>
 
</dl>
*to version v.1.0 up29r4&nbsp; [[:Media:NYMNETWORKS-MIB.txt|NYMNETWORKS-MIB.txt]]
<div class="noteheader">
*from version v.1.0 up30 [[:Media:NYMNETWORKS-MIB-up30.txt|NYMNETWORKS-MIB.txt]]
<br/>
 
Note
<br/>'''SNMP v2:''' snmpwalk -v 2c -m NYMNETWORKS-MIB -c community 192.168.251.79 .1.3.6.1.4.1.25359.1<br/>'''SNMP v3:''' snmpwalk -v3 -l authPriv -u nagios -a MD5 -x DES -A 12345678 -X 12345678 192.168.150.70
</div>
 
<div class="note">
<br/>NYMNETWORKS-MIB::zfsFilesystemName.1 = STRING: "Pool-0"<br/>NYMNETWORKS-MIB::zfsFilesystemName.2 = STRING: "Pool-1"<br/>NYMNETWORKS-MIB::zfsFilesystemAvailableKB.1 = Gauge32: 15861464<br/>NYMNETWORKS-MIB::zfsFilesystemAvailableKB.2 = Gauge32: 15861672<br/>NYMNETWORKS-MIB::zfsFilesystemUsedKB.1 = Gauge32: 4327720<br/>NYMNETWORKS-MIB::zfsFilesystemUsedKB.2 = Gauge32: 4327512<br/>NYMNETWORKS-MIB::zfsPoolHealth.1 = INTEGER: online(1)<br/>NYMNETWORKS-MIB::zfsPoolHealth.2 = INTEGER: online(1)<br/>NYMNETWORKS-MIB::zfsFilesystemSizeKB.1 = Wrong Type (should be INTEGER): Gauge32: 20189184<br/>NYMNETWORKS-MIB::zfsFilesystemSizeKB.2 = Wrong Type (should be INTEGER): Gauge32: 20189184<br/>NYMNETWORKS-MIB::zfsFilesystemAvailableMB.1 = Gauge32: 15489<br/>NYMNETWORKS-MIB::zfsFilesystemAvailableMB.2 = Gauge32: 15489<br/>NYMNETWORKS-MIB::zfsFilesystemUsedMB.1 = Gauge32: 4226<br/>NYMNETWORKS-MIB::zfsFilesystemUsedMB.2 = Gauge32: 4226<br/>NYMNETWORKS-MIB::zfsFilesystemSizeMB.1 = Gauge32: 19716<br/>NYMNETWORKS-MIB::zfsFilesystemSizeMB.2 = Gauge32: 19716<br/>NYMNETWORKS-MIB::zfsARCSizeKB.0 = Gauge32: 61086<br/>NYMNETWORKS-MIB::zfsARCMetadataSizeKB.0 = Gauge32: 9278<br/>NYMNETWORKS-MIB::zfsARCDataSizeKB.0 = Gauge32: 51808<br/>NYMNETWORKS-MIB::zfsARCHits.0 = Counter32: 229308<br/>NYMNETWORKS-MIB::zfsARCMisses.0 = Counter32: 41260<br/>NYMNETWORKS-MIB::zfsARCTargetSize.0 = Gauge32: 64287<br/>NYMNETWORKS-MIB::zfsARCMru.0 = Gauge32: 59529<br/>NYMNETWORKS-MIB::zfsL2ARCHits.0 = Counter32: 0<br/>NYMNETWORKS-MIB::zfsL2ARCMisses.0 = Counter32: 0<br/>NYMNETWORKS-MIB::zfsL2ARCReads.0 = Counter32: 0<br/>NYMNETWORKS-MIB::zfsL2ARCWrites.0 = Counter32: 0
Our storage system supports the SNMP protocol in MIB-II standard.  List of MIBs:
 
<br/>
Additional information, like compression ratio, deduplication ratio, available space (in bytes), age (in seconds) of latest snapshot on volume,<br/>can be obtained with standard NET-SNMP-EXTEND-MIB:
<ul>
 
  <li>
'''Examples:'''<br/><br/>NET-SNMP-EXTEND-MIB::nsExtendOutputFull."deduplication" = STRING:
  - mib-2.host
 
  </li>
"deduplication Pool-0 1.00"<br/><br/>NET-SNMP-EXTEND-MIB::nsExtendOutputFull."compression" = STRING:
  <li>
 
  - mib-2.ip
"compression Pool-0/vol00 1.01<br/>compression Pool-0/clone-vol00 1.00"
  </li>
 
  <li>
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."volumes_list" = STRING:<br/><br/>"available Pool-0/vol00 11981377536<br/>available Pool-0/clone-vol00 11981377536"
  - mib-2.tcp
 
  </li>
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."snapshots_age" = STRING:<br/><br/>"snapshot_age Pool-0/vol00 3<br/>snapshot_age Pool-0/vol01 371"
  <li>
 
  - mib-2.udp
'''Untranslated OIDs:'''<br/><br/>root@p-GA-880GM-USB3:/home/p# snmpwalk -v2c -c public 192.168.0.80&nbsp; 1.3.6.1.4.1.8072.1.3.2.3<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.1.11.99.111.109.112.114.101.115.115.105.111.110 = STRING: "compression Pool-0/vol00 1.01"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.1.12.115.110.97.112.115.104.111.116.95.97.103.101 = STRING: "snapshot_age Pool-0/vol00 3"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.1.12.118.111.108.117.109.101.115.95.108.105.115.116 = STRING: "available Pool-0/vol00 11981377536"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.1.13.100.101.100.117.112.108.105.99.97.116.105.111.110 = STRING: "deduplication Pool-0 1.00"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.2.11.99.111.109.112.114.101.115.115.105.111.110 = STRING: "compression Pool-0/vol00 1.01<br/>compression Pool-0/clone-vol00 1.00"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.2.12.115.110.97.112.115.104.111.116.95.97.103.101 = STRING: "snapshot_age Pool-0/vol00 3<br/>snapshot_age Pool-0/vol01 371"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.2.12.118.111.108.117.109.101.115.95.108.105.115.116 = STRING: "available Pool-0/vol00 11981377536<br/>available Pool-0/clone-vol00 11981377536"<br/>iso.3.6.1.4.1.8072.1.3.2.3.1.2.13.100.101.100.117.112.108.105.99.97.116.105.111.110 = STRING: "deduplication Pool-0 1.00"
  </li>
 
  <li>
[[Category:Help topics]]
  - mib-2.interfaces
  </li>
  <li>
  - mib-2.at
  </li>
  <li>
  - system
  </li>
</ul>
</div>

Latest revision as of 14:42, 19 December 2024

This function enables you to configure access over the SNMP protocol in versions 2 or 3.

With SNMP enabled, you receive a wealth of information (CPU usage, system load, memory info, ethernet traffic, running processes).
System location and system contact are only for your information.  For example, when you connect from an SNMP client, you will see your location and name.

SNMP, version 3 has an encrypted transmission feature as well as authentication by username and password.
SNMP, version 2 does not have encrypted transmission, and authentication is done only via the community string.

The community string you set can contain up to 20 characters, while the password needs to have at least 8 characters.

Links to SNMP clients:


Note:

Our storage system supports the SNMP protocol in MIB-II standard.  List of MIBs:

  • - mib-2.host
  • - mib-2.ip
  • - mib-2.tcp
  • - mib-2.udp
  • - mib-2.interfaces
  • - mib-2.at
  • - system

ZX offers additional SNMP values to monitor Pool and ZFS attributes.
It is necessary to query specific OIDs in order to receive those attributes.

For basic ZFS parameters, NYMNETWORKS-MIB mib is included:


SNMP v2: snmpwalk -v 2c -m NYMNETWORKS-MIB -c community 192.168.251.79 .1.3.6.1.4.1.25359.1
SNMP v3: snmpwalk -v3 -l authPriv -u nagios -a MD5 -x DES -A 12345678 -X 12345678 192.168.150.70


NYMNETWORKS-MIB::zfsFilesystemName.1 = STRING: "Pool-0"
NYMNETWORKS-MIB::zfsFilesystemName.2 = STRING: "Pool-1"
NYMNETWORKS-MIB::zfsFilesystemAvailableKB.1 = Gauge32: 15861464
NYMNETWORKS-MIB::zfsFilesystemAvailableKB.2 = Gauge32: 15861672
NYMNETWORKS-MIB::zfsFilesystemUsedKB.1 = Gauge32: 4327720
NYMNETWORKS-MIB::zfsFilesystemUsedKB.2 = Gauge32: 4327512
NYMNETWORKS-MIB::zfsPoolHealth.1 = INTEGER: online(1)
NYMNETWORKS-MIB::zfsPoolHealth.2 = INTEGER: online(1)
NYMNETWORKS-MIB::zfsFilesystemSizeKB.1 = Wrong Type (should be INTEGER): Gauge32: 20189184
NYMNETWORKS-MIB::zfsFilesystemSizeKB.2 = Wrong Type (should be INTEGER): Gauge32: 20189184
NYMNETWORKS-MIB::zfsFilesystemAvailableMB.1 = Gauge32: 15489
NYMNETWORKS-MIB::zfsFilesystemAvailableMB.2 = Gauge32: 15489
NYMNETWORKS-MIB::zfsFilesystemUsedMB.1 = Gauge32: 4226
NYMNETWORKS-MIB::zfsFilesystemUsedMB.2 = Gauge32: 4226
NYMNETWORKS-MIB::zfsFilesystemSizeMB.1 = Gauge32: 19716
NYMNETWORKS-MIB::zfsFilesystemSizeMB.2 = Gauge32: 19716
NYMNETWORKS-MIB::zfsARCSizeKB.0 = Gauge32: 61086
NYMNETWORKS-MIB::zfsARCMetadataSizeKB.0 = Gauge32: 9278
NYMNETWORKS-MIB::zfsARCDataSizeKB.0 = Gauge32: 51808
NYMNETWORKS-MIB::zfsARCHits.0 = Counter32: 229308
NYMNETWORKS-MIB::zfsARCMisses.0 = Counter32: 41260
NYMNETWORKS-MIB::zfsARCTargetSize.0 = Gauge32: 64287
NYMNETWORKS-MIB::zfsARCMru.0 = Gauge32: 59529
NYMNETWORKS-MIB::zfsL2ARCHits.0 = Counter32: 0
NYMNETWORKS-MIB::zfsL2ARCMisses.0 = Counter32: 0
NYMNETWORKS-MIB::zfsL2ARCReads.0 = Counter32: 0
NYMNETWORKS-MIB::zfsL2ARCWrites.0 = Counter32: 0

Additional information, like compression ratio, deduplication ratio, available space (in bytes), age (in seconds) of latest snapshot on volume,
can be obtained with standard NET-SNMP-EXTEND-MIB:

Examples:

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."deduplication" = STRING:

"deduplication Pool-0 1.00"

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."compression" = STRING:

"compression Pool-0/vol00 1.01
compression Pool-0/clone-vol00 1.00"

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."volumes_list" = STRING:

"available Pool-0/vol00 11981377536
available Pool-0/clone-vol00 11981377536"

NET-SNMP-EXTEND-MIB::nsExtendOutputFull."snapshots_age" = STRING:

"snapshot_age Pool-0/vol00 3
snapshot_age Pool-0/vol01 371"

Untranslated OIDs:

root@p-GA-880GM-USB3:/home/p# snmpwalk -v2c -c public 192.168.0.80  1.3.6.1.4.1.8072.1.3.2.3
iso.3.6.1.4.1.8072.1.3.2.3.1.1.11.99.111.109.112.114.101.115.115.105.111.110 = STRING: "compression Pool-0/vol00 1.01"
iso.3.6.1.4.1.8072.1.3.2.3.1.1.12.115.110.97.112.115.104.111.116.95.97.103.101 = STRING: "snapshot_age Pool-0/vol00 3"
iso.3.6.1.4.1.8072.1.3.2.3.1.1.12.118.111.108.117.109.101.115.95.108.105.115.116 = STRING: "available Pool-0/vol00 11981377536"
iso.3.6.1.4.1.8072.1.3.2.3.1.1.13.100.101.100.117.112.108.105.99.97.116.105.111.110 = STRING: "deduplication Pool-0 1.00"
iso.3.6.1.4.1.8072.1.3.2.3.1.2.11.99.111.109.112.114.101.115.115.105.111.110 = STRING: "compression Pool-0/vol00 1.01
compression Pool-0/clone-vol00 1.00"
iso.3.6.1.4.1.8072.1.3.2.3.1.2.12.115.110.97.112.115.104.111.116.95.97.103.101 = STRING: "snapshot_age Pool-0/vol00 3
snapshot_age Pool-0/vol01 371"
iso.3.6.1.4.1.8072.1.3.2.3.1.2.12.118.111.108.117.109.101.115.95.108.105.115.116 = STRING: "available Pool-0/vol00 11981377536
available Pool-0/clone-vol00 11981377536"
iso.3.6.1.4.1.8072.1.3.2.3.1.2.13.100.101.100.117.112.108.105.99.97.116.105.111.110 = STRING: "deduplication Pool-0 1.00"