mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	git-svn-id: http://www.observium.org/svn/observer/trunk@472 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			22 lines
		
	
	
		
			249 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			249 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/perl
 | 
						|
 | 
						|
sub getfiles {
 | 
						|
 | 
						|
opendir(DIR,".");
 | 
						|
 | 
						|
while($file = readdir(DIR)) {
 | 
						|
 | 
						|
if($file !~ /^\./) {
 | 
						|
 | 
						|
foreach $all ($file) {
 | 
						|
 | 
						|
system("snmpttconvertmib --in=$all --out=/etc/snmp/snmptt-d.conf");
 | 
						|
print "$all\n";
 | 
						|
}
 | 
						|
}
 | 
						|
}
 | 
						|
closedir(DIR);
 | 
						|
}
 | 
						|
 | 
						|
&getfiles; 
 |