Forum Discussion
kev_245_28249
Jun 08, 2011Nimbostratus
convert OID to mcpd process id - per sol11127
Hi, I would like to make use of the 'logger -p' command to generate syslog messages in order to test syslog and snmp traps. I can get this working but find it difficult to know which of the following files one would find the mcpd code. Has anyone got any good tips?
ps i would have raised this under the 'testing forum' but it kept looping me to log on rather than taking me to the open a new post window).
eg of command: logger -p local0.notice "01070640:5: Node x.x.x.x monitor status down."
if say I want to test for interface up down, which file to I look in to covert the oid for interface up down?
[root@F5LAB-DC1-LTM-PRES:Active] alertd ll
total 628
-r--r--r-- 1 root root 17715 Jan 6 07:18 alert.conf
-r--r--r-- 1 root root 8093 Jan 6 07:18 alert_nokia.conf
-rw-r--r-- 1 root root 4527 Jan 6 07:17 bigip_alertd_error_maps.h
-rw-r--r-- 1 root root 1299 Apr 17 16:15 bigip_bcm56xxd_error_maps.h
-rw-r--r-- 1 root root 3725 Apr 17 16:18 bigip_bigd_error_maps.h
-rw-r--r-- 1 root root 1230 Jan 6 07:05 bigip_bigdb_error_maps.h
-rw-r--r-- 1 root root 5778 Apr 17 16:15 bigip_bigdbd_error_maps.h
-rw-r--r-- 1 root root 60 Jan 6 06:53 bigip_bigstart_error_maps.h
-rw-r--r-- 1 root root 1486 Apr 17 16:14 bigip_clusterd_error_maps.h
-rw-r--r-- 1 root root 3083 Apr 17 16:15 bigip_cs_error_maps.h
-rw-r--r-- 1 root root 1389 Jan 6 07:17 bigip_cssd_error_maps.h
-rw-r--r-- 1 root root 419 Jan 6 07:07 bigip_csyncd_error_maps.h
-rw-r--r-- 1 root root 654 Apr 17 16:06 bigip_dmon_error_maps.h
-rw-r--r-- 1 root root 788 Apr 17 16:04 bigip_fflag_error_maps.h
-rw-r--r-- 1 root root 1317 Jan 6 07:07 bigip_get_dossier_error_maps.h
-rw-r--r-- 1 root root 24229 Apr 17 16:19 bigip_gtmd_error_maps.h
-rw-r--r-- 1 root root 5077 Jan 6 07:05 bigip_ha_table_error_maps.h
-rw-r--r-- 1 root root 772 Jan 6 06:52 bigip_halmsg_error_maps.h
-rw-r--r-- 1 root root 1428 Apr 17 16:14 bigip_lacpd_error_maps.h
-rw-r--r-- 1 root root 853 Jan 6 06:59 bigip_libhal_error_maps.h
-rw-r--r-- 1 root root 387 Jan 6 07:08 bigip_lind_error_maps.h
-rw-r--r-- 1 root root 7229 Apr 17 16:09 bigip_mcp_error_maps.h
-rw-r--r-- 1 root root 156858 Apr 17 16:20 bigip_mcpd_error_maps.h
-rw-r--r-- 1 root root 709 Apr 17 16:25 bigip_mysqlhad_error_maps.h
-rw-r--r-- 1 root root 3504 Apr 17 16:19 bigip_shell_error_maps.h
-rw-r--r-- 1 root root 5228 Apr 17 16:25 bigip_sod_error_maps.h
-rw-r--r-- 1 root root 16637 Jan 6 07:14 bigip_statsd_error_maps.h
-rwxr-xr-x 1 root root 2928 Jan 6 07:07 bigip_stpd_error_maps.h
-rw-r--r-- 1 root root 280 Apr 17 16:23 bigip_subagents_error_maps.h
-rw-r--r-- 1 root root 744 Jan 6 07:08 bigip_syscall_error_maps.h
-rw-r--r-- 1 root root 776 Apr 17 16:18 bigip_system_check_error_maps.h
-rw-r--r-- 1 root root 20769 Jan 6 07:19 bigip_tamd_error_maps.h
-rw-r--r-- 1 root root 1303 Apr 17 16:21 bigip_tcl_checker_error_maps.h
-rw-r--r-- 1 root root 28534 Apr 17 16:05 bigip_tmm_error_maps.h
-rw-r--r-- 1 root root 10062 Jan 6 07:27 bigip_ts_error_maps.h
-rw-r--r-- 1 root root 4111 Apr 17 16:09 bigip_xdb_error_maps.h
-rw-r--r-- 1 root root 35427 Apr 17 16:18 bigip_zfd_error_maps.h
-rw-r--r-- 1 root root 5906 Jan 6 07:08 common_fpdd_error_maps.h
- nitassEmployeenot sure i understand your question correctly.
- kev_245_28249NimbostratusFor eg, If I want to ensure I trap for and interface going down I am wondering which file I find the mcpd process number in?
- nitassEmployeeif u wanna have trap when interface is up/down, i think just setting up that message in user_alert.conf is enough (no need to put process number in user_alert.conf).
- kev_245_28249NimbostratusTo be clearer, I'm actually more interested in learning how to manually generate traps for testing purposes rather than just making Interface Up Down work.
- nitassEmployeethis is my test.
- kev_245_28249NimbostratusThanks, that is helpful.
?I get that I make up the OID from a reserved rangeI do not see interface down in the bigip_error_maps.dat file.Trying to follow:sol3727 - nitassEmployee>Other than bringing an interface down to see what the device inputs into /var/log/ltm file, how do I know what wording to put as my?
- kev_245_28249NimbostratusYeah I tore down my lab interface and got the info I needed. So I guess its 'use your lab to learn your info?'.
Recent Discussions
Related Content
Â
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects