Bob,
While this does not answer your exact question, hope it gives you some
direction.
1) Are the DSUs manageable? If so, is there a MIB object that you could
use with the SNMPSET command in a script to set the new password? Here's
an example of using snmpset to set the SysLocation (by querying TXT field
of the DNS where, in our case, the location is stored) for a set of
devices - in this case 3Com hubs.
#!/usr/bin/ksh
DEVICES=/tmp/setSysContact.list
/usr/OV/bin/nvUtil l 3com > $DEVICES
RWCOMMSTR=rwcomm
while read i
do
location=`nslookup -query=txt $i | grep text | cut -d= -f2| cut -d\"
-f2`
print "$i\t$location"
snmpset -c $RWCOMMSTR $i .1.3.6.1.2.1.1.6.0 octetstring "$location" |
awk '{ print $6 $7 }'
done < $DEVICES
rm $DEVICES
2) Use an expect script to simulate what you do to set the password.
Here's an example of using an expect script to "backup" the startup
configuration file on Cisco devices. This script would be called by
another script that loops through the list of devices - similar method to
the one above. To do this, the script you use to call the expect script
must replace the device name (mainrouter.net.mycompany.com) before it
calls the expect script as it loops through the list of devices.
#!/usr/local/bin/expect -f
spawn telnet mainrouter.net.mycompany.com
expect "Password"
send "mypasswd\r"
expect ">"
send "enable\r"
expect "Password"
send "enablepassword\r"
expect "#"
send "copy startup tftp\r"
expect "host"
send "10.1.1.30\r"
expect "startup"
send "\r"
expect "#"
send "logout\r"
As you might have guessed, in either case you will need to use a
smartset.
Good luck . . .
Mahesh Tailor
WAN Administrator
Carilion Health System
Voice: 540-224-3929
Fax: 540-224-3954
>>> bob.gallagher@firstcitizens.com 02/28/01 08:42AM >>>
We have identified a need to change roughly 700+ passwords in our ADTRAN
DSUs. The DSUs are at each location connected to the Frame Relay circuit
and
a 2600 series Cisco router. Is anyone aware of a capability of NetView
to
aid in this function or is there a script that someone would like to
share
that may perform this function? I would be much appreciative!
thx,
bg
------------------------------------------------------------------------------
This electronic mail and any files transmitted with it are confidential
and are intended solely for the use of individual or entity to whom they
are addressed. If you are not the intended recipient or the person
responsible for delivering the electronic mail to the intended recipient,
be advised that you have received this electronic mail in error and that
any use, dissemination, forwarding, printing, or copying of this
electronic mail is strictly prohibited. If you have received this
electronic mail in error, please immediately notify the sender by return
mail.
==============================================================================
|