---
name: "netsnmp_read_only"
section: "3snmp"
platform: "linux"
package: "libsnmp-dev"
version: "5.4.3~dfsg-2.8+deb7u1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/netsnmp_read_only"
---

# netsnmp\_read\_only(3snmp)

Make your handler read\_only automatically The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.

## NAME

read\_only -

Make your handler read\_only automatically The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.

### Functions

**netsnmp\_mib\_handler** \* **netsnmp\_get\_read\_only\_handler** (void)\
 *returns a read\_only handler that can be injected into a given handler chain.*  int **netsnmp\_read\_only\_helper** (**netsnmp\_mib\_handler** \*handler, **netsnmp\_handler\_registration** \*reginfo, **netsnmp\_agent\_request\_info** \*reqinfo, **netsnmp\_request\_info** \*requests)\
 void **netsnmp\_init\_read\_only\_helper** (void)\
 *initializes the read\_only helper which then registers a read\_only handler as a run-time injectable handler for configuration file use.*

## Detailed Description

Make your handler read\_only automatically The only purpose of this handler is to return an appropriate error for any requests passed to it in a SET mode.

Inserting it into your handler chain will ensure you're never asked to perform a SET request so you can ignore those error conditions.

## Function Documentation

### netsnmp\_mib\_handler\* netsnmp\_get\_read\_only\_handler (void)

returns a read\_only handler that can be injected into a given handler chain.

Definition at line 29 of file read\_only.c.

### void netsnmp\_init\_read\_only\_helper (void)

initializes the read\_only helper which then registers a read\_only handler as a run-time injectable handler for configuration file use.

Definition at line 81 of file read\_only.c.

## Author

Generated automatically by Doxygen for net-snmp from the source code.
