# # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):UPTIME") { field(DESC, "System uptime") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) DISMAN-EVENT-MIB::sysUpTimeInstance ) 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):SITEID") { field(DESC, "Node name") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) SNMPv2-MIB::sysName.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):MODEL") { field(DESC, "Model") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)sPDUIdentModelNumber.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):SER_NUM") { field(DESC, "Serial number") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)sPDUIdentSerialNumber.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):MAN_DATE") { field(DESC, "Manufacture date") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)sPDUIdentDateOfManufacture.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):FWVERSION") { field(DESC, "Firmware version") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)sPDUIdentFirmwareRev.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Optional macros: # MASK: The substring in the returned variable value string that directly proceeds the value we actually wish to obtain # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(stringin, "$(P):HWVERSION") { field(DESC, "Hardware version") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)sPDUIdentHardwareRev.0 STRING: 100") field(SCAN, "10 second") field(PINI, "0") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # record(ai, "$(P):LOAD") { field(DESC, "Total load") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)rPDULoadStatusLoad.1 Gauge32: 100 iR") field(ASLO, "0.1") field(AOFF, "0.0") field(EGU, "A") field(PREC, "2") field(LOLO, "") field(LOW, "") field(HIGH, "12.0") field(HIHI, "12.5") field(LLSV, "NO_ALARM") field(LSV, "NO_ALARM") field(HSV, "MINOR") field(HHSV, "MAJOR") field(SCAN, "2 second") info(autosaveFields, "LOLO LOW HIGH HIHI LLSV LSV HSV HHSV") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # # This is needed because this driver does not directly support mbbi/mbbo record(longin, "$(P):LOAD_STATUSRaw") { field(DESC, "Load status") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)rPDULoadStatusLoadState.1 ( 100") field(SCAN, "5 second") field(FLNK, "$(P):LOAD_STATUS") } record(mbbi, "$(P):LOAD_STATUS") { field(DESC, "Load status") field(DTYP, "Soft Channel") field(INP, "$(P):LOAD_STATUSRaw NPP MS") field(ZRVL, "") field(ZRST, "") field(ZRSV, "NO_ALARM") field(ONVL, "") field(ONST, "OK") field(ONSV, "NO_ALARM") field(TWVL, "") field(TWST, "Low") field(TWSV, "MINOR") field(THVL, "") field(THST, "High") field(THSV, "MINOR") field(FRVL, "") field(FRST, "Overload") field(FRSV, "MAJOR") field(FVVL, "") field(FVST, "") field(FVSV, "NO_ALARM") field(SXVL, "") field(SXST, "") field(SXSV, "NO_ALARM") info(autosaveFields, "ZRSV ONSV TWSV THSV FRSV FVSV SXSV") } # # Template for snmp interface # # Macros required: # P: PV prefix # HOST: SNMP host IP address or hostname # ATTR: PV attribute # OID: SNMP OID for parameter of interest # DESC: PV desc. # SCAN: Record scan period # Environment variable required (set in st.cmd): # COMM: SNMP community, e.g. "public" # # This is needed because this driver does not directly support mbbi/mbbo record(longin, "$(P):PS_STATUSRaw") { field(DESC, "Power supply status") field(DTYP, "Snmp") field(INP, "@$(HOST) %(COMM) %(M)rPDUPowerSupplyAlarm.0 ( 100") field(SCAN, "5 second") field(FLNK, "$(P):PS_STATUS") } record(mbbi, "$(P):PS_STATUS") { field(DESC, "Power supply status") field(DTYP, "Soft Channel") field(INP, "$(P):PS_STATUSRaw NPP MS") field(ZRVL, "") field(ZRST, "") field(ZRSV, "NO_ALARM") field(ONVL, "") field(ONST, "OK") field(ONSV, "NO_ALARM") field(TWVL, "") field(TWST, "PS1 Fail") field(TWSV, "MAJOR") field(THVL, "") field(THST, "PS2 Fail") field(THSV, "MAJOR") field(FRVL, "") field(FRST, "PS 1 & 2 Fail") field(FRSV, "MAJOR") field(FVVL, "") field(FVST, "") field(FVSV, "NO_ALARM") field(SXVL, "") field(SXST, "") field(SXSV, "NO_ALARM") info(autosaveFields, "ZRSV ONSV TWSV THSV FRSV FVSV SXSV") } record(stringin, "$(P):LOC") { field(VAL, "$(LOC)") field(PINI, "1") info(autosaveFields, "VAL") } record(stringin, "$(P):NETFWVERSION") { field(VAL, "N/A") field(PINI, "1") info(autosaveFields, "") } record(stringin, "$(P):CONNSTA") { field(VAL, "N/A") field(PINI, "1") info(autosaveFields, "") }