SUMMARY: SunNet Manager Discover Tool

From: Ted Whitely (twhitely@tr1072.to.ford.com)
Date: Mon Jun 21 1993 - 19:15:20 CDT


The original posting was:

> Hi Managers,
>
> I am currently running SunNet Manager 2.0 on a Sun IPX running 4.1.3. Here at Ford, I have the tremendous
> task of updating the runtime database to reflect all nodes on our net. Unfortunately, we bring in new
> machines constantly and we have a vast number of subnets. Is it possible to run discover at intervals
> to search for new nodes on our net without running manually?
>
> Thanks in advance.

Thanks to all who have responded. The following was sent by glenn@unip.com.au and pjw@sma.usna.navy.MIL;

----- Begin Included Message -----

>From ups!uniq.com.au!glenn@warrane.connect.com.au Sun Jun 20 20:14:48 1993
Date: Mon, 21 Jun 93 08:20:46 EST
From: glenn@uniq.com.au (Glenn Satchell - Uniq Professional Services)
To: twhitely@tr1072.to.ford.com
Subject: Re: SunNet Manager Discover Tool.
Content-Length: 1694

Sure, have a look at the man page for snm-discover. You could run it
from cron at whatever period you liked. Note that you probably need to
put this into a script which cron runs. In the script set SNMHOME and
possibly the user SNMDBDIR (I thinkm, the manual is not around at the
moment to look this up).

Not that you need to run one copy of snm_discover for each subnet, eg:

#!/bin/sh
SNMHOME=/usr/snm
PATH=/usr/bin:/usr/ucb:$SNMHOME/bin
export PATH SNMHOME
for i in net1 net2 net3; do
    snm_discover $i &
done

regards,

--
Glenn Satchell                    glenn@uniq.com.au  | "When I die I want to go
Uniq Professional Services Pty Ltd  ACN 056 279 335  | peacefully in my sleep
PO Box 70, Paddington, NSW 2021, (Sydney) Australia  | like my Grandfather,
Phone 02 360 7434 Pager 016 287 000 Fax 02 331 2572  | not screaming like the
       "Sun Accredited System Consultants"           | passengers in his car."

----- End Included Message -----

----- Begin Included Message -----

>From pjw@sma.usna.navy.MIL Fri Jun 18 19:06:01 1993 Date: Fri, 18 Jun 93 19:06:42 EDT From: pjw@sma.usna.navy.MIL (Peter J. Welcher -- math FACULTY <pjw@sma.usna.navy.MIL>) To: twhitely@tr1072.to.ford.com Subject: Re: SunNet Manager Discover Tool. X-Sun-Charset: US-ASCII Content-Length: 909

You might note that SNM has a 1024 object limitation, so doing major discovers isn't all that useful.

However, if you do 'snm_discover -w -v' as root in a window, then ping new hosts (or otherwise send traffic to them), they automagically get passively discovered and put into the SNM database.

So it would be easy to combine this with a pinging script that pings hosts recently added to host tables (use diff to get the list), to automatically "notice" new hosts. Probably simpler than running discover on a whole bunch of subnets. ---------------------------------------------------------------------- Dr. Peter J. Welcher EMAIL: pjw@sma.usna.navy.MIL Mathematics Department, M/S 9E PHONE: (410) 267-3606 572 Holloway Road U.S. Naval Academy Annapolis, MD 21402-5002 FAX: (410) 267-4883 ----------------------------------------------------------------------

----- End Included Message -----

+------------------------------------------------------------------------+ |Ted Whitely Unix Tech. Support | |System Administrator Ford Motor Company | |TSD Systems Group Danou Technical Center | |Internet: twhitely@tr1072.to.ford.com 16630 Southfield Rd. | |Phone: (313) 390-5259 Allen Park, MI 48101 | |FAX #: U.S.A. | +------------------------------------------------------------------------+



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:57 CDT