Search found 3 matches
- Thu Sep 14, 2006 1:04 am
- Forum: Scripts and Templates
- Topic: gwia.pl cannot got output(CLOSED)
- Replies: 2
- Views: 1125
gwia.pl cannot get output value(CLOSED)
I update my scripts and NOW it running OK. #!/usr/bin/perl my $hostname = $ARGV[0]; $SNMP_GET_CMD = "snmpget -v1 -c public -Ovq"; chomp $hostname; if ($hostname eq '') { $hostname = "localhost"; } $output1 = `$SNMP_GET_CMD $hostname .1.3.6.1.4.1.23.2.70.1.6.0`; chomp($output1); $...
- Wed Sep 13, 2006 11:18 pm
- Forum: Scripts and Templates
- Topic: gwia.pl cannot got output(CLOSED)
- Replies: 2
- Views: 1125
gwia.pl scripts get not output value
It MUST BE the scripts error when I only print output in scripts it's OK.
but how can I change the scripts to work property?
Thks!
but how can I change the scripts to work property?
Thks!
- Wed Sep 13, 2006 3:47 am
- Forum: Scripts and Templates
- Topic: gwia.pl cannot got output(CLOSED)
- Replies: 2
- Views: 1125
gwia.pl cannot got output(CLOSED)
I have just create a data input method using scripts/command gwia.pl #!/usr/bin/perl my $hostname = $ARGV[0]; chomp $hostname; if ($hostname eq '') { $hostname = "localhost"; } $output = `/usr/bin/snmpget -v1 -c public $hostname .1.3.6.1.4.1.23.2.70.1.6.0`; $output =~ /SNMPv2-SMI::enterpri...