Path: blob/main/usr.sbin/bsnmpd/modules/snmp_hast/BEGEMOT-HAST-MIB.txt
111799 views
--1-- Copyright (c) 2013 Mikolaj Golub <[email protected]>2-- All rights reserved.3--4-- Redistribution and use in source and binary forms, with or without5-- modification, are permitted provided that the following conditions6-- are met:7-- 1. Redistributions of source code must retain the above copyright8-- notice, this list of conditions and the following disclaimer.9-- 2. Redistributions in binary form must reproduce the above copyright10-- notice, this list of conditions and the following disclaimer in the11-- documentation and/or other materials provided with the distribution.12--13-- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND14-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE15-- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE16-- ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE17-- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL18-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS19-- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)20-- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT21-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY22-- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF23-- SUCH DAMAGE.24--2526BEGEMOT-HAST-MIB DEFINITIONS ::= BEGIN2728IMPORTS29MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE,30Counter64, Integer3231FROM SNMPv2-SMI32TEXTUAL-CONVENTION, RowStatus33FROM SNMPv2-TC34InterfaceIndex, ifIndex35FROM IF-MIB36begemot37FROM BEGEMOT-MIB;3839begemotHast MODULE-IDENTITY40LAST-UPDATED "201304130000Z"41ORGANIZATION "FreeBSD"42CONTACT-INFO43" Mikolaj Golub4445Postal: Bluhera 27v 114661146 Kharkiv47Ukraine4849Fax: N/A5051E-Mail: [email protected]"52DESCRIPTION53"The Begemot MIB for managing HAST."54REVISION "201304130000Z"55DESCRIPTION56"Initial revision."57REVISION "201307010000Z"58DESCRIPTION59"Added hastResourceWorkerPid."60REVISION "201312290000Z"61DESCRIPTION62"Added hastResourceLocalQueue, hastResourceSendQueue,63hastResourceRecvQueue, hastResourceDoneQueue,64hastResourceIdleQueue."65::= { begemot 220 }6667begemotHastObjects OBJECT IDENTIFIER ::= { begemotHast 1 }6869-- ---------------------------------------------------------- --70-- Configuration parameters71-- ---------------------------------------------------------- --7273hastConfig OBJECT IDENTIFIER ::= { begemotHastObjects 1 }7475hastConfigFile OBJECT-TYPE76SYNTAX OCTET STRING77MAX-ACCESS read-only78STATUS current79DESCRIPTION80"HAST configuration file location."81::= { hastConfig 1 }8283-- ---------------------------------------------------------- --84-- Resource Table85-- ---------------------------------------------------------- --86hastResourceTable OBJECT-TYPE87SYNTAX SEQUENCE OF HastResourceEntry88MAX-ACCESS not-accessible89STATUS current90DESCRIPTION91"A table containing information about all HAST resources."92::= { begemotHastObjects 2 }9394hastResourceEntry OBJECT-TYPE95SYNTAX HastResourceEntry96MAX-ACCESS not-accessible97STATUS current98DESCRIPTION99"Table entry that describes one HAST resource."100INDEX { hastResourceIndex }101::= { hastResourceTable 1 }102103HastResourceEntry ::= SEQUENCE {104hastResourceIndex Integer32,105hastResourceName OCTET STRING,106hastResourceRole INTEGER,107hastResourceProvName OCTET STRING,108hastResourceLocalPath OCTET STRING,109hastResourceExtentSize Integer32,110hastResourceKeepDirty Integer32,111hastResourceRemoteAddr OCTET STRING,112hastResourceSourceAddr OCTET STRING,113hastResourceReplication INTEGER,114hastResourceStatus INTEGER,115hastResourceDirty Counter64,116hastResourceReads Counter64,117hastResourceWrites Counter64,118hastResourceDeletes Counter64,119hastResourceFlushes Counter64,120hastResourceActivemapUpdates Counter64,121hastResourceReadErrors Counter64,122hastResourceWriteErrors Counter64,123hastResourceDeleteErrors Counter64,124hastResourceFlushErrors Counter64,125hastResourceWorkerPid INTEGER,126hastResourceLocalQueue UNSIGNED32,127hastResourceSendQueue UNSIGNED32,128hastResourceRecvQueue UNSIGNED32,129hastResourceDoneQueue UNSIGNED32,130hastResourceIdleQueue UNSIGNED32131}132133hastResourceIndex OBJECT-TYPE134SYNTAX Integer32135MAX-ACCESS read-only136STATUS current137DESCRIPTION138"Resource index."139::= { hastResourceEntry 1 }140141hastResourceName OBJECT-TYPE142SYNTAX OCTET STRING143MAX-ACCESS read-only144STATUS current145DESCRIPTION146"Resource name."147::= { hastResourceEntry 2 }148149hastResourceRole OBJECT-TYPE150SYNTAX INTEGER { undef(0), init(1), primary(2), secondary(3) }151MAX-ACCESS read-write152STATUS current153DESCRIPTION154"Resource role."155::= { hastResourceEntry 3 }156157hastResourceProvName OBJECT-TYPE158SYNTAX OCTET STRING159MAX-ACCESS read-only160STATUS current161DESCRIPTION162"Resource GEOM provider name that appears as /dev/hast/<name>."163::= { hastResourceEntry 4 }164165hastResourceLocalPath OBJECT-TYPE166SYNTAX OCTET STRING167MAX-ACCESS read-only168STATUS current169DESCRIPTION170"Path to the local component which is used as a backend171provider for the resource."172::= { hastResourceEntry 5 }173174hastResourceExtentSize OBJECT-TYPE175SYNTAX Integer32176MAX-ACCESS read-only177STATUS current178DESCRIPTION179"Size of an extent. Extent is a block which is180used for synchronization. hastd(8) maintains a181map of dirty extents and extent is the smallest182region that can be marked as dirty. If any part183of an extent is modified, entire extent will be184synchronized when nodes connect."185::= { hastResourceEntry 6 }186187hastResourceKeepDirty OBJECT-TYPE188SYNTAX Integer32189MAX-ACCESS read-only190STATUS current191DESCRIPTION192"Maximum number of dirty extents to keep dirty all193the time. Most recently used extents are kept194dirty to reduce number of metadata updates."195::= { hastResourceEntry 7 }196197hastResourceRemoteAddr OBJECT-TYPE198SYNTAX OCTET STRING199MAX-ACCESS read-only200STATUS current201DESCRIPTION202"Address of the remote hastd(8) daemon for the resource."203::= { hastResourceEntry 8 }204205hastResourceSourceAddr OBJECT-TYPE206SYNTAX OCTET STRING207MAX-ACCESS read-only208STATUS current209DESCRIPTION210"Local address the resource is bound to."211::= { hastResourceEntry 9 }212213hastResourceReplication OBJECT-TYPE214SYNTAX INTEGER { fullsync(0), memsync(1), async(2) }215MAX-ACCESS read-only216STATUS current217DESCRIPTION218"Resource replication mode."219::= { hastResourceEntry 10 }220221hastResourceStatus OBJECT-TYPE222SYNTAX INTEGER { complete(0), degraded(1) }223MAX-ACCESS read-only224STATUS current225DESCRIPTION226"Resource replication status."227::= { hastResourceEntry 11 }228229hastResourceDirty OBJECT-TYPE230SYNTAX Counter64231MAX-ACCESS read-only232STATUS current233DESCRIPTION234"Current number of dirty extents for the resource."235::= { hastResourceEntry 12 }236237hastResourceReads OBJECT-TYPE238SYNTAX Counter64239MAX-ACCESS read-only240STATUS current241DESCRIPTION242"Count of resource local read operations."243::= { hastResourceEntry 13 }244245hastResourceWrites OBJECT-TYPE246SYNTAX Counter64247MAX-ACCESS read-only248STATUS current249DESCRIPTION250"Count of resource local write operations."251::= { hastResourceEntry 14 }252253hastResourceDeletes OBJECT-TYPE254SYNTAX Counter64255MAX-ACCESS read-only256STATUS current257DESCRIPTION258"Count of resource local delete operations."259::= { hastResourceEntry 15 }260261hastResourceFlushes OBJECT-TYPE262SYNTAX Counter64263MAX-ACCESS read-only264STATUS current265DESCRIPTION266"Count of resource local flush operations."267::= { hastResourceEntry 16 }268269hastResourceActivemapUpdates OBJECT-TYPE270SYNTAX Counter64271MAX-ACCESS read-only272STATUS current273DESCRIPTION274"Count of resource local activemap updates."275::= { hastResourceEntry 17 }276277hastResourceReadErrors OBJECT-TYPE278SYNTAX Counter64279MAX-ACCESS read-only280STATUS current281DESCRIPTION282"Count of resource local read operations that failed."283::= { hastResourceEntry 18 }284285hastResourceWriteErrors OBJECT-TYPE286SYNTAX Counter64287MAX-ACCESS read-only288STATUS current289DESCRIPTION290"Count of resource local write operations that failed."291::= { hastResourceEntry 19 }292293hastResourceDeleteErrors OBJECT-TYPE294SYNTAX Counter64295MAX-ACCESS read-only296STATUS current297DESCRIPTION298"Count of resource local delete operations that failed."299::= { hastResourceEntry 20 }300301hastResourceFlushErrors OBJECT-TYPE302SYNTAX Counter64303MAX-ACCESS read-only304STATUS current305DESCRIPTION306"Count of resource local flush operations that failed."307::= { hastResourceEntry 21 }308309hastResourceWorkerPid OBJECT-TYPE310SYNTAX INTEGER311MAX-ACCESS read-only312STATUS current313DESCRIPTION314"Worker process ID."315::= { hastResourceEntry 22 }316317hastResourceLocalQueue OBJECT-TYPE318SYNTAX UNSIGNED32319MAX-ACCESS read-only320STATUS current321DESCRIPTION322"Number of outstanding I/O requests to the local component."323::= { hastResourceEntry 23 }324325hastResourceSendQueue OBJECT-TYPE326SYNTAX UNSIGNED32327MAX-ACCESS read-only328STATUS current329DESCRIPTION330"Number of outstanding I/O requests to send to the remote331component."332::= { hastResourceEntry 24 }333334hastResourceRecvQueue OBJECT-TYPE335SYNTAX UNSIGNED32336MAX-ACCESS read-only337STATUS current338DESCRIPTION339"Number of outstanding I/O requests waiting for response340from the remote component."341::= { hastResourceEntry 25 }342343hastResourceDoneQueue OBJECT-TYPE344SYNTAX UNSIGNED32345MAX-ACCESS read-only346STATUS current347DESCRIPTION348"Number of processed I/O requests to return to the kernel."349::= { hastResourceEntry 26 }350351hastResourceIdleQueue OBJECT-TYPE352SYNTAX UNSIGNED32353MAX-ACCESS read-only354STATUS current355DESCRIPTION356"Number of request objects in the free bucket."357::= { hastResourceEntry 27 }358359END360361362