Router :: Statistiche

Statistiche del router e raccolta delle informazioni
Scarica ora

Router :: Statistiche Classifica e riepilogo

Annuncio pubblicitario

  • Rating:
  • Licenza:
  • Perl Artistic License
  • Prezzo:
  • FREE
  • Nome editore:
  • Andrew S. Kennedy
  • Sito web dell'editore:
  • http://search.cpan.org/~shamrock/

Router :: Statistiche Tag


Router :: Statistiche Descrizione

Statistiche del router e raccolta delle informazioni Router :: Statistiche è un modulo Perl per le statistiche del router e la raccolta delle informazioni. Le statistiche e le statistiche delle informazioni e le informazioni di informazioni. Attualmente questo copre una moltitudine di aree da diversi tipi di router e in una versione futura cambierà. Ci sono alcune funzioni di "azione" all'interno di questo modulo che devono essere necessarie su un altro modulo, quindi non si lamenta troppo, per favore. I seguenti esempi mostrano come configurare il modulo per recuperare le statistiche di interfaccia dai router che supportano lo standard IFMib. Tutto il lavoro su OIDS ecc. È curato dal modulo in modo da essere lasciato con un albero di hash, è stato ricevuto radicato dalle informazioni del router IPS per. Usa il router :: statistiche; usare rigoroso; My ($ Risultato, $ statistiche); My (% router,% interfacce); $ statistics = nuovo router :: statistiche (); $ Risultato = $ Statistiche-> Router_ADD ("10.1.1.1", "Pubblico"); $ Risultato = $ Statistics-> router_ready_blocking ("10.1.1.1.1"); ... $ Risultato = $ Statistiche-> router_add ("10.1.1.200", "Pubblico"); $ Risultato = $ Statistics-> router_ready_blocking ("10.1.1.200"); $ Risultato = $ Statistics-> router_test_connection_blocking (\% router); Se (!% router) {stampa "nessun accesso a nessuno dei router specificato. "; uscita (0);} $ Risultato = $ Statistics-> router_get_interfaces_blocking (\% interfacce); foreach my $ router (tays% interfacce) {stampa" router IP è '$ router' "; stampa" router hostname è "$ router {$ router} {'hostname'} ' "; foreach My $ Interface (Keys% {$ Interfaces {$ router}}) {stampa" interfaccia ID '$ interfaccia' "; stampa" Interfaccia Descrizione '$ Interfaces {$ UBR} {$ Interface} {' IFDESCR '}' "; Stampa" Interfaccia IFTYPE '$ Interfacce {$ UBR} {$ Interface} {' IFTYPE '}' "; stampa" interfaccia IFMTU '$ Interfaces {$ UBR} {$ interface} {' IFMTU '}' "; stampa" Interfaccia IFSpeed "$ Interfacce $ {$ UBR} {$ interface} {'IFSPEED'} ' "; Stampa" Interfaccia "IFPHYSADYDDRESS '$ Interfaces {$ UBR} {$ interface} {' IfphysAddress '}' "; Stampa" Interfaccia IFOPEStatus '$ Interfaces {$ UBR} {$ interface} {' IFoperstatus '}' "; Stampa" Interfaccia IFINOCTETS 'Interfacce $ $ {$ UBR} {$ interface} {' Ifinoctets '}' "; stampa" Interfaccia ifinucastpkts '$ interfacce {$ ubr} {$ interface} {' ifinucastpkts '}' "; Stampa" Interfaccia IFINNUCASTSTS '$ Interfacce $ {$ UBR} {$ Interface} {' IfinnucastPkts '}' "; stampa" Interfaccia IFIndiscards $ Interfacce $ {$ UBR} {$ interface} {'Ifindiscards'} ' "; Stampa" Interfaccia IFINERRERRURS 'Interfacce $ {$ UBR} {$ Interface} {' IfinerRors '}' "; Stampa" Interfaccia IFINUNKUNKNOWPROTOS 'Interfacce $ $ {$ UBR} {$ Interface} {' IfinunkNownProtos '}' "; Stampa" Interfaccia IFOToToCets '$ Interfaces {$ UBR} {$ Interface} {' IFOTOTOCTETS '}' "; Stampa" Interfaccia IFOUUCASTASTPKTS '$ Interfaces {$ UBR} {$ Interface} {' IFOUUCASTSTPKTS '}' "; stampa" Interfaccia IFOUTNucaSTASTPKTS '$ Interfaces {$ UBR} {$ Interface} {' IFOUTNUCASTPKTS '}' "; stampa" Interfaccia IFOUTDiscards '$ Interfaces {$ UBR} {$ interface} {' IFOUTDISCARDS '}' "; stampa" Interfaccia IFOURTERS '$ Interfaces {$ UBR} {$ Interface} {' 'IFOURRORS'} ' "; Stampa " ";}} Attualmente ho bisogno di accesso ai router alternativi del fornitore, cioè. Chiunque, ma Cisco (ABC), poiché ho solo un accesso reale all'apparecchiatura Cisco, quindi questo codice non può essere confermato al 100% contro chiunque altro. Per espandere la Biblioteca per coprire altre azioni, piuttosto che solo le funzioni DOCSIS, che è l'azione primaria a fuoco al momento. La corrente del modulo ha due (2) variabili globali che possono essere impostate quando si crea l'oggetto il primo debug si accende tutto il output di debug, secondo, STM_Safety_Limit, consente di modificare il margine di sicurezza STM sottraendo il numero (minuti) specificato dall'ora di fine. Questo è anche impostabile nelle funzioni STM ma solo se si utilizza anche una password di abilitazione. di come usarli è $ statistiche = Nuovo router :: Statistiche (); questo si accendeva il debug e impostare la sicurezza che cattura su 10 minuti. La cattura di sicurezza predefinita è di 15 minuti. Requisiti: · Perl.


Router :: Statistiche Software correlato