GSP Console reset in HP UX

>>  Save this script and run as root user ..It will reset the GSP console

#Chmod +x gspreset.sh
#./gspreset.sh

Script :
======
#!/usr/bin/ksh
####################################################################
#
# gspreset.sh
#
# This script will reset all GSP devicefiles
#
#####################################################################
#
for i in $(ls /dev/GSP*)
do
echo " checking GSP $i + reseting it - this will need some time (~30s)"
stty +queryGSP < $i
stty +resetGSP < $i
stty +queryGSP < $i
echo "-----------------------------------------------"
done

------------------------------------------------------------------------------------
     





0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks