Hi Guyz,
            i am writin a script to automate the command snmpwalk by reading
the contents of a file. Below is the snippet

$file_name="somefile.txt";

open(FILE,"< $file_name");

while(<FILE>)
{
        my $ip;
        my $comm_string;
        ($ip,$comm_string)=split(",",$_);
        $tempRNA=qw("snmpwalk -t 1 -r 1 $ip $comm_string .1.3.6.1.2.1.1.5 >
RNA$ip.txt");

*** I am facing the problem in the above code where in i have to pass all
the information to the variable $tempRNA and then execute the same in the
System ($tempRNA)

When i try to print the value in the variable $tempRNA i am getting the
value printed only RNAxx.xxx.xxx.xxxx.txt

Please help me out and Thanks is Advance

Regards
Mazhar

Reply via email to