11-21

UserGuide for Cisco Dig ital Media Manager 5.2.x
OL-15762-03
Chapter11 Register DMPs
Reference
Prevent DHCP Address Assignments to the Wrong VLAN

Note You can run the following shell script (“mandatory.cdp.sh”) on a CiscoCatalyst 3750 Series switch. This shell script can

prevent a type of DHCP-VLAN misalignment problem that we describe under the “Medianet” heading in the

“Restrictions” section on page 11-9.

Tip To learn about shell script execution on your switch, see the documentation for your switch on Cisco.com.

\
##::cisco::eem::event_register_neighbor_discovery interface .* cdp update
#------------------------------------------------------------------
#
# February 2009, Cisco EEM team
#
# Copyright (c) 2009-2010 by Cisco Systems, Inc.
# All rights reserved.
#------------------------------------------------------------------
fetch IS_MASTER /oper/platform/stack/manager/all/role
if [[ $IS_MASTER -eq NO ]]; then
return 0
fi
INTERFACE=$_nd_local_intf_name
fetch IS_ASP_ENABLED /config/interface{$INTERFACE}/macro/auto/processing/enabled
if [[ $IS_ASP_ENABLED -eq NO ]]; then
return 0
fi
fetch IS_AUTH_ENABLED /config/interface{$INTERFACE}/macro/auto/processing/auth-enabled
if [[ $IS_AUTH_ENABLED -eq YES ]]; then
fetch CDP_CHECK_ENABLED
/config/interface{$INTERFACE}/macro/auto/processing/cdp-fallback
if [[ $CDP_CHECK_ENABLED -eq NO ]]; then
return 0
fi
fi
DETECTION_CDP=”cdp”
ROUTER=”CISCO_ROUTER_EVENT”
SWITCH=”CISCO_SWITCH_EVENT”
LWAP=”CISCO_WIRELESS_LIGHTWEIGHT_AP_EVENT”
AP=”CISCO_WIRELESS_AP_EVENT”
PHONE=”CISCO_PHONE_EVENT”
IPVSC=”CISCO_IPVSC_EVENT”
LAST_RESORT=”last-resort”
DMP=”CISCO_DMP_EVENT”
fetch IS_CDP_DETECTION_ENABLED
/config/interface{$INTERFACE}/detection_method{$DETECTION_CDP}/macro_auto_detection_cntrl
if [[ $IS_CDP_DETECTION_ENABLED -eq NO ]]; then
return 0
fi
fetch CURRENT_TRIGGER /config/interface{$INTERFACE}/macro/description
fetch CURRENT_AP125X /config/interface{$INTERFACE}/macro/device_descr
# Predefine the trigger in case no capabilities match
DEVICE_TYPE=”Default device”