SNMP :: classe.

una classe di comodità intorno ai moduli perl netsnmp
Scarica ora

SNMP :: classe. Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • Perl Artistic License
  • Nome editore:
  • Athanasios Douitsis
  • Sito web dell'editore:
  • http://search.cpan.org/~aduitsis/

SNMP :: classe. Tag


SNMP :: classe. Descrizione

Una classe di comodità intorno ai moduli perl NetSNMP SNMP :: CLASS è un modulo Perl mira a consentire di eseguire attività correlate allo SNMP con la migliore facilità ed espressività possibile mentre allo stesso tempo consentendo funzionalità avanzate come la sottoclassificazione da utilizzare senza problemi. Usa SNMP :: Class; #Create una sessione a un dispositivo gestito - #Community sarà predefinita per il pubblico, la versione sarà automatica da 2,1 my $ s = snmp :: class-> nuovo ({desthost => 'myhost'}); #modus operandi # 1 #walk l'intera tavola my $ IFTABLE = $ S-> WALK ("IFTABLE"); # -more compatto- My $ IFTABLE = $ S-> IFTABLE; #get the ifdescr.3 My $ IF_DESCR_3 = $ IFTABLE-> Object ("IFDESCR") -> istanza ("3"); #More Compact My $ IF_DESCR_3 = $ IFTABLE-> Object (IFDESCR) .3; #terate over Interface Descriptions - Metodo Senses Elenco contesto e restituisce la matrice per il mio $ DESCR ($ IFTABLE-> Object "IFDESCR")) {Stampa $ DESCR-> Get_Value, "\ n"; } #Get la velocità dell'istanza per cui IFDESCR è EN0 MY $ EN0_SPEED = $ IFTABLE-> Trova ("IFDESCR", "EN0") -> Oggetto ("IFSPEED") -> Get_Value; # #modus operandi # 2 - elenco contesto mentre ($ s-> ifdescr) {stampa $ _-> get_value; } Requisiti: · Perl.


SNMP :: classe. Software correlato