Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2013 12:03:22 +0300
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        freebsd-fs@freebsd.org
Cc:        Hartmut Brandt <harti@FreeBSD.org>
Subject:   bsnmpd(1) module for HAST
Message-ID:  <20130501090320.GA5964@gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I would like to commit this bsnmpd module for HAST, if there is no
objections:

http://people.freebsd.org/~trociny/snmp_hast.1.patch

Example:

kopusha:~% snmpwalk -c geheim -v2c localhost:11111 BEGEMOT-HAST-MIB::begemotHast
BEGEMOT-HAST-MIB::hastConfigFile.0 = STRING: "/tmp/hast.conf.101"
BEGEMOT-HAST-MIB::hastResourceIndex.0 = INTEGER: 0
BEGEMOT-HAST-MIB::hastResourceName.0 = STRING: "test"
BEGEMOT-HAST-MIB::hastResourceRole.0 = INTEGER: primary(2)
BEGEMOT-HAST-MIB::hastResourceProvName.0 = STRING: "test"
BEGEMOT-HAST-MIB::hastResourceLocalPath.0 = STRING: "/dev/md101"
BEGEMOT-HAST-MIB::hastResourceExtentSize.0 = INTEGER: 2097152
BEGEMOT-HAST-MIB::hastResourceKeepDirty.0 = INTEGER: 64
BEGEMOT-HAST-MIB::hastResourceRemoteAddr.0 = STRING: "kopusha:7772"
BEGEMOT-HAST-MIB::hastResourceSourceAddr.0 = ""
BEGEMOT-HAST-MIB::hastResourceReplication.0 = INTEGER: memsync(1)
BEGEMOT-HAST-MIB::hastResourceStatus.0 = INTEGER: complete(0)
BEGEMOT-HAST-MIB::hastResourceDirty.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceReads.0 = Counter64: 101
BEGEMOT-HAST-MIB::hastResourceWrites.0 = Counter64: 554
BEGEMOT-HAST-MIB::hastResourceDeletes.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceFlushes.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceActivemapUpdates.0 = Counter64: 31
BEGEMOT-HAST-MIB::hastResourceReadErrors.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceWriteErrors.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceDeleteErrors.0 = Counter64: 0
BEGEMOT-HAST-MIB::hastResourceFlushErrors.0 = Counter64: 0

kopusha:~% snmpset -c geheim -v2c localhost:11111 BEGEMOT-HAST-MIB::hastResourceRole.0 = 1
BEGEMOT-HAST-MIB::hastResourceRole.0 = INTEGER: init(1)

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130501090320.GA5964>