#!/usr/bin/expect -f

set ip [lindex $argv 0 ]

set timeout 2
spawn /opt/huawei/snas/sbin/mml $ip 988

expect "mml>>>"

send "nvshow WrtNofsTimeout\r"

sleep 0.000001

expect "mml>>>"

send "q\r"

exit
