Hi,
please find attached the requested script. Following steps are required to get MIB populated:
1) copy attached script to your Junos component under /var/db/scripts/op/
2) Make following configuration:
lab@M7i-loanunit-mpergament# show system scripts
op {
file account-mib.slax;
}
lab@M7i-loanunit-mpergament# show event-options
generate-event {
5MINUTE time-interval 300;
}
policy GET-ACC-INFO {
events 5MINUTE;
then {
event-script account-mib;
}
}
3) commit
4) Wait for > than 5 minutes.
5) Get MIB locally or from your MGMT system:
lab@M7i-loanunit-mpergament# run show snmp mib walk jnxUtilData
lab@M7i-loanunit-mpergament# run show snmp mib walk jnxUtilData
jnxUtilIntegerValue.101.114.114.45.97.116.102 = 0 <----- OID == err-atf in ASCII
jnxUtilIntegerValue.101.114.114.45.101.112.102 = 0
jnxUtilIntegerValue.101.114.114.45.102.99.102 = 0
jnxUtilIntegerValue.101.114.114.45.109.111.118 = 0
jnxUtilIntegerValue.101.114.114.45.115.115.100 = 0
jnxUtilIntegerValue.117.115.103.45.102.115.108 = 22 <---- OID == usg-fsl
jnxUtilIntegerValue.117.115.103.45.111.109.108 =1
Please do not forget to mark it as "Accepted Solution" if it fullfils what you want 🙂
Regards
Michael Pergament
#with#Utility#MS-PIC#Populate#information#Accounting#mib