Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur
Page 37
OL-28369-01
hostname="5.6.7.8"
severity="notifications"
forwardingFacility="local7"/>
severity="notifications"
forwardingFacility="local7"/>
<commSyslogClient
name="secondary"
adminState="enabled"
hostname="123.23.53.123"
severity="warnings"
forwardingFacility="local5"/>
adminState="enabled"
hostname="123.23.53.123"
severity="warnings"
forwardingFacility="local5"/>
</commSyslog>
</pair>
</inConfigs>
</configConfMos>
Response
<configConfMos
cookie="<real_cookie>"
commCookie="7/15/0/1b9"
srcExtSys="10.193.33.221"
destExtSys="10.193.33.221"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
response="yes">
commCookie="7/15/0/1b9"
srcExtSys="10.193.33.221"
destExtSys="10.193.33.221"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
response="yes">
<outConfigs>
<pair key="org-root/syslog-mysyslog">
<commSyslog
<commSyslog
adminState="enabled"
descr=""
dn="org-root/syslog-mysyslog"
intId="25301"
name="mysyslog"
port="514"
proto="udp"
severity="warnings"
status="created"/>
descr=""
dn="org-root/syslog-mysyslog"
intId="25301"
name="mysyslog"
port="514"
proto="udp"
severity="warnings"
status="created"/>
</pair>
</outConfigs>
</configConfMos>
SNMP Policy
The following example creates an SNMP policy named mysnmp. Once created, this policy is available by that
name in the device profile listing.
name in the device profile listing.
Request
<configConfMos
cookie="<real_cookie>">
<inConfigs>
<inConfigs>
<pair key="org-root/snmp-mysnmp">
<commSnmp dn="org-root/snmp-mysnmp"
<commSnmp dn="org-root/snmp-mysnmp"
adminState="enabled"
descr="The default SNMP policy"
sysContact="Andrew Jackson"
sysLocation="San Jose" >
descr="The default SNMP policy"
sysContact="Andrew Jackson"
sysLocation="San Jose" >
<commSnmpCommunity
community="public"
role="read-only"/>
role="read-only"/>
<commSnmpTrap
hostname="nms-23.host123.com"
community="private"/>
community="private"/>