acctngFileCommand
ACCOUNTING-CONTROL-MIB ·
.1.3.6.1.2.1.60.1.2.1.1.5
Object
column r/w
Enumeration
A control object for the collection of accounting data.
When read the value is either 'idle' or 'cmdInProgress'.
Writing a value is only allowed when the current value is
'idle'. When a value is successfully written, the value
changes to 'cmdInProgress' until completion of the action,
at which time the value reverts to 'idle'. Actions are
invoked by writing the following values:
'swapToNewFile' - the collection of data into the current
file is terminated, and collection continues into
a new (version of the) file.
'collectNow' - the agent creates and stores a connection
record into the current file for each active
connection having a type matching
acctngSelectionType and an age greater than
acctngFileMinAge.
Context
- MIB
- ACCOUNTING-CONTROL-MIB
- OID
.1.3.6.1.2.1.60.1.2.1.1.5- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- acctngFileEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'ACCOUNTING-CONTROL-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ACCOUNTING-CONTROL-MIB::acctngFileCommand'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'ACCOUNTING-CONTROL-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'ACCOUNTING-CONTROL-MIB::acctngFileCommand.<acctngFileIndex>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'ACCOUNTING-CONTROL-MIB' -M '/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'ACCOUNTING-CONTROL-MIB::acctngFileCommand'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | idle |
2 | cmdInProgress |
3 | swapToNewFile |
4 | collectNow |
Conformance
Member of
Compliance refinements
acctngCompliance
readonly
Write access is not required.