Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub get_data { $hostkey = shift; for($if = 2; $if < 26; $if++) { $if_name{$hostkey}->{$if} = &get_snmp("$Cisco.$IfName.$if"); $hw_type{$hostkey}->{$if} = &get_snmp("$Cisco.$IfHwType.$if"); $if_desc{$hostkey}->{$if} = &get_snmp("$Generic.$ifDesc.$if"); $if_speed{$hostkey}->{$if} = &get_snmp("$Generic.$ifSpeed.$if"); $bw_in{$hostkey}->{$if} = &get_snmp("$Cisco.$IfInBitSec.$if"); $bw_out{$hostkey}->{$if} = &get_snmp("$Cisco.$IfOutBitSec.$if"); $if_lineprot{$hostkey}->{$if} = &get_snmp("$Cisco.$LineProto.$if") +; $vm_Vlan{$hostkey}->{$if} = &get_snmp("$Specific.$vmvlan.$if"); } return(0);
edited: Mon Jun 23 02:45:22 2003 by jeffa - title change (was: html question)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Generating HTML from SNMP data
by submersible_toaster (Chaplain) on Jun 16, 2003 at 00:17 UTC | |
|
Re: Generating HTML from SNMP data
by TomDLux (Vicar) on Jun 15, 2003 at 23:58 UTC | |
|
Re: Generating HTML from SNMP data
by bobn (Chaplain) on Jun 16, 2003 at 01:51 UTC | |
|
Re: Generating HTML from SNMP data
by isotope (Deacon) on Jun 16, 2003 at 02:28 UTC | |
|
Re: Generating HTML from SNMP data
by bobn (Chaplain) on Jun 16, 2003 at 01:44 UTC |