bsnmpd(1) module for HAST
Mikolaj Golub
trociny at FreeBSD.org
Wed May 1 09:03:28 UTC 2013
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
More information about the freebsd-fs
mailing list