


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



