


Tricklet(1)              USER COMMANDS                Tricklet(1)



NAME
     snmp-set - SNMP Set command

SYNOPSIS
     snmp-set <host> [ <community> <medium>  <timeout>  <retries>
     <port> ]

DESCRIPTION
     _s_n_m_p-_s_e_t sends snmp SET requests to the snmp  agent  on  the
     specified  host.  snmp-set reads lines from stdin and inter-
     prets each line as a group of snmp set requests separated by
     semicolons.  Such a group is sent as one SNMP message to the
     host. Seperate lines are sent  as  separate  snmp  messages.
     Output of snmp-set is sent to stdout.
     The format of the input to snmp-set is the same as the  out-
     put generated by snmp-get.


DEFAULTS
     community == "public"
     OS/2 medium == P    (named-pipe)
     UNIX medium == U    (udp-ip)
     timeout == 5 secs
     retries == 3
     port == 161


INPUT FORMAT
     An input-line has the following format:

     <mibvar>=<value>[;<mibvar>=<value>]


     where <mibvar> is the identifier of the requested mib  vari-
     able and <value> its future value.

     See the man page of snmp-get for a description of the  value
     format.


EXAMPLES
     The following example sets the mib variable 'sysDescr' (sys-
     tem    description)    from   the   snmp   agent   on   host
     dnpap.et.tuddelft.nl and returns its new value:

     <--    echo    "sysDescr="new-description"    |     snmp-set
     dnpap.et.tudelft.nl secret
     --> sysDescr[0]="new-description"


FILES
     $(MIBHOME)/mibs          list of MOSY MIB definition files



Sun Release 4.1        Last change: local                       1






Tricklet(1)              USER COMMANDS                Tricklet(1)



     $(MIBHOME)/*.def         MOSY MIB definition files
     $(CONFIGROOT)/global.ini  dnpap's configuration variables
     $(BIN)/snmp-set          executable

SEE ALSO
     _s_n_m_p-_g_e_t(_1) _s_n_m_p-_n_x_t(_1) _s_n_m_p-_t_b_l(_1)

















































Sun Release 4.1        Last change: local                       2



