head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2003.09.09.09.24.28;	author thl;	state dead;
branches;
next	1.2;

1.2
date	2003.09.01.15.37.49;	author rse;	state Exp;
branches;
next	1.1;

1.1
date	2003.09.01.15.22.41;	author rse;	state Exp;
branches;
next	;


desc
@@


1.3
log
@flush pending changes before tagging
@
text
@
SRCDIR      = `pwd`
OPENPKG     = /cw
RC          = $(OPENPKG)/etc/rc
SNMPGET     = $(OPENPKG)/bin/snmpget
SNMPWALK    = $(OPENPKG)/bin/snmpwalk
SNMPHOSTS   = dv1 dv6 dv9
SNMPMIBDIR  = $(SRCDIR)/snmpdx.mib:$(OPENPKG)/share/snmp/mibs
SNMPMIBNAME = snmpdx

restart:
	@@for host in $(SNMPHOSTS); do \
	    echo "==== $$host ===="; \
	    ssh -t root@@$$host "$(RC) snmp stop start"; \
	    $(SNMPGET) \
	        -M $(SNMPMIBDIR) -cpublic -v2c -mALL \
            $$host $(SNMPMIBNAME)::swOsName; \
	done

query:
	@@for host in $(SNMPHOSTS); do \
	    echo "==== $$host ===="; \
	    $(SNMPWALK) \
	        -M $(SNMPMIBDIR) -cpublic -v2c -mALL \
	        $$host $(SNMPMIBNAME); \
	done

@


1.2
log
@fix Makefile
@
text
@@


1.1
log
@genesis of OSSP snmpdx
@
text
@d6 1
a6 1
SNMPWALK    = $(OPENPKG)/bin/snmpget
@

