"Fossies" - the Fresh Open Source Software Archive

Member "sawdog-2.4/services/snmp" (29 May 2006, 212 Bytes) of package /linux/privat/old/sawdog-2.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/expect -f
    2 
    3 # NTP Expect module for sawdog
    4 # You need ntpdate for this.
    5 
    6 set env(TERM) vt100
    7 
    8 set timeout 10
    9 match_max 100000
   10 
   11 spawn snmpwalk -On $argv -v1 -c ro
   12 expect "1.3.6." {
   13   exit 0
   14 } 
   15 exit 1
   16