Pool capacity through SNMP and CLI command to view ZFS ACL

Hi,

I use with no problem at all TrueNAS CORE on 6 HPE Apollo 4200 since more than 18 months. Very happy !

I migrate 3 of 6 HPE Apollo 4200 from CORE to SCALE with no problem : boot from ISO image and restore of the SQLITE database. Great process !

But I loose two tips used on CORE

1/ with SNMP request, I don’t find any information to evaluate the pool ratio capacity.

In CORE, I did something like
CAPACITY=snmpget -v 1 -c public $filer FREENAS-MIB::zpoolSize.2 | sed 's/^.*INTEGER: //'
USED=snmpget -v 1 -c public $filer FREENAS-MIB::zpoolUsed.2 | sed 's/^.*INTEGER: //'

How can I do in SCALE ?

2/ I use many ZFS ACL on datasets to filter the access through SMB. In CORE, the command “getfacl” shows the ACL

root@store1[~]# getfacl /mnt/sata/eq_Minc

file: /mnt/sata/eq_Minc

owner: root

group: wheel

        owner@:rwxpDdaARWcCos:fdi----:allow
        group@:rwxpDdaARWc--s:fdi----:allow

group:nas_eq_minc_w:rwxpDdaARWcCos:fd-----:allow
group:nas_all_full:rwxpDdaARWcCos:fd-----:allow
everyone@:--------------:fd-----:allow
root@store1[~]#

I don’t find the same command on SCALE. getfacl exists, but not shows the ZFS ACL (I see the ACL through the GUI)

Regards,

Joel

I can answer 2): The command you seek is called nfs4xdr_getfacl.

getfacl is only for Posix ACL (on linux).

1 Like

Thanks a lot !

Regarding SNMP, you need to research whether SNMP is provided as standard in TrueNAS Scale, and what MIBs are provided as standard by Debian (most likely) or TrueNAS Scale (much less likely IMO).

Hi,

About SNMP

On CORE, I use this MIB
[root@shinken mibs]# head FREENAS-MIB.txt
FREENAS-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, enterprises,
Integer32, Counter32, Counter64, Gauge32 FROM SNMPv2-SMI

TEXTUAL-CONVENTION, DisplayString         FROM SNMPv2-TC;

freeNas MODULE-IDENTITY
LAST-UPDATED “202005280000Z”
[root@shinken mibs]#

On SCALE, I use this MIB
[root@shinken mibs]# head TRUENAS-MIB.txt
TRUENAS-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, NOTIFICATION-TYPE, enterprises,
Integer32, Counter32, Counter64, Gauge32 FROM SNMPv2-SMI

TEXTUAL-CONVENTION, DisplayString         FROM SNMPv2-TC;

trueNas MODULE-IDENTITY
LAST-UPDATED “202212211800Z”
[root@shinken mibs]#

Joel