use lib qw(blib lib); #use strict; use warnings; use Getopt::Long; use Pod::Usage; use Data::Dumper; use Opsware::NAS::Client; my($user,$pass,$host) = ('jon', 'doe', 'localhost'); my $help = 0; my $ip = '127.0.0.1'; my $nas = Opsware::NAS::Client->new(); my $res = $nas->login(-user => $user, -pass => $pass, -host => $host, -nosession => '0'); my res = $nas->show_deviceinfo(ip => $ip)); #here's where the magic happens.... foreach my $tftp ($res->result()) { print "$tftp\n"; } $nas->logout(); Here's the output I get from the above code: DeviceInformation: Contact: NOC 111-222-3333 Hostname: bob Location: Creek Manufacturer: Cisco Model: WS-C3750G-48TS-S (C3750 series) OSVer: 12.2(46)SE Processor: WS-C3750G-48TS (PowerPC405) ROMVer: 12.2(25r)SEE4 SerialNumber: Z4CF,FOC688 ServiceTypes: Power SystemImage: flash:c3750-advipservicesk9-mz.122-46.SE.bin SystemMemory: 134209536