


Tricklet(1)              USER COMMANDS                Tricklet(1)



NAME
     stdspook - Tricklet daemon

SYNOPSIS
     stdspook <host> [ <community> <medium>  <timeout>  <retries>
     <port> ]

DESCRIPTION
     _s_t_d_s_p_o_o_k is a stdin/stdout  program  that  is  meant  to  be
     started  by  a parent program and will resolve SNMP requests
     for this parent program.  It will normally be used in combi-
     nation  with  scripting environments like perl, awk, csh and
     the like.
     _s_t_d_s_p_o_o_k will accept requests in the form of one-line Trick-
     let  commands.  Each input line is interpreted as a command.
     Each command results in a one-line response. The first char-
     acter  of  both  commands  and results is interpreted as the
     command identifier. The command identifier  is  followed  by
     optional  arguments  to the command.  The command identifier
     of a result is always the same as that of the  corresponding
     command. The command identifier of a result is followed by a
     '+' if the command was successful, a '-' if not.
     The following commands are recognised by stdspook:

COMMANDS
     = host <hostname>
          Sets the hostname. This is the host that will  be  con-
          tacted during the next '[' (connect) command.
     = medium <Udp | Pipe>
          Sets the medium that will be used  for  SNMP  requests.
          Normally  this  medium will be UDP (as described by the
          standards). On OS/2 systems however, medium can be  set
          to  PIPE.  PIPE  can  be  used  to  connect  to a local
          Beholder TNG.
     = community <community string>
          Sets the community string that will be used  by  future
          SNMP requests.
     [
          Opens       a       new       connection.       Current
          (<host>,<medium>,<community>) will be used to establish
          the connection. This should be  done  before  any  SNMP
          requests are made.
     ]
          Closes the current connection. The  current  connection
          should  be  closed before the next connection is opened
          or stdpook is terminated.
     < <tricklet SNMP-GET request>
          Prepares  an  SNMP-GET  request.  The  format  of  this
          request is the same as described in snmp-get (1).
     > <tricklet SNMP-SET request>
          Prepares  an  SNMP-SET  request.  The  format  of  this
          request is the same as described in snmp-set (1).



Sun Release 4.1        Last change: local                       1






Tricklet(1)              USER COMMANDS                Tricklet(1)



     * <tricklet SNMP-TBL request>
          Prepares  an  SNMP-TBL  request.  The  format  of  this
          request is the same as described in snmp-tbl (1).
     $ <tricklet SNMP-INF request>
          Does an SNMP-INF request. The format of this request is
          the same as described in snmp-inf (1).
     .
          Closes an stdspook session.


EXAMPLES
     The following is an example  session  with  stdspook.  Input
     lines are preceeded by a "<", output lines by ">".
     < = host dnpap.et.tudelft.nl       # set destination host
     > =+ host = dnpap.et.tudelft.nl
     < = medium u                       # set medium
     > =+ medium = u
     < = community public               # set community string
     > =+ community = public            # set community string
     < [                      # open connection
     > [+
     < <sysDescr                   # prepare SNMP-get of sysDescr
     > <+
     < ?                      # execute last SNMP command
     > ?+sysDescr[0]="Sun SNMP Agent, SPARCStation 1+, dutepp0"
     < ]                      # close connection
     > ]+
     < .                      # terminate stdspook


FILES
     $(MIBHOME)/mibs          list of MOSY MIB definition files
     $(MIBHOME)/*.def         MOSY MIB definition files
     $(BIN)/stdspook          executable


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

















Sun Release 4.1        Last change: local                       2



