home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume40 / netramet / part24 < prev    next >
Encoding:
Text File  |  1993-11-08  |  42.7 KB  |  1,262 lines

  1. Newsgroups: comp.sources.misc
  2. From: nevil@ccu1.aukuni.ac.nz (J Nevil Brownlee)
  3. Subject: v40i112:  netramet - Network Traffic Accounting Meter, Part24/25
  4. Message-ID: <1993Nov9.020806.19288@sparky.sterling.com>
  5. X-Md4-Signature: 5c1d9fff112d7fa4b556b94e59bfc201
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Organization: Sterling Software
  8. Date: Tue, 9 Nov 1993 02:08:06 GMT
  9. Approved: kent@sparky.sterling.com
  10.  
  11. Submitted-by: nevil@ccu1.aukuni.ac.nz (J Nevil Brownlee)
  12. Posting-number: Volume 40, Issue 112
  13. Archive-name: netramet/part24
  14. Environment: INET, UNIX, DOS
  15.  
  16. #! /bin/sh
  17. # This is a shell archive.  Remove anything before this line, then feed it
  18. # into a shell via "sh file" or similar.  To overwrite existing files,
  19. # type "sh file -c".
  20. # Contents:  netramet/doc/NeTraMet/to.do
  21. #   netramet/doc/snmp/Makefile.snmp netramet/doc/snmp/snmpget.1
  22. #   netramet/doc/snmp/snmpgetnext.1 netramet/doc/snmp/snmptrapd.1
  23. #   netramet/examples/rules.gateway netramet/examples/rules.lan
  24. #   netramet/pc/wattcp.cfg.UU netramet/sg/manager/Makefile
  25. #   netramet/sg/snmplib/Makefile netramet/src/apps/kernel.c
  26. #   netramet/src/snmplib/include/parse.h
  27. #   netramet/src/snmplib/include/snmp.h
  28. #   netramet/src/snmplib/include/snmpclnt.h netramet/sun/apps/Makefile
  29. #   netramet/sun/apps/snmpnetstat/Makefile netramet/sun/meter/Makefile
  30. #   netramet/sun/snmplib/Makefile
  31. # Wrapped by kent@sparky on Tue Nov  2 18:17:14 1993
  32. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin:$PATH ; export PATH
  33. echo If this archive is complete, you will see the following message:
  34. echo '          "shar: End of archive 24 (of 25)."'
  35. if test -f 'netramet/doc/NeTraMet/to.do' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'netramet/doc/NeTraMet/to.do'\"
  37. else
  38.   echo shar: Extracting \"'netramet/doc/NeTraMet/to.do'\" \(1199 characters\)
  39.   sed "s/^X//" >'netramet/doc/NeTraMet/to.do' <<'END_OF_FILE'
  40. X# 2015, Sun 17 Oct 93
  41. X
  42. X# doc/NeTraMet/to.do
  43. X
  44. X Nevil Brownlee,  Computer Centre,  University of Auckland
  45. X
  46. X
  47. XThis file lists some useful development projects for NeTraMet ..
  48. X
  49. X1) Change to using more recent versions of CMU SNMP and Waterloo TCP.
  50. X   The versions used for this release are those which were current 18
  51. X   months ago.  This will be my next development activity.
  52. X
  53. X2) Extend the list of protocols known to NeTraMet.  Possibilities
  54. X   include:
  55. X
  56. X    * Novell IPX.  Version 2.0 recognises IPX packets in Novell's
  57. X      default packet format, but there are other possibilities, e.g.
  58. X      the one you get when you ECONFIG a Novell server.  I believe
  59. X      it's also possible to produce real 802.2 LLC packets from a
  60. X      Novell server (rather than the default ones which
  61. X      have the cehcksum field set to 0xFFFF).
  62. X
  63. X    * CLNP.  I don't have any of this on my network.  It would require
  64. X      a slightly more elaborate memory allocation scheme for flows,
  65. X      but shouldn't be difficult to implement.
  66. X
  67. X3) Implement secure SNMP for communications between NeTraMet and
  68. X   NeMaC.
  69. X
  70. X
  71. XIf you think of other developments you'd like to see, please let me
  72. Xknow by e-mail to n.brownlee@auckland.ac.nz.
  73. END_OF_FILE
  74.   if test 1199 -ne `wc -c <'netramet/doc/NeTraMet/to.do'`; then
  75.     echo shar: \"'netramet/doc/NeTraMet/to.do'\" unpacked with wrong size!
  76.   fi
  77.   # end of 'netramet/doc/NeTraMet/to.do'
  78. fi
  79. if test -f 'netramet/doc/snmp/Makefile.snmp' -a "${1}" != "-c" ; then 
  80.   echo shar: Will not clobber existing file \"'netramet/doc/snmp/Makefile.snmp'\"
  81. else
  82.   echo shar: Extracting \"'netramet/doc/snmp/Makefile.snmp'\" \(999 characters\)
  83.   sed "s/^X//" >'netramet/doc/snmp/Makefile.snmp' <<'END_OF_FILE'
  84. X# Original CMU Makefile for whole SNMP collection
  85. X
  86. XTARG = bin/snmpget bin/snmpgetnext bin/snmpstatus bin/snmpwalk bin/snmptest bin/snmptrap bin/snmptrapd bin/snmpnetstat bin/snmpmon bin/snmpd
  87. X
  88. Xall:    makeall
  89. X
  90. Xinstall:    apps/snmpget apps/snmpgetnext apps/snmpstatus apps/snmpwalk apps/snmptest apps/snmptrap apps/snmptrapd apps/snmpnetstat/snmpnetstat apps/snmpd
  91. X    cp apps/snmpget bin/snmpget
  92. X    cp apps/snmpgetnext bin/snmpgetnext
  93. X    cp apps/snmpstatus bin/snmpstatus
  94. X    cp apps/snmpwalk bin/snmpwalk
  95. X    cp apps/snmptest bin/snmptest
  96. X    cp apps/snmptrap bin/snmptrap
  97. X    cp apps/snmptrapd bin/snmptrapd
  98. X    cp apps/snmpnetstat/snmpnetstat bin/snmpnetstat
  99. X    cp apps/snmpd bin/snmpd
  100. X
  101. Xapps/snmpget apps/snmpgetnext apps/snmpstatus apps/snmpwalk apps/snmptest apps/snmptrap apps/snmptrapd apps/snmpnetstat/snmpnetstat apps/snmpmon apps/snmpd: makeall
  102. X
  103. Xmakeall:
  104. X    cd snmplib; make all install
  105. X    cd apps; make
  106. X    cd apps/snmpnetstat; make
  107. X
  108. Xclean:
  109. X    cd snmplib; make clean
  110. X    cd apps; make clean
  111. X    cd apps/snmpnetstat; make clean
  112. X
  113. X
  114. END_OF_FILE
  115.   if test 999 -ne `wc -c <'netramet/doc/snmp/Makefile.snmp'`; then
  116.     echo shar: \"'netramet/doc/snmp/Makefile.snmp'\" unpacked with wrong size!
  117.   fi
  118.   # end of 'netramet/doc/snmp/Makefile.snmp'
  119. fi
  120. if test -f 'netramet/doc/snmp/snmpget.1' -a "${1}" != "-c" ; then 
  121.   echo shar: Will not clobber existing file \"'netramet/doc/snmp/snmpget.1'\"
  122. else
  123.   echo shar: Extracting \"'netramet/doc/snmp/snmpget.1'\" \(2626 characters\)
  124.   sed "s/^X//" >'netramet/doc/snmp/snmpget.1' <<'END_OF_FILE'
  125. X.\* /***********************************************************
  126. X.\"     Copyright 1988, 1989 by Carnegie Mellon University
  127. X.\" 
  128. X.\"                       All Rights Reserved
  129. X.\" 
  130. X.\" Permission to use, copy, modify, and distribute this software and its 
  131. X.\" documentation for any purpose and without fee is hereby granted, 
  132. X.\" provided that the above copyright notice appear in all copies and that
  133. X.\" both that copyright notice and this permission notice appear in 
  134. X.\" supporting documentation, and that the name of CMU not be
  135. X.\" used in advertising or publicity pertaining to distribution of the
  136. X.\" software without specific, written prior permission.  
  137. X.\" 
  138. X.\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  139. X.\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  140. X.\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  141. X.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  142. X.\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  143. X.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  144. X.\" SOFTWARE.
  145. X.\" ******************************************************************/
  146. X.TH SNMPGET 1 "17 September 1989"
  147. X.UC 4
  148. X.SH NAME
  149. Xsnmpget - communicates with a network entity using SNMP GET Requests.
  150. X.SH SYNOPSIS
  151. Xsnmpget host community variable-name [variable-name]...
  152. X.SH DESCRIPTION
  153. XSnmpget is an SNMP application that uses the GET Request to query for
  154. Xinformation on a network entity.  One or more fully qualified object
  155. Xidentifiers may be given as arguments on the command line.
  156. XEach variable name is given in the format specified in
  157. X.IR variables (5).
  158. X.PP
  159. XThe
  160. X.I host
  161. Xspecification may be either a host name or an internet address
  162. Xspecified in "dot notation"
  163. X.PP
  164. XThe
  165. X.I community
  166. Xspecifies the community name for the transaction with the remote system.
  167. X.PP
  168. XFor example
  169. X.PP
  170. X.I snmpget netdev-kbox.cc.cmu.edu public system.sysdescr.0 system.sysUpTime.0
  171. X.PP
  172. Xwill retrieve the variables sysDescr.0 and sysUpTime.0:
  173. X.PP
  174. X.I Name: system.sysDescr.0
  175. X.br
  176. X.I OCTET STRING- (ascii):    Kinetics FastPath2
  177. X.PP
  178. X.I Name: system.sysUpTime.0
  179. X.br
  180. X.I Timeticks: (2270351) 6:18:23
  181. X.PP
  182. XIf the network entity has an error processing the request packet, an error
  183. Xpacket will be returned and a message will be shown, helping to pinpoint in what
  184. Xway the request was malformed.  If there were other variables in the request,
  185. Xthe request will be resent without the bad variable.
  186. X.PP
  187. XAdding a "-d" to the argument list will cause the application to dump input and output packets.
  188. X.PP
  189. X.SH "SEE ALSO"
  190. Xvariables(5), RFC 1065, RFC 1066, RFC 1067
  191. END_OF_FILE
  192.   if test 2626 -ne `wc -c <'netramet/doc/snmp/snmpget.1'`; then
  193.     echo shar: \"'netramet/doc/snmp/snmpget.1'\" unpacked with wrong size!
  194.   fi
  195.   # end of 'netramet/doc/snmp/snmpget.1'
  196. fi
  197. if test -f 'netramet/doc/snmp/snmpgetnext.1' -a "${1}" != "-c" ; then 
  198.   echo shar: Will not clobber existing file \"'netramet/doc/snmp/snmpgetnext.1'\"
  199. else
  200.   echo shar: Extracting \"'netramet/doc/snmp/snmpgetnext.1'\" \(2605 characters\)
  201.   sed "s/^X//" >'netramet/doc/snmp/snmpgetnext.1' <<'END_OF_FILE'
  202. X.\* /***********************************************************
  203. X.\"     Copyright 1988, 1989 by Carnegie Mellon University
  204. X.\" 
  205. X.\"                       All Rights Reserved
  206. X.\" 
  207. X.\" Permission to use, copy, modify, and distribute this software and its 
  208. X.\" documentation for any purpose and without fee is hereby granted, 
  209. X.\" provided that the above copyright notice appear in all copies and that
  210. X.\" both that copyright notice and this permission notice appear in 
  211. X.\" supporting documentation, and that the name of CMU not be
  212. X.\" used in advertising or publicity pertaining to distribution of the
  213. X.\" software without specific, written prior permission.  
  214. X.\" 
  215. X.\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  216. X.\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  217. X.\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  218. X.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  219. X.\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  220. X.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  221. X.\" SOFTWARE.
  222. X.\" ******************************************************************/
  223. X.TH SNMPGETNEXT 1 "17 September 1989"
  224. X.UC 4
  225. X.SH NAME
  226. Xsnmpgetnext - communicates with a network entity using SNMP GET NEXT Requests.
  227. X.SH SYNOPSIS
  228. Xsnmpgetnext host community variable-name [variable-name]...
  229. X.SH DESCRIPTION
  230. XSnmpget is an SNMP application that uses the GET NEXT Request to query for
  231. Xinformation on a network entity.  One or more object
  232. Xidentifiers may be given as arguments on the command line.
  233. XEach variable name is given in the format specified in
  234. X.IR variables (5).
  235. XFor each one, the variable that is lexicographicly "next" in the remote entity's
  236. XMIB will be returned.
  237. X.PP
  238. XThe
  239. X.I host
  240. Xspecification may be either a host name or an internet address
  241. Xspecified in "dot notation"
  242. X.PP
  243. XThe
  244. X.I community
  245. Xspecifies the community name for the transaction with the remote system.
  246. X.PP
  247. XFor example
  248. X.PP
  249. X.I snmpgetnext netdev-kbox.cc.cmu.edu public system.sysdescr system.sysUpTime
  250. X.PP
  251. Xwill retrieve the variables sysDescr.0 and sysUpTime.0:
  252. X.PP
  253. X.I Name: system.sysDescr.0
  254. X.br
  255. X.I OCTET STRING- (ascii):    Kinetics FastPath2
  256. X.PP
  257. X.I Name: system.sysUpTime.0
  258. X.br
  259. X.I Timeticks: (2270351) 6:18:23
  260. X.PP
  261. XIf the network entity has an error processing the request packet, an error
  262. Xmessage will be shown, helping to pinpoint in what way the request was malformed.
  263. X.PP
  264. XAdding a "-d" to the argument list will cause the application to dump input and output packets.
  265. X.PP
  266. X.SH "SEE ALSO"
  267. Xvariables(5), RFC 1065, RFC 1066, RFC 1067
  268. END_OF_FILE
  269.   if test 2605 -ne `wc -c <'netramet/doc/snmp/snmpgetnext.1'`; then
  270.     echo shar: \"'netramet/doc/snmp/snmpgetnext.1'\" unpacked with wrong size!
  271.   fi
  272.   # end of 'netramet/doc/snmp/snmpgetnext.1'
  273. fi
  274. if test -f 'netramet/doc/snmp/snmptrapd.1' -a "${1}" != "-c" ; then 
  275.   echo shar: Will not clobber existing file \"'netramet/doc/snmp/snmptrapd.1'\"
  276. else
  277.   echo shar: Extracting \"'netramet/doc/snmp/snmptrapd.1'\" \(2145 characters\)
  278.   sed "s/^X//" >'netramet/doc/snmp/snmptrapd.1' <<'END_OF_FILE'
  279. X.\* /***********************************************************
  280. X.\"     Copyright 1989 by Carnegie Mellon University
  281. X.\" 
  282. X.\"                       All Rights Reserved
  283. X.\" 
  284. X.\" Permission to use, copy, modify, and distribute this software and its 
  285. X.\" documentation for any purpose and without fee is hereby granted, 
  286. X.\" provided that the above copyright notice appear in all copies and that
  287. X.\" both that copyright notice and this permission notice appear in 
  288. X.\" supporting documentation, and that the name of CMU not be
  289. X.\" used in advertising or publicity pertaining to distribution of the
  290. X.\" software without specific, written prior permission.  
  291. X.\" 
  292. X.\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  293. X.\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  294. X.\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  295. X.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  296. X.\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  297. X.\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  298. X.\" SOFTWARE.
  299. X.\" ******************************************************************/
  300. X.TH SNMPTRAPD 1 "17 SEPTEMBER 1989"
  301. X.UC 4
  302. X.SH NAME
  303. Xsnmptrapd - Receive and log snmp trap messages.
  304. X.SH SYNOPSIS
  305. Xsnmptrapd [ -p ]
  306. X.SH DESCRIPTION
  307. XSnmptrapd
  308. Xis an SNMP application that receives and logs snmp trap messages
  309. Xsent to the SNMP-TRAP port (162) on the local machine.
  310. X.PP
  311. XIf the
  312. X.B -p
  313. Xoption is given,
  314. X.I snmptrapd
  315. Xwill print it's messages to the standard output.  Otherwise it will use
  316. X.IR syslog (8)
  317. Xto log messages.  These syslog messages are sent with the level of LOG_WARNING, and
  318. Xare if available (usually on 4.3 systems) are sent to the LOG_LOCAL0 facility.
  319. X.PP
  320. XThe log messages are of the form:
  321. X.br
  322. X.I Sep 17 22:39:52 suffern snmptrapd: 128.2.13.41:
  323. X.I Cold Start Trap (0) Uptime:
  324. X.I 8 days, 0:35:46
  325. X.PP
  326. X.I Snmptrapd
  327. Xmust be run as root so that UDP port 162 can be opened.
  328. X.PP
  329. XAdding a "-d" to the argument list will cause the application to dump input and output packets.
  330. X.PP
  331. X.SH "SEE ALSO"
  332. Xsyslog(8), variables(5), RFC 1065, RFC 1066, RFC 1067
  333. END_OF_FILE
  334.   if test 2145 -ne `wc -c <'netramet/doc/snmp/snmptrapd.1'`; then
  335.     echo shar: \"'netramet/doc/snmp/snmptrapd.1'\" unpacked with wrong size!
  336.   fi
  337.   # end of 'netramet/doc/snmp/snmptrapd.1'
  338. fi
  339. if test -f 'netramet/examples/rules.gateway' -a "${1}" != "-c" ; then 
  340.   echo shar: Will not clobber existing file \"'netramet/examples/rules.gateway'\"
  341. else
  342.   echo shar: Extracting \"'netramet/examples/rules.gateway'\" \(2465 characters\)
  343.   sed "s/^X//" >'netramet/examples/rules.gateway' <<'END_OF_FILE'
  344. X#  1605, Fri 24 Sep 93
  345. X#
  346. X#  Rule specification file to tally traffic to/from ccr1 
  347. X#
  348. X#  Nevil Brownlee,  Computer Centre,  University of Auckland
  349. X#
  350. XSET 6  # Rule + action set number 6
  351. X#
  352. XRULES
  353. X#
  354. XDestAdjacentAddress,  ff-ff-ff-ff-ff-ff,  aa-00-04-00-f4-ed,   #  ccr1
  355. X    Pushto,  3;  #   1
  356. XNull,                   0,            0,          Fail,  0;  #   2  Try again
  357. X#
  358. XSourcePeerType,       255,           IP,        Pushto,  5;  #   3
  359. XNull,                   0,            0,       Succeed,  0;  #   4  Ignore
  360. X#
  361. XSourcePeerAddress,  255.255.0.0,  130.216.0.0,  Pushto,  8;  #   5  Auckland
  362. XSourcePeerAddress,  192.0.0.0,    192.0.0.0,    Pushto,  8;  #   6  Low C
  363. XNull,                 0,            0,          Pushto, 11;  #   7  Low B
  364. X#
  365. XDestPeerAddress,    192.0.0.0,  192.0.0.0,       Tally,  1;  #   8  Tally C-C
  366. XDestPeerAddress,    192.0.0.0,  128.0.0.0,       Tally,  2;  #   9  Tally C-B
  367. XNull,                 0,          0,             Tally,  3;  #  10  Tally C-A
  368. X#
  369. XDestPeerAddress,    192.0.0.0,  128.0.0.0,       Tally,  4;  #  11  Tally B-B
  370. XDestPeerAddress,    192.0.0.0,  192.0.0.0,       Tally,  5;  #  12  Tally B-C
  371. XNull,                 0,          0,             Tally,  6;  #  13  Tally B-A
  372. X#
  373. XACTIONS
  374. X#
  375. XSourcePeerMask=255.255.255.0, DestPeerMask=255.255.255.0,  #  1 Tally C-C
  376. X   SourceDetailTypeMask=255, 
  377. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  378. XSourcePeerMask=255.255.255.0, DestPeerMask=255.255.0.0,    #  1 Tally C-B
  379. X   SourceDetailTypeMask=255, 
  380. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  381. XSourcePeerMask=255.255.255.0, DestPeerMask=255.0.0.0,      #  1 Tally C-A
  382. X   SourceDetailTypeMask=255, 
  383. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  384. XSourcePeerMask=255.255.0.0,   DestPeerMask=255.255.255.0,  #  1 Tally B-C
  385. X   SourceDetailTypeMask=255, 
  386. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  387. XSourcePeerMask=255.255.0.0,   DestPeerMask=255.255.0.0,    #  1 Tally B-B
  388. X   SourceDetailTypeMask=255, 
  389. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  390. XSourcePeerMask=255.255.0.0,   DestPeerMask=255.0.0.0,      #  1 Tally B-A
  391. X   SourceDetailTypeMask=255, 
  392. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  393. X#
  394. XFORMAT FlowRuleSet FlowIndex FirstTime "  "
  395. X#  SourceAdjacentAddress DestAdjacentAddress "  "
  396. X#  SourcePeerType 
  397. X   SourcePeerAddress DestPeerAddress "  "
  398. X   SourceDetailType SourceDetailAddress DestDetailAddress "  "
  399. X   ToOctets FromOctets;
  400. X#
  401. XSTATISTICS  #  Collect meter statistics
  402. X#
  403. X# end of file
  404. END_OF_FILE
  405.   if test 2465 -ne `wc -c <'netramet/examples/rules.gateway'`; then
  406.     echo shar: \"'netramet/examples/rules.gateway'\" unpacked with wrong size!
  407.   fi
  408.   # end of 'netramet/examples/rules.gateway'
  409. fi
  410. if test -f 'netramet/examples/rules.lan' -a "${1}" != "-c" ; then 
  411.   echo shar: Will not clobber existing file \"'netramet/examples/rules.lan'\"
  412. else
  413.   echo shar: Extracting \"'netramet/examples/rules.lan'\" \(2170 characters\)
  414.   sed "s/^X//" >'netramet/examples/rules.lan' <<'END_OF_FILE'
  415. X#  1015, Mon 4 Oct 93
  416. X#
  417. X#  Rule specification file to tally Local Area Network traffic
  418. X#
  419. X#  Nevil Brownlee,  Computer Centre,  University of Auckland
  420. X#
  421. XSET 4  # Rule + action set number
  422. X#
  423. XRULES
  424. X#
  425. XSourcePeerType & 255 = IP.0.0.0 :       Tally,  1;  #   1
  426. XSourcePeerType & 255 = DECnet :        Pushto,  6;  #   2
  427. XSourcePeerType & 255 = EtherTalk :     Pushto, 11;  #   3
  428. XSourcePeerType & 255 = Novell :         Tally,  6;  #   4
  429. XNull & 0 = 0 :                        Succeed,  0;  #   5  Ignore
  430. X#
  431. XSourceDetailType & 255 = 38 : Tally,  2;  #   6  Tally DECnet data by host
  432. XSourceDetailType & 255 =  6 : Tally,  2;  #   7
  433. XSourceDetailType & 255 = 46 : Tally,  2;  #   8
  434. XSourceDetailType & 255 = 14 : Tally,  2;  #   9
  435. XNull & 0 = 0 :                Tally,  3;  #  10  Tally rest of DECnet by detail
  436. X#
  437. XSourceDetailType & 255 =  3 : Tally,  4;  #  11  Tally AT data by host
  438. XNull & 0 = 0 :                Tally,  5;  #  12  Tally rest of AT by detail
  439. X#
  440. XACTIONS
  441. X#
  442. XSourcePeerType=IP,                     #  1  Tally IP by subnet and port
  443. X   SourcePeerMask=255.255.255.0, DestPeerMask=255.255.255.0,
  444. X   SourceDetailTypeMask=255,
  445. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  446. X#
  447. XSourcePeerType=DECnet,                 #  2 Tally DECnet data by host
  448. X   SourcePeerMask=255.255.255.0, DestPeerMask=255.255.255.0,
  449. X   SourceDetailTypeMask=255;
  450. XSourcePeerType=DECnet,                 #  3 Tally DECnet by protocol
  451. X   SourceDetailTypeMask=255;
  452. X#
  453. XSourcePeerType=EtherTalk,              #  4 Tally Ethertalk data by host
  454. X   SourcePeerMask=255.255.255.0, DestPeerMask=255.255.255.0,
  455. X   SourceDetailTypeMask=255;  
  456. XSourcePeerType=EtherTalk,              #  5 Tally Ethertalk by DDP type
  457. X   SourceDetailTypeMask=255;  
  458. X#
  459. XSourcePeerType=Novell,                 #  6  Tally IPX by network nbr and port
  460. X   SourcePeerMask=255.255.255.255, DestPeerMask=255.255.255.255,
  461. X   SourceDetailTypeMask=255,
  462. X   SourceDetailMask=255.255, DestDetailMask=255.255;
  463. X#
  464. XSTATISTICS
  465. X#
  466. XFORMAT FlowRuleSet FlowIndex FirstTime "  "
  467. X   SourcePeerType SourcePeerAddress DestPeerAddress "  "
  468. X   SourceDetailType SourceDetailAddress DestDetailAddress "  "
  469. X   ToPDUs FromPDUs "  " ToOctets FromOctets;
  470. X#
  471. X# end of file
  472. END_OF_FILE
  473.   if test 2170 -ne `wc -c <'netramet/examples/rules.lan'`; then
  474.     echo shar: \"'netramet/examples/rules.lan'\" unpacked with wrong size!
  475.   fi
  476.   # end of 'netramet/examples/rules.lan'
  477. fi
  478. if test -f 'netramet/pc/wattcp.cfg.UU' -a "${1}" != "-c" ; then 
  479.   echo shar: Will not clobber existing file \"'netramet/pc/wattcp.cfg.UU'\"
  480. else
  481.   echo shar: Extracting \"'netramet/pc/wattcp.cfg.UU'\" \(1015 characters\)
  482.   sed "s/^X//" >'netramet/pc/wattcp.cfg.UU' <<'END_OF_FILE'
  483. Xbegin 640 netramet/pc/wattcp.cfg
  484. XM(" @(" @(" C('-E="!I<"!N=6UB97(*(" @(" @("!M>5]I<#TQ,C,N,3(S
  485. XM+C$R,RXQ,C,*(" @(" @(" C(&]R(&9O<B!B;V]T<"!S970@;7E?:7 ]8F]O
  486. XM=' *"B @(" @(" @(R!S970@82!N;VXM>F5R;R!N971W;W)K(&UA<VL*(" @
  487. XM(" @("!N971M87-K/3(U-2XR-34N,C4U+C *"B @(" @(" @(R!E;G1E<B!O
  488. XM;F4@;W(@;6]R92!N86UE<V5R=F5R<PH@(" @(" @(&YA;65S97)V97(],3(S
  489. XM+C$R,RXQ+C(*"B @(" @(" @(R!E;G1E<B!O;F4@;W(@;6]R92!G871E=V%Y
  490. XM<PH@(" @(" @(&=A=&5W87D],3(S+C$R,RXQ+C(U- H*(" @(" @(" C('-H
  491. XM;W5L9"!H879E(&$@9&]M86EN(&QI<W0*"61O;6%I;G-L:7-T/2)A=6-K;&%N
  492. XM9"YA8RYN>B(*"B @(" @(" @(R!O<'1I;VYA;"!I;F%C=&EV92!F;&%G('1E
  493. XM;&QS(%=!5%1#4"!T;R!K:6QL(&-O;FYE8W1I;VX@:68@;F]T:&EN9PH@(" @
  494. XM(" @(",@:&%P<&5N<R!F;W(@82!P97)I;V0@;V8@=&EM92!I;B!S96-O;F1S
  495. XM"B @(" @(" @(R!E9RX@:6YA8W1I=F4],S P(" @(",@,S P('-E8V]N9',@
  496. XM;W(@-2!M:6YU=&5S"@H@(" @(" @(",@9&5F:6YE('1I;65O=70@9F]R(&UO
  497. XM<W0@=&AI;F=S+"!L:6ME(&]P96YI;F<@<V5S<VEO;G,*(" @(" @(" C(&1E
  498. XM9F%U;'1S('1O(#,P('-E8V]N9',*(" @(" @(" C(&5G+B!S;V-K9&5L87D]
  499. XA-C @(" @(R!E>'1E;F0@:70@=&\@;VYE(&UI;G5T90H:
  500. Xend
  501. END_OF_FILE
  502.   if test 1015 -ne `wc -c <'netramet/pc/wattcp.cfg.UU'`; then
  503.     echo shar: \"'netramet/pc/wattcp.cfg.UU'\" unpacked with wrong size!
  504.   else
  505.     echo shar: Uudecoding \"'netramet/pc/wattcp.cfg'\" \(708 characters\)
  506.     cat netramet/pc/wattcp.cfg.UU | uudecode
  507.     if test 708 -ne `wc -c <'netramet/pc/wattcp.cfg'`; then
  508.       echo shar: \"'netramet/pc/wattcp.cfg'\" uudecoded with wrong size!
  509.     else
  510.       rm netramet/pc/wattcp.cfg.UU
  511.     fi
  512.   fi
  513.   # end of 'netramet/pc/wattcp.cfg.UU'
  514. fi
  515. if test -f 'netramet/sg/manager/Makefile' -a "${1}" != "-c" ; then 
  516.   echo shar: Will not clobber existing file \"'netramet/sg/manager/Makefile'\"
  517. else
  518.   echo shar: Extracting \"'netramet/sg/manager/Makefile'\" \(837 characters\)
  519.   sed "s/^X//" >'netramet/sg/manager/Makefile' <<'END_OF_FILE'
  520. X#
  521. X#  Makefile for NeMaC
  522. X#
  523. X#  Nevil Brownlee, Computer Centre, UNiversity of Auckland
  524. X#
  525. X
  526. XSRC= ../../src/manager
  527. XSINCLUDE= ../../src/snmplib/include
  528. XNINCLUDE= ../../src/manager/include
  529. X
  530. XSNMPH = $(SINCLUDE)/asn1.h $(SINCLUDE)/mib.h $(SINCLUDE)/parse.h \
  531. X    $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpapi.h \
  532. X    $(SINCLUDE)/snmpclnt.h $(SINCLUDE)/snmpimpl.h
  533. X
  534. XTARG=     NeMaC
  535. X
  536. XLIBS=    ../snmplib/libsnmp.a
  537. X
  538. XCFLAGS=    -g -I$(NINCLUDE) -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT
  539. X
  540. X
  541. Xall: $(TARG)
  542. X
  543. Xnmc.o:    $(SNMPH) $(SRC)/nmc.c
  544. X    ${CC} $(CFLAGS) -c $(SRC)/nmc.c
  545. X
  546. Xnmc_pars.o:    $(SNMPH) $(SRC)/nmc_pars.c
  547. X    ${CC} $(CFLAGS) -c $(SRC)/nmc_pars.c
  548. X
  549. Xnmc_snmp.o:    $(SNMPH) $(SRC)/nmc_snmp.c
  550. X    ${CC} $(CFLAGS) -c $(SRC)/nmc_snmp.c
  551. X
  552. XNeMaC:    nmc.o nmc_pars.o nmc_snmp.o ${LIBS}
  553. X    ${CC} -o $@ nmc.o nmc_pars.o nmc_snmp.o ${LIBS}
  554. X
  555. X
  556. Xclean:
  557. X    rm -f *.o ${TARG}
  558. X
  559. Xinstall:
  560. X    cp ${TARG} ../bin
  561. END_OF_FILE
  562.   if test 837 -ne `wc -c <'netramet/sg/manager/Makefile'`; then
  563.     echo shar: \"'netramet/sg/manager/Makefile'\" unpacked with wrong size!
  564.   fi
  565.   # end of 'netramet/sg/manager/Makefile'
  566. fi
  567. if test -f 'netramet/sg/snmplib/Makefile' -a "${1}" != "-c" ; then 
  568.   echo shar: Will not clobber existing file \"'netramet/sg/snmplib/Makefile'\"
  569. else
  570.   echo shar: Extracting \"'netramet/sg/snmplib/Makefile'\" \(1537 characters\)
  571.   sed "s/^X//" >'netramet/sg/snmplib/Makefile' <<'END_OF_FILE'
  572. X#
  573. X# Makefile for snmplib.
  574. X#
  575. X# Modified by Nevil Brownlee, Auckland University
  576. X#    Silicon Grpahics version
  577. X#
  578. X
  579. XTARG=libsnmp.a
  580. X
  581. XSRC=    ../../src/snmplib
  582. XSINCLUDE= ../../src/snmplib/include
  583. X
  584. XOBJS=    asn1.o mib.o parse.o snmp.o snmpapi.o snmpauth.o snmpclnt.o
  585. X
  586. XCFLAGS= -g -cckr -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT
  587. X#CFLAGS= -g -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT
  588. X
  589. Xall: $(TARG)
  590. X
  591. Xasn1.o: $(SINCLUDE)/asn1.h $(SRC)/asn1.c
  592. X    cc $(CFLAGS) -c $(SRC)/asn1.c
  593. X
  594. Xmib.o:    $(SINCLUDE)/asn1.h $(SINCLUDE)/snmpimpl.h $(SINCLUDE)/snmpapi.h \
  595. X       $(SINCLUDE)/parse.h $(SRC)/mib.c
  596. X    cc $(CFLAGS) -c $(SRC)/mib.c
  597. X
  598. Xparse.o: $(SINCLUDE)/parse.h $(SRC)/parse.c
  599. X    cc $(CFLAGS) -c $(SRC)/parse.c
  600. X
  601. Xsnmp.o:    $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  602. X       $(SINCLUDE)/mib.h $(SRC)/snmp.c
  603. X    cc $(CFLAGS) -c $(SRC)/snmp.c
  604. X
  605. Xsnmpapi.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  606. X       $(SINCLUDE)/snmpapi.h $(SRC)/snmpapi.c
  607. X    cc $(CFLAGS) -c $(SRC)/snmpapi.c
  608. X
  609. Xsnmpauth.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  610. X       $(SRC)/snmpauth.c
  611. X    cc $(CFLAGS) -c $(SRC)/snmpauth.c
  612. X
  613. Xsnmpclnt.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  614. X       $(SINCLUDE)/snmpapi.h $(SINCLUDE)/snmpclnt.h \
  615. X       $(SRC)/snmpclnt.c
  616. X    cc $(CFLAGS) -c $(SRC)/snmpclnt.c
  617. X
  618. X
  619. Xlibsnmp.a:    ${OBJS}
  620. X    ar r libsnmp.a ${OBJS}
  621. X#    ranlib libsnmp.a
  622. X
  623. Xinstall:    ../lib/libsnmp.a
  624. X
  625. X#../lib/libsnmp.a:    libsnmp.a
  626. X#    cp libsnmp.a ../lib
  627. X#    ranlib ../lib/libsnmp.a
  628. X
  629. X
  630. Xlint:
  631. X    lint -nhx $(CSRCS)
  632. X
  633. Xclean:
  634. X    rm -f ${OBJS} ${TARG}
  635. X#    rm -f ../lib/${TARG}
  636. X
  637. END_OF_FILE
  638.   if test 1537 -ne `wc -c <'netramet/sg/snmplib/Makefile'`; then
  639.     echo shar: \"'netramet/sg/snmplib/Makefile'\" unpacked with wrong size!
  640.   fi
  641.   # end of 'netramet/sg/snmplib/Makefile'
  642. fi
  643. if test -f 'netramet/src/apps/kernel.c' -a "${1}" != "-c" ; then 
  644.   echo shar: Will not clobber existing file \"'netramet/src/apps/kernel.c'\"
  645. else
  646.   echo shar: Extracting \"'netramet/src/apps/kernel.c'\" \(672 characters\)
  647.   sed "s/^X//" >'netramet/src/apps/kernel.c' <<'END_OF_FILE'
  648. X
  649. X#include <sys/types.h>
  650. X#include <stdio.h>
  651. X
  652. Xstatic int kmem;
  653. Xint swap, mem;
  654. X
  655. Xinit_kmem(file)
  656. X    char *file;
  657. X{
  658. X    kmem = open(file, 0);
  659. X    if (kmem < 0){
  660. X    fprintf(stderr, "cannot open ");
  661. X    perror(file);
  662. X    exit(1);
  663. X    }
  664. X#ifdef ibm032
  665. X    mem = open("/dev/mem");    
  666. X    if (mem < 0){
  667. X    fprintf(stderr, "cannot open ");
  668. X    perror(file);
  669. X    exit(1);
  670. X    }
  671. X    swap = open("/dev/drum");
  672. X    if (swap < 0){
  673. X    fprintf(stderr, "cannot open ");
  674. X    perror(file);
  675. X    exit(1);
  676. X    }
  677. X#endif
  678. X}
  679. X
  680. X/*
  681. X * Seek into the kernel for a value.
  682. X */
  683. Xoff_t
  684. Xklseek(base)
  685. X    off_t base;
  686. X{
  687. X    return (lseek(kmem, base, 0));
  688. X}
  689. X
  690. Xklread(buf, buflen)
  691. X    char *buf;
  692. X    int buflen;
  693. X{
  694. X    read(kmem, buf, buflen);
  695. X}
  696. X
  697. END_OF_FILE
  698.   if test 672 -ne `wc -c <'netramet/src/apps/kernel.c'`; then
  699.     echo shar: \"'netramet/src/apps/kernel.c'\" unpacked with wrong size!
  700.   fi
  701.   # end of 'netramet/src/apps/kernel.c'
  702. fi
  703. if test -f 'netramet/src/snmplib/include/parse.h' -a "${1}" != "-c" ; then 
  704.   echo shar: Will not clobber existing file \"'netramet/src/snmplib/include/parse.h'\"
  705. else
  706.   echo shar: Extracting \"'netramet/src/snmplib/include/parse.h'\" \(2568 characters\)
  707.   sed "s/^X//" >'netramet/src/snmplib/include/parse.h' <<'END_OF_FILE'
  708. X/***********************************************************
  709. X    Copyright 1989 by Carnegie Mellon University
  710. X
  711. X                      All Rights Reserved
  712. X
  713. XPermission to use, copy, modify, and distribute this software and its 
  714. Xdocumentation for any purpose and without fee is hereby granted, 
  715. Xprovided that the above copyright notice appear in all copies and that
  716. Xboth that copyright notice and this permission notice appear in 
  717. Xsupporting documentation, and that the name of CMU not be
  718. Xused in advertising or publicity pertaining to distribution of the
  719. Xsoftware without specific, written prior permission.  
  720. X
  721. XCMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  722. XALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  723. XCMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  724. XANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  725. XWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  726. XARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  727. XSOFTWARE.
  728. X******************************************************************/
  729. X/*
  730. X * parse.h
  731. X */
  732. X
  733. X/*
  734. X * A linked list of tag-value pairs for enumerated integers.
  735. X */
  736. Xstruct enum_list {
  737. X    struct enum_list *next;
  738. X    int    value;
  739. X    char *label;
  740. X};
  741. X
  742. X/*
  743. X * A linked list of nodes.
  744. X */
  745. Xstruct node {
  746. X    struct node *next;
  747. X    char label[32]; /* This node's (unique) textual name */
  748. X    u_long  subid;  /* This node's integer subidentifier */
  749. X    char parent[32];/* The parent's textual name */
  750. X    int type;        /* The type of object this represents */
  751. X    struct enum_list *enums;    /* (optional) list of enumerated integers (otherwise NULL) */
  752. X};
  753. X
  754. X/*
  755. X * A tree in the format of the tree structure of the MIB.
  756. X */
  757. Xstruct tree {
  758. X    struct tree *child_list;    /* list of children of this node */
  759. X    struct tree *next_peer;    /* Next node in list of peers */
  760. X    struct tree *parent;
  761. X    char label[32];        /* This node's textual name */
  762. X    u_long subid;        /* This node's integer subidentifier */
  763. X    int type;            /* This node's object type */
  764. X    struct enum_list *enums;    /* (optional) list of enumerated integers (otherwise NULL) */
  765. X    void (*printer)();     /* Value printing function */
  766. X};
  767. X
  768. X/* non-aggregate types for tree end nodes */
  769. X#define TYPE_OTHER        0
  770. X#define TYPE_OBJID        1
  771. X#define TYPE_OCTETSTR        2
  772. X#define TYPE_INTEGER        3
  773. X#define TYPE_NETADDR        4
  774. X#define    TYPE_IPADDR        5
  775. X#define TYPE_COUNTER        6
  776. X#define TYPE_GAUGE        7
  777. X#define TYPE_TIMETICKS        8
  778. X#define TYPE_OPAQUE        9
  779. X#define TYPE_NULL        10
  780. X
  781. Xstruct tree *read_mib();
  782. X
  783. END_OF_FILE
  784.   if test 2568 -ne `wc -c <'netramet/src/snmplib/include/parse.h'`; then
  785.     echo shar: \"'netramet/src/snmplib/include/parse.h'\" unpacked with wrong size!
  786.   fi
  787.   # end of 'netramet/src/snmplib/include/parse.h'
  788. fi
  789. if test -f 'netramet/src/snmplib/include/snmp.h' -a "${1}" != "-c" ; then 
  790.   echo shar: Will not clobber existing file \"'netramet/src/snmplib/include/snmp.h'\"
  791. else
  792.   echo shar: Extracting \"'netramet/src/snmplib/include/snmp.h'\" \(2082 characters\)
  793.   sed "s/^X//" >'netramet/src/snmplib/include/snmp.h' <<'END_OF_FILE'
  794. X/*
  795. X * Definitions for the Simple Network Management Protocol (RFC 1067).
  796. X *
  797. X *
  798. X */
  799. X/***********************************************************
  800. X    Copyright 1988, 1989 by Carnegie Mellon University
  801. X
  802. X                      All Rights Reserved
  803. X
  804. XPermission to use, copy, modify, and distribute this software and its 
  805. Xdocumentation for any purpose and without fee is hereby granted, 
  806. Xprovided that the above copyright notice appear in all copies and that
  807. Xboth that copyright notice and this permission notice appear in 
  808. Xsupporting documentation, and that the name of CMU not be
  809. Xused in advertising or publicity pertaining to distribution of the
  810. Xsoftware without specific, written prior permission.  
  811. X
  812. XCMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  813. XALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  814. XCMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  815. XANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  816. XWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  817. XARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  818. XSOFTWARE.
  819. X******************************************************************/
  820. X
  821. X#define SNMP_PORT        161
  822. X#define SNMP_TRAP_PORT        162
  823. X
  824. X#define SNMP_MAX_LEN        484
  825. X
  826. X#define SNMP_VERSION_1        0
  827. X
  828. X#define GET_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x0)
  829. X#define GETNEXT_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x1)
  830. X#define GET_RSP_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x2)
  831. X#define SET_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x3)
  832. X#define TRP_REQ_MSG        (ASN_CONTEXT | ASN_CONSTRUCTOR | 0x4)
  833. X
  834. X#define SNMP_ERR_NOERROR    (0x0)
  835. X#define SNMP_ERR_TOOBIG        (0x1)
  836. X#define SNMP_ERR_NOSUCHNAME (0x2)
  837. X#define SNMP_ERR_BADVALUE   (0x3)
  838. X#define SNMP_ERR_READONLY   (0x4)
  839. X#define SNMP_ERR_GENERR        (0x5)
  840. X
  841. X#define SNMP_TRAP_COLDSTART        (0x0)
  842. X#define SNMP_TRAP_WARMSTART        (0x1)
  843. X#define SNMP_TRAP_LINKDOWN        (0x2)
  844. X#define SNMP_TRAP_LINKUP        (0x3)
  845. X#define SNMP_TRAP_AUTHFAIL        (0x4)
  846. X#define SNMP_TRAP_EGPNEIGHBORLOSS    (0x5)
  847. X#define SNMP_TRAP_ENTERPRISESPECIFIC    (0x6)
  848. X
  849. END_OF_FILE
  850.   if test 2082 -ne `wc -c <'netramet/src/snmplib/include/snmp.h'`; then
  851.     echo shar: \"'netramet/src/snmplib/include/snmp.h'\" unpacked with wrong size!
  852.   fi
  853.   # end of 'netramet/src/snmplib/include/snmp.h'
  854. fi
  855. if test -f 'netramet/src/snmplib/include/snmpclnt.h' -a "${1}" != "-c" ; then 
  856.   echo shar: Will not clobber existing file \"'netramet/src/snmplib/include/snmpclnt.h'\"
  857. else
  858.   echo shar: Extracting \"'netramet/src/snmplib/include/snmpclnt.h'\" \(1453 characters\)
  859.   sed "s/^X//" >'netramet/src/snmplib/include/snmpclnt.h' <<'END_OF_FILE'
  860. X/*
  861. X * snmp_client.h
  862. X */
  863. X/***********************************************************
  864. X    Copyright 1988, 1989 by Carnegie Mellon University
  865. X
  866. X                      All Rights Reserved
  867. X
  868. XPermission to use, copy, modify, and distribute this software and its 
  869. Xdocumentation for any purpose and without fee is hereby granted, 
  870. Xprovided that the above copyright notice appear in all copies and that
  871. Xboth that copyright notice and this permission notice appear in 
  872. Xsupporting documentation, and that the name of CMU not be
  873. Xused in advertising or publicity pertaining to distribution of the
  874. Xsoftware without specific, written prior permission.  
  875. X
  876. XCMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  877. XALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  878. XCMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  879. XANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  880. XWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  881. XARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  882. XSOFTWARE.
  883. X******************************************************************/
  884. Xstruct synch_state {
  885. X    int    waiting;
  886. X    int status;
  887. X/* status codes */
  888. X#define STAT_SUCCESS    0
  889. X#define STAT_ERROR    1
  890. X#define STAT_TIMEOUT 2
  891. X    int reqid;
  892. X    struct snmp_pdu *pdu;
  893. X};
  894. X
  895. Xextern struct synch_state snmp_synch_state;
  896. X
  897. Xstruct snmp_pdu    *snmp_pdu_create();
  898. Xstruct snmp_pdu *snmp_fix_pdu();
  899. Xchar *snmp_errstring();
  900. END_OF_FILE
  901.   if test 1453 -ne `wc -c <'netramet/src/snmplib/include/snmpclnt.h'`; then
  902.     echo shar: \"'netramet/src/snmplib/include/snmpclnt.h'\" unpacked with wrong size!
  903.   fi
  904.   # end of 'netramet/src/snmplib/include/snmpclnt.h'
  905. fi
  906. if test -f 'netramet/sun/apps/Makefile' -a "${1}" != "-c" ; then 
  907.   echo shar: Will not clobber existing file \"'netramet/sun/apps/Makefile'\"
  908. else
  909.   echo shar: Extracting \"'netramet/sun/apps/Makefile'\" \(2704 characters\)
  910.   sed "s/^X//" >'netramet/sun/apps/Makefile' <<'END_OF_FILE'
  911. X# Modified by Nevil Brownlee, Auckland University
  912. X#    SunOS version
  913. X#
  914. X# Makefile for snmpget, manager, snmpgetnext, collect, snmpwalk, snmpstatus, snmptest snmptrap snmptrapd snmpd
  915. X#
  916. X
  917. XSRC=    ../../src/apps
  918. XSINCLUDE= ../../src/snmplib/include
  919. X
  920. XSNMPH = $(SINCLUDE)/asn1.h $(SINCLUDE)/mib.h $(SINCLUDE)/parse.h \
  921. X    $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpapi.h \
  922. X    $(SINCLUDE)/snmpclnt.h $(SINCLUDE)/snmpimpl.h 
  923. X
  924. XTARG=    snmpagnt.o snmptest \
  925. X#    snmpget snmpgetnext snmpwalk snmpstatus \
  926. X#    snmptrap snmptrapd
  927. X#    snmptest snmptrap snmptrapd \
  928. X#    snmpd
  929. X
  930. XLIBS=    ../snmplib/libsnmp.a
  931. X
  932. XCC= acc  #  Sun ANSI C compiler
  933. XCFLAGS=    -g -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT -DSUNOS
  934. X
  935. X
  936. Xall: $(TARG)
  937. X
  938. X
  939. Xsnmptest.o:  $(SNMPH) $(SRC)/snmptest.c
  940. X    ${CC} $(CFLAGS) -c $(SRC)/snmptest.c
  941. X
  942. Xsnmptest:    snmptest.o ${LIBS}
  943. X    ${CC} -o $@ snmptest.o ${LIBS}
  944. X
  945. X
  946. Xsnmptrap.o:  $(SNMPH) $(SRC)/snmptrap.c
  947. X    ${CC} $(CFLAGS) -c $(SRC)/snmptrap.c
  948. X
  949. Xsnmptrap:    snmptrap.o ${LIBS}
  950. X    ${CC} -o $@ snmptrap.o  ${LIBS}
  951. X
  952. X
  953. Xsnmptrapd.o:  $(SNMPH) $(SRC)/snmptrapd.c
  954. X    ${CC} $(CFLAGS) -c $(SRC)/snmptrapd.c
  955. X
  956. Xsnmptrapd:    snmptrapd.o ${LIBS}
  957. X    ${CC} -o $@ snmptrapd.o ${LIBS}
  958. X
  959. X
  960. Xsnmpget.o:  $(SNMPH) $(SRC)/snmpget.c
  961. X    ${CC} $(CFLAGS) -c $(SRC)/snmpget.c
  962. X
  963. Xsnmpget:    snmpget.o ${LIBS}
  964. X    ${CC} -o $@ snmpget.o ${LIBS}
  965. X
  966. X
  967. X#manager.o:  $(SNMPH) $(SRC)/manager.c
  968. X#    ${CC} $(CFLAGS) -c $(SRC)/manager.c
  969. X
  970. X#manager:    manager.o ${LIBS}
  971. X#    ${CC} -o $@ manager.o ${LIBS}
  972. X
  973. X
  974. X#monitor.o:  $(SNMPH) $(SRC)/monitor.c
  975. X#    ${CC} $(CFLAGS) -c $(SRC)/monitor.c
  976. X
  977. X#monitor:    monitor.o ${LIBS}
  978. X#    ${CC} -o $@ monitor.o ${LIBS}
  979. X
  980. X
  981. Xsnmpgetnext.o:  $(SNMPH) $(SRC)/snmpgetnext.c
  982. X    ${CC} $(CFLAGS) -c $(SRC)/snmpgetnext.c
  983. X
  984. Xsnmpgetnext:    snmpgetnext.o ${LIBS}
  985. X    ${CC} -o $@ snmpgetnext.o ${LIBS}
  986. X
  987. X
  988. X#collect:    collect.o ${LIBS}
  989. X#    ${CC} -o $@ collect.o ${LIBS}
  990. X
  991. X
  992. Xsnmpwalk.o:  $(SNMPH) $(SRC)/snmpwalk.c
  993. X    ${CC} $(CFLAGS) -c $(SRC)/snmpwalk.c
  994. X
  995. Xsnmpwalk:    snmpwalk.o ${LIBS}
  996. X    ${CC} -o $@ snmpwalk.o ${LIBS}
  997. X
  998. X
  999. Xsnmpstatus.o:  $(SNMPH) $(SRC)/snmpstatus.c
  1000. X    ${CC} $(CFLAGS) -c $(SRC)/snmpstatus.c
  1001. X
  1002. Xsnmpstatus:    snmpstatus.o ${LIBS}
  1003. X    ${CC} -o $@ snmpstatus.o ${LIBS}
  1004. X
  1005. X
  1006. X# snmpd.o:  $(SNMPH) $(SRC)/snmpd.c
  1007. X#    ${CC} $(CFLAGS) -c $(SRC)/snmpd.c
  1008. X
  1009. X# kernel.o:  $(SNMPH) $(SRC)/kernel.c
  1010. X#    ${CC} $(CFLAGS) -c $(SRC)/kernel.c
  1011. X
  1012. Xsnmpagnt.o:  $(SNMPH) $(SRC)/snmpagnt.c
  1013. X    ${CC} $(CFLAGS) -c $(SRC)/snmpagnt.c
  1014. X
  1015. X# snmp_vars.o:  $(SNMPH) $(SRC)/snmp_vars.c
  1016. X#    ${CC} $(CFLAGS) -c $(SRC)/snmp_vars.c
  1017. X
  1018. X# snmp_var_route.o:  $(SNMPH) $(SRC)/snmp_var_route.c
  1019. X#    ${CC} $(CFLAGS) -c $(SRC)/snmp_var_route.c
  1020. X
  1021. X# snmpd:    snmpd.o kernel.o snmpagnt.o snmp_vars.o snmp_var_route.o ${LIBS}
  1022. X#    ${CC} -o $@ snmpd.o kernel.o snmpagnt.o snmp_vars.o \
  1023. X#        snmp_var_route.o   ${LIBS}
  1024. X
  1025. X
  1026. Xclean:
  1027. X    rm -f *.o ${TARG}
  1028. X
  1029. Xinstall:
  1030. X    cp ${TARG} ../bin
  1031. X
  1032. X
  1033. END_OF_FILE
  1034.   if test 2704 -ne `wc -c <'netramet/sun/apps/Makefile'`; then
  1035.     echo shar: \"'netramet/sun/apps/Makefile'\" unpacked with wrong size!
  1036.   fi
  1037.   # end of 'netramet/sun/apps/Makefile'
  1038. fi
  1039. if test -f 'netramet/sun/apps/snmpnetstat/Makefile' -a "${1}" != "-c" ; then 
  1040.   echo shar: Will not clobber existing file \"'netramet/sun/apps/snmpnetstat/Makefile'\"
  1041. else
  1042.   echo shar: Extracting \"'netramet/sun/apps/snmpnetstat/Makefile'\" \(1552 characters\)
  1043.   sed "s/^X//" >'netramet/sun/apps/snmpnetstat/Makefile' <<'END_OF_FILE'
  1044. X# Modified by Nevil Brownlee, Auckland University
  1045. X#    SunOS  version
  1046. X#
  1047. X#
  1048. X# Copyright (c) 1987 Regents of the University of California.
  1049. X# All rights reserved.
  1050. X#
  1051. X# Redistribution and use in source and binary forms are permitted
  1052. X# provided that the above copyright notice and this paragraph are
  1053. X# duplicated in all such forms and that any documentation,
  1054. X# advertising materials, and other materials related to such
  1055. X# distribution and use acknowledge that the software was developed
  1056. X# by the University of California, Berkeley.  The name of the
  1057. X# University may not be used to endorse or promote products derived
  1058. X# from this software without specific prior written permission.
  1059. X# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  1060. X# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  1061. X# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  1062. X#
  1063. X#    @(#)Makefile    5.10 (Berkeley) 9/20/88
  1064. X#
  1065. XSINCLUDE= ../../../src/snmplib/include
  1066. X
  1067. XCC= acc  # Sun ANSII compiler
  1068. XCFLAGS=     -g -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT
  1069. X
  1070. XLIBS=    ../../snmplib/libsnmp.a
  1071. X
  1072. XSRC=    ../../../src/apps/snmpnetstat
  1073. X
  1074. XSRCS=    ${SRC}/inet.c ${SRC}/if.c ${SRC}/main.c ${SRC}/route.c 
  1075. XOBJS=    ${SRC}/inet.o ${SRC}/if.o ${SRC}/main.o ${SRC}/route.o
  1076. X
  1077. Xall: snmpnetstat
  1078. X
  1079. Xsnmpnetstat: ${SRCS} ${LIBS}
  1080. X    ${CC} -o $@ ${CFLAGS} ${SRCS} ${LIBS}
  1081. X
  1082. Xclean:
  1083. X    rm -f ${OBJS} core snmpnetstat
  1084. X
  1085. Xcleandir: clean
  1086. X    rm -f ${MAN} tags .depend
  1087. X
  1088. Xdepend: ${SRCS}
  1089. X    mkdep ${CFLAGS} ${SRCS}
  1090. X
  1091. Xlint: ${SRCS}
  1092. X    lint ${CFLAGS} ${SRCS}
  1093. X
  1094. Xtags: ${SRCS}
  1095. X    ctags ${SRCS}
  1096. X
  1097. Xinstall:
  1098. X    cp snmpnetstat ../../bin
  1099. X
  1100. END_OF_FILE
  1101.   if test 1552 -ne `wc -c <'netramet/sun/apps/snmpnetstat/Makefile'`; then
  1102.     echo shar: \"'netramet/sun/apps/snmpnetstat/Makefile'\" unpacked with wrong size!
  1103.   fi
  1104.   # end of 'netramet/sun/apps/snmpnetstat/Makefile'
  1105. fi
  1106. if test -f 'netramet/sun/meter/Makefile' -a "${1}" != "-c" ; then 
  1107.   echo shar: Will not clobber existing file \"'netramet/sun/meter/Makefile'\"
  1108. else
  1109.   echo shar: Extracting \"'netramet/sun/meter/Makefile'\" \(956 characters\)
  1110.   sed "s/^X//" >'netramet/sun/meter/Makefile' <<'END_OF_FILE'
  1111. X#
  1112. X# Makefile flowd
  1113. X#
  1114. X
  1115. XSRC=        ../../src/meter
  1116. XSINCLUDE=     ../../src/snmplib/include
  1117. XMINCLUDE=    ../../src/meter/include
  1118. X
  1119. XSNMPH = $(SINCLUDE)/ausnmp.h \
  1120. X    $(SINCLUDE)/asn1.h $(SINCLUDE)/mib.h \
  1121. X    $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h
  1122. X
  1123. XMETERH = $(MINCLUDE)/flowhash.h $(MINCLUDE)/met_vars.h \
  1124. X    $(MINCLUDE)/decnet.h $(MINCLUDE)/pktsnap.h
  1125. X
  1126. XTARG=    NeTraMet
  1127. X
  1128. XLIBS=    ../apps/snmpagnt.o ../snmplib/libsnmp.a
  1129. X
  1130. XCC= acc  #  Sun ANSI C compiler
  1131. XCFLAGS=    -g -I$(MINCLUDE) -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT -DSUNOS
  1132. X
  1133. X
  1134. Xall: $(TARG)
  1135. X
  1136. X
  1137. Xmeter_ux.o:  $(SNMPH) $(METERH) $(SRC)/meter_ux.c
  1138. X    ${CC} $(CFLAGS) -c $(SRC)/meter_ux.c
  1139. X
  1140. Xflowhash.o:    $(SNMPH) $(METERH) $(SRC)/flowhash.c
  1141. X    ${CC} $(CFLAGS) -c $(SRC)/flowhash.c
  1142. X
  1143. Xmet_vars.o:    $(SNMPH) $(METERH) $(SRC)/met_vars.c
  1144. X    ${CC} $(CFLAGS) -c $(SRC)/met_vars.c
  1145. X
  1146. X
  1147. XNeTraMet:    flowhash.o met_vars.o meter_ux.o ${LIBS}
  1148. X    ${CC} -o $@ meter_ux.o flowhash.o met_vars.o ${LIBS}
  1149. X
  1150. X
  1151. X  
  1152. Xclean:
  1153. X    rm -f *.o ${TARG}
  1154. X
  1155. Xinstall:
  1156. X    cp ${TARG} ../bin
  1157. X
  1158. X
  1159. X
  1160. X
  1161. END_OF_FILE
  1162.   if test 956 -ne `wc -c <'netramet/sun/meter/Makefile'`; then
  1163.     echo shar: \"'netramet/sun/meter/Makefile'\" unpacked with wrong size!
  1164.   fi
  1165.   # end of 'netramet/sun/meter/Makefile'
  1166. fi
  1167. if test -f 'netramet/sun/snmplib/Makefile' -a "${1}" != "-c" ; then 
  1168.   echo shar: Will not clobber existing file \"'netramet/sun/snmplib/Makefile'\"
  1169. else
  1170.   echo shar: Extracting \"'netramet/sun/snmplib/Makefile'\" \(1546 characters\)
  1171.   sed "s/^X//" >'netramet/sun/snmplib/Makefile' <<'END_OF_FILE'
  1172. X#
  1173. X# Makefile for snmplib.
  1174. X#
  1175. X# Modified by Nevil Brownlee, Auckland University
  1176. X#    SunOS version
  1177. X#
  1178. X
  1179. XTARG=libsnmp.a
  1180. X
  1181. XSRC=    ../../src/snmplib
  1182. XSINCLUDE= ../../src/snmplib/include
  1183. X
  1184. XOBJS=    asn1.o mib.o parse.o snmp.o snmpapi.o snmpauth.o snmpclnt.o \
  1185. X        snmp.o snmpapi.o
  1186. X
  1187. XCC= acc  #  Sun ANSI C compiler
  1188. XCFLAGS= -g -I$(SINCLUDE) -D_BSD_SIGNALS -D_BSD_COMPAT -DSUNOS
  1189. X
  1190. Xall: $(TARG)
  1191. X
  1192. Xasn1.o: $(SINCLUDE)/asn1.h $(SRC)/asn1.c
  1193. X    $(CC) $(CFLAGS) -c $(SRC)/asn1.c
  1194. X
  1195. Xmib.o:    $(SINCLUDE)/asn1.h $(SINCLUDE)/snmpimpl.h $(SINCLUDE)/snmpapi.h \
  1196. X       $(SINCLUDE)/parse.h $(SRC)/mib.c
  1197. X    $(CC) $(CFLAGS) -c $(SRC)/mib.c
  1198. X
  1199. Xparse.o: $(SINCLUDE)/parse.h $(SRC)/parse.c
  1200. X    $(CC) $(CFLAGS) -c $(SRC)/parse.c
  1201. X
  1202. Xsnmp.o:    $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  1203. X       $(SINCLUDE)/mib.h $(SRC)/snmp.c
  1204. X    $(CC) $(CFLAGS) -c $(SRC)/snmp.c
  1205. X
  1206. Xsnmpapi.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  1207. X       $(SINCLUDE)/snmpapi.h $(SRC)/snmpapi.c
  1208. X    $(CC) $(CFLAGS) -c $(SRC)/snmpapi.c
  1209. X
  1210. Xsnmpauth.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  1211. X       $(SRC)/snmpauth.c
  1212. X    $(CC) $(CFLAGS) -c $(SRC)/snmpauth.c
  1213. X
  1214. Xsnmpclnt.o: $(SINCLUDE)/asn1.h $(SINCLUDE)/snmp.h $(SINCLUDE)/snmpimpl.h \
  1215. X       $(SINCLUDE)/snmpapi.h $(SINCLUDE)/snmpclnt.h \
  1216. X       $(SRC)/snmpclnt.c
  1217. X    $(CC) $(CFLAGS) -c $(SRC)/snmpclnt.c
  1218. X
  1219. X
  1220. Xlibsnmp.a:    ${OBJS}
  1221. X    ar r libsnmp.a ${OBJS}
  1222. X    ranlib libsnmp.a
  1223. X
  1224. Xinstall:    ../lib/libsnmp.a
  1225. X
  1226. X#../lib/libsnmp.a:    libsnmp.a
  1227. X#    cp libsnmp.a ../lib
  1228. X#    ranlib ../lib/libsnmp.a
  1229. X
  1230. X
  1231. Xlint:
  1232. X    lint -nhx $(CSRCS)
  1233. X
  1234. Xclean:
  1235. X    rm -f ${OBJS} ${TARG}
  1236. X#    rm -f ../lib/${TARG}
  1237. X
  1238. END_OF_FILE
  1239.   if test 1546 -ne `wc -c <'netramet/sun/snmplib/Makefile'`; then
  1240.     echo shar: \"'netramet/sun/snmplib/Makefile'\" unpacked with wrong size!
  1241.   fi
  1242.   # end of 'netramet/sun/snmplib/Makefile'
  1243. fi
  1244. echo shar: End of archive 24 \(of 25\).
  1245. cp /dev/null ark24isdone
  1246. MISSING=""
  1247. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ; do
  1248.     if test ! -f ark${I}isdone ; then
  1249.     MISSING="${MISSING} ${I}"
  1250.     fi
  1251. done
  1252. if test "${MISSING}" = "" ; then
  1253.     echo You have unpacked all 25 archives.
  1254.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1255. else
  1256.     echo You still must unpack the following archives:
  1257.     echo "        " ${MISSING}
  1258. fi
  1259. exit 0
  1260. exit 0 # Just in case...
  1261.