{
    "mode": "man",
    "parameter": "SNMPSET",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/SNMPSET/1/json",
    "generated": "2026-06-13T22:58:18Z",
    "synopsis": "snmpset [COMMON OPTIONS] AGENT OID TYPE VALUE [OID TYPE VALUE]...",
    "sections": {
        "NAME": {
            "content": "snmpset - communicates with a network entity using SNMP SET requests\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "snmpset [COMMON OPTIONS] AGENT OID TYPE VALUE [OID TYPE VALUE]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "snmpset is an SNMP application that uses the SNMP SET request to set information on a network\nentity.  One or more object identifiers (OIDs) must be given  as  arguments  on  the  command\nline.   A  type  and  a value to be set must accompany each object identifier.  Each variable\nname is given in the format specified in variables(5).\n\nThe TYPE is a single character, one of:\ni  INTEGER\nu  UNSIGNED\ns  STRING\nx  HEX STRING\nd  DECIMAL STRING\nn  NULLOBJ\no  OBJID\nt  TIMETICKS\na  IPADDRESS\nb  BITS\nMost of these will use the obvious corresponding ASN.1 type.  's', 'x', 'd' and 'b'  are  all\ndifferent  ways  of  specifying an OCTET STRING value, and the 'u' unsigned type is also used\nfor handling Gauge32 values.\n\nIf you have the proper MIB file loaded, you can, in most cases, replace the type with an  '='\nsign.  For  an  object of type OCTET STRING this will assume a string like the 's' type nota‐\ntion. For other types it will do \"The Right Thing\".\n\nFor example:\n\nsnmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu  ip.ipforwarding.0\n= 2\n\nwill set the variables sysContact.0 and ipForwarding.0:\n\nsystem.sysContact.0 = STRING: \"dpz@noc.rutgers.edu\"\nip.ipForwarding.0 = INTEGER: not-forwarding(2)\n\nIf the network entity has an error processing the request packet, an error packet will be re‐\nturned and a message will be shown, helping to pinpoint in what  way  the  request  was  mal‐\nformed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "snmpset  takes the common options described in the snmpcmd(1) manual page.  Note that snmpset\nREQUIRES  an argument specifying the agent to query and at least one  set  of  OID/type/value\narguments, as described in there.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "snmpcmd(1), variables(5).\n\n\n\nV5.9.1                                       19 Jun 2003                                  SNMPSET(1)",
            "subsections": []
        }
    },
    "summary": "snmpset - communicates with a network entity using SNMP SET requests",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "snmpcmd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/snmpcmd/1/json"
        },
        {
            "name": "variables",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/variables/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Set a value using the SNMP protocol.",
        "examples": [
            {
                "description": "Set a value",
                "command": "snmpset -v {{version}} -c {{community}} {{ip_address}} {{oid}} {{value_type}} {{value}}"
            },
            {
                "description": "Display help",
                "command": "snmpset {{-h|--help}}"
            }
        ]
    }
}