Changeset 4745 in genesis


Ignore:
Timestamp:
Sep 14, 2005, 1:59:49 PM (19 years ago)
Author:
jorg
Message:

updated. snmpd.local.conf deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/wleiden-rick.pl

    r4317 r4745  
    264264
    265265
    266 
    267 sub snmpd_local_conf {
    268   my $output = genHeader("#");
    269   my $masterNotUsed = master_ipNotUsed();
    270   $output .=
    271   "# Location of the physical node.\n" .
    272   "#\n" .
    273   "syslocation \"$location\"\n" .
    274   "#\n" .
    275   "# Maintained by\n" .
    276   "syscontact \"$contact\"\n" .
    277   "\n";
    278 
    279   if( $DISK =~ /flash/i ) {
    280     $output .= "# Verify that disk is RO\n";
    281     $output .= "sh diskro /usr/local/sbin/diskro.sh\n\n";
    282   };
    283 
    284   $output .= "agentaddress 161,tcp:161\n";
    285 
    286   if( $masterNotUsed ) {
    287     $output .= "agentaddress $master_ip\n";
    288   };
    289  
    290   foreach my $if (keys %config) {
    291     if( $IP{$if} =~ /([0-9\.]+).*/ ) {
    292       $output .= "agentaddress $1\n";
    293     };
    294   };
    295   return($output);
    296 };
     266# JB: snmpd.local.conf was nodig voor ospf. kan weg.
     267#
     268#sub snmpd_local_conf {
     269#  my $output = genHeader("#");
     270#  my $masterNotUsed = master_ipNotUsed();
     271#  $output .=
     272#  "# Location of the physical node.\n" .
     273#  "#\n" .
     274#  "syslocation \"$location\"\n" .
     275#  "#\n" .
     276#  "# Maintained by\n" .
     277#  "syscontact \"$contact\"\n" .
     278#  "\n";
     279#
     280#  if( $DISK =~ /flash/i ) {
     281#    $output .= "# Verify that disk is RO\n";
     282#    $output .= "sh diskro /usr/local/sbin/diskro.sh\n\n";
     283#  };
     284#
     285#  $output .= "agentaddress 161,tcp:161\n";
     286#
     287#  if( $masterNotUsed ) {
     288#    $output .= "agentaddress $master_ip\n";
     289#  };
     290
     291#  foreach my $if (keys %config) {
     292#    if( $IP{$if} =~ /([0-9\.]+).*/ ) {
     293#      $output .= "agentaddress $1\n";
     294#    };
     295#  };
     296#  return($output);
     297#};
    297298
    298299
Note: See TracChangeset for help on using the changeset viewer.