One of the last items to migrate is the script for avid inews user count. I 
assume I need to utilize the zcommandpath feature to duplicate this?

inewsusercount

> #!/bin/sh
> 
> incoming=`/usr/bin/inews_users.exp 10.10.220.10 | perl -e 'while 
> (<STDIN>){next unless m/^\s+(\d{1,3})\s+$/;print $1;}'`
> outgoing=0
> uptime=uptime
> name="iNews Users"
> 
> #echo -e "$incoming\n$outgoing\n$uptime\n$name"
> echo -e "inews_users:$incoming"
> #echo "$outgoing"
> #echo "$uptime"
> #echo "$name"
> 
> exit
> 


inews_users.exp

> #!/usr/bin/expect -f
> 
> set server [lindex $argv 0]
> set password passwordgoeshere
> spawn /usr/kerberos/bin/rlogin $server -l so
> expect "Password:"
> send "$password\r"
> expect "# "
> send "/exc/list s | fgrep -v S | wc -l\r"
> send "exit\r"
> expect eof




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34077#34077

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to