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)
In reply to Generating HTML from SNMP data by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |