03/11/2011
Cisco 827 is up and running
Finalmente, dopo tanto tribolare, il mio Cisco 827 ha iniziato a fare il suo sporco lavoro. Per rendere il tutto un po' più stabile e robusto, ho aggiunto un banco di RAM da 32 MB (in modo da non soffocarlo con le NAT translations) ed ho aggiornato la IOS, passando dalla c827v-y6-mz.121-1.XB (una EARLY DEPLOYMENT che non conosce nemmeno il significato di PPPoE) alla c820-k9osy6-mz.123-5.
Ecco lo sh ver:
NightRouter#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C820 Software (C820-K9OSY6-M), Version 12.3(5), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 28-Oct-03 10:31 by kellythw
Image text-base: 0x80013148, data-base: 0x80A9890C
ROM: System Bootstrap, Version 12.1(1r)XB1, RELEASE SOFTWARE (fc1)
NightRouter uptime is 20 minutes
System returned to ROM by power-on
System restarted at 18:03:31 UTC Thu Nov 3 2011
System image file is "flash:c820-k9osy6-mz.123-5.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
CISCO C827 (MPC855T) processor (revision 0x501) with 31744K/1024K bytes of memory.
Processor board ID JAD04330G9Y (2953292797), with hardware revision 0000
CPU rev number 5
Bridging software.
1 Ethernet/IEEE 802.3 interface(s)
1 ATM network interface(s)
128K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)
2048K bytes of processor board Web flash (Read/Write)
Configuration register is 0x2102
Adesso il mio SOHO77 può andare meritatamente in pensione.
A presto.
18:29 Scritto da: nazarenolatella in Networking | Link permanente | Commenti (0) | Segnala | Tag: cisco, 800 series, 827, ram upgrade, ios, sh ver | OKNOtizie |
Facebook
11/02/2011
Monitorare la RAM su un dispositivo Cisco mediante SNMP
Per visualizzare la RAM installata su un qualsiasi dispositivo Cisco è sufficiente lanciare il comando sh ver:
Router# sh ver
La parte di output che ci interessa è simile alla seguente:
Cisco 2851 (revision 53.51) with 249856K/12288K bytes of memory.
Il primo valore, ovvero 249856K indica la memoria libera, mentre il secondo, ovvero 12288K, indica la memoria utilizzata. Sommando dunque questi due valori otterremo la dimensione totale della RAM installata sul dispositivo (in tal caso 256 MB).
Ora, vogliamo monitorare, mediante SNMP, la RAM in usp e quella libera. Per fare ciò è possibile utilizzare i seguenti OID:
.1.3.6.1.4.1.9.9.48.1.1.1.5.1 (per la memoria attualmente in uso dal processor pool)
.1.3.6.1.4.1.9.9.48.1.1.1.5.1 (per la memoria attualmente in uso dall'I/O pool)
.1.3.6.1.4.1.9.2.1.8.0 (per la memoria libera)
Definiamo ora il comando per monitorare la memoria in uso e la memoria libera attraverso delle query SNMP:
nightfly@nightbox:~$ cd /etc/nagios-plugins/config
nightfly@nightbox:~$ sudo nano snmp.cfg
inseriamo la direttiva:
'snmp_cisco_memory_usage' command definition
define command {
command_name snmp_cisco_memory_usage
command_line /usr/lib/nagios/plugins/check_snmp -H '$HOSTADDRESS$' -o '$ARG1$','$ARG2$','$ARG3$' -w '$ARG4$','$ARG5$','$ARG6$' -c '$ARG7$','$ARG8$','$ARG9$' -u "bytes,bytes,bytes" -l "Memory" -C '$ARG10$'
}
In particolare, la flag -l serve per definire una label, la flag -u indica l'unità di misura a cui si riferisce l'output della query, la flag -w specifica le soglie di warning per la memoria libera ed in uso, la flag -c specifica le soglie di critical per la memoria libera ed in uso.
Non ci resta che aggiungere il servizio per il monitoraggio della RAM all'interno del file in cui è definito l'host Cisco:
nightfly@nightbox:~$ cd /etc/nagios3/conf.d
nightfly@nightbox:~$ sudo nano host-cisco_nagios3.cfg
Inseriamo quanto segue:
define service {
use generic-service ; Name of service template to use
host_name Cisco
service_description Cisco memory usage check
check_command snmp_cisco_memory_usage!.1.3.6.1.4.1.9.9.48.1.1.1.5.1,
.1.3.6.1.4.1.9.9.48.1.1.1.5.2,.1.3.6.1.4.1.9.2.1.8.0!140000000,10000000!60000000:!100000000,12000000!20000000:!vostracommunitystring
}
dove i : dopo la soglia di warning 6000000 e quella di critical 40000000 indicano rispettivamente <60000000 e <40000000 (poichè abbiamo a che fare con la memoria libera).
Riavviamo nagios:
nightfly@nightbox:~$ sudo service nagio3 restart
ed abbiamo finito.
A presto.
15:24 Scritto da: nazarenolatella in Networking | Link permanente | Commenti (0) | Segnala | Tag: snmp, memory, ram, sh ver, check_snmp, nagios | OKNOtizie |
Facebook














