diff --git a/lustre/tests/acceptance-metadata-double.sh b/lustre/tests/acceptance-metadata-double.sh
index 9c9df63b17fb3ac0d5f6e8de2a9c8f4e1e09634f..6027db7bc38a6dafb3545e77b0cbd9c1875c7b9e 100644
--- a/lustre/tests/acceptance-metadata-double.sh
+++ b/lustre/tests/acceptance-metadata-double.sh
@@ -26,12 +26,12 @@ display_elapsed_time() {
 
 debug_client_on()
 {
-	echo -1 > /proc/sys/lnet/debug
+	lctl set_param -n debug=-1
 }
 
 debug_client_off()
 {
-	echo 0x3f0400 > /proc/sys/lnet/debug
+	lctl set_param -n debug=0x3f0400
 }
 
 MNT=${MNT:-/mnt/lustre}
diff --git a/lustre/tests/acceptance-metadata-single.sh b/lustre/tests/acceptance-metadata-single.sh
index ad927fab5dd65d94be697cccac7f2c0e35ce8b30..685f9f4c7d90d793bc90d63a147a27cb41087837 100644
--- a/lustre/tests/acceptance-metadata-single.sh
+++ b/lustre/tests/acceptance-metadata-single.sh
@@ -26,12 +26,12 @@ display_elapsed_time() {
 
 debug_client_on()
 {
-	echo -1 > /proc/sys/lnet/debug
+	lctl set_param -n debug=-1
 }
 
 debug_client_off()
 {
-	echo 0x3f0400 > /proc/sys/lnet/debug
+	lctl set_param -n debug=0x3f0400
 }
 
 MNT=${MNT:-/mnt/lustre}
diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh
index 20205d6036b6bc0b12ad1a422933b4eb56410171..a715d4a601932559e2e75567892e20da1cdb19db 100755
--- a/lustre/tests/acceptance-small.sh
+++ b/lustre/tests/acceptance-small.sh
@@ -140,7 +140,7 @@ for NAME in $CONFIGS; do
 		mkdir -p $BONDIR
 		$LFS setstripe -c -1 $BONDIR
 		sync
-		MIN=`cat /proc/fs/lustre/osc/*/kbytesavail | sort -n | head -n1`
+		MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
 		SPACE=$(( OSTCOUNT * MIN ))
 		[ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
 		log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
@@ -166,7 +166,7 @@ for NAME in $CONFIGS; do
 		mkdir -p $IOZDIR
 		$LFS setstripe -c -1 $IOZDIR
 		sync
-		MIN=`cat /proc/fs/lustre/osc/*/kbytesavail | sort -n | head -n1`
+		MIN=`lctl get_param -n osc.*.kbytesavail | sort -n | head -n1`
 		SPACE=$(( OSTCOUNT * MIN ))
 		[ $SPACE -lt $SIZE ] && SIZE=$((SPACE * 3 / 4))
 		log "min OST has ${MIN}kB available, using ${SIZE}kB file size"
@@ -298,8 +298,8 @@ for NAME in $CONFIGS; do
 			$SETUP
 		export LIBLUSTRE_MOUNT_POINT=$MOUNT2
 		export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
-		export LIBLUSTRE_TIMEOUT=`cat /proc/sys/lustre/timeout`
-		#export LIBLUSTRE_DEBUG_MASK=`cat /proc/sys/lnet/debug`
+		export LIBLUSTRE_TIMEOUT=`lctl get_param -n timeout`
+		#export LIBLUSTRE_DEBUG_MASK=`lctl get_param -n debug`
 		if [ -x $LIBLUSTRETESTS/sanity ]; then
 			mkdir -p $MOUNT2
 			echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET