/etc/init.d/ic-serviced stop/start
$BASEDIR_IP/local/logs/
$BASEDIR_SAM/local/logs/
dmctl -s <ServerName> ($BASEDIR_SAM/bin)
dmctl -s <ServerName>
dmctl -s <ServerName> exec roll_log
dmctl -s <ServerName> get ICF_PercistenceManager::ICF-PercistenceManager
dmctl -s <SAM/OI ServerName> invoke GA_DaemonDriver::<name of the APM domain>_Topo-Driver start
dmctl -s <APM ServerName> invoke ICF_PolicyManager reconfigureAndWait true
dmctl -s <SAM or OI> invoke ICS_NotificationFactory::ICS-NotificationFactory \
archiveNotification \
ICS_Notification::<NOTIFICATIONName> \
<User> \
"Archived this SUSPENDED alarm"
dmctl -s <SAM ServerName> geti ICS_NotificationList
dmctl -s <SAM ServerName> get ICS_NotificationList::<NL-List>
dmctl -s <SAM ServerName> get ICF_Criteria::ICF-Criteria-ICS_<NL-Name>-0
dmctl -s <ServerName> invoke ICF_PersistenceManager::ICF-PersistenceManager save
dmctl -s <APM ServerName> put ICF_TopologyManager::ICF-TopologyManager::DebugEnabled TRUE
DMDriver=$DMName"_Topo-Driver"
dmctl -s $OIDomain invoke GA_DaemonDriver::$DMDriver start 2>&1 >/dev/null
dmctl -s localhost:426/dmbroker
dmctl -s <AM-server> invoke SNMP_TrapManager::SNMP-Trap-Manager setTrace
This will dump traps into the server logfile in <basedir>IP/smarts/local/logs. To disable trap tracing, run the following command:
dmctl -s <AM-server> invoke SNMP_TrapManager::SNMP-Trap-Manager clearTrace
dmctl -s <NPM-serverName> invoke ICF_TopologyManager::ICF-TopologyManager addManagedElement <AMServerName> "AM"
dmctl -s <TA Name> invoke GA_Driver::DRV-trap-config start
dmctl -s <ServerName> exec dmdebug --dumpAccessor=DEVSTAT-SNMP-Poller --output
dmctl -s <Domain Name> exec dmdebug --dumpAccessor=DEVSTAT-TCPIP-Pinger --output
dmctl -s <server name> exec dmdebug --queues --output=<file name>
dmctl -s <APM ServerName> invoke ICF_TopologyManager::ICF-TopologyManager rediscover <ClassName::Name>
dmctl -s <APM ServerName> get GA_SubscriberProfile::PROFILE-default
dmctl -s <APM ServerName> -b <broker> exec dmdebug --dumpCodebook
dmctl -s <APM ServerName> -b <broker> exec dmdebug --dumpMatrix
dmctl -s <APM ServerName> -b <broker> exec dmdebug --dumpAccessor=DEVSTAT-SNMP-Poller
dmctl -s <APM ServerName> -b <broker> exec dmdebug --dumpAccessor (will dump all ICMP and SNMP poll status)
dmtcl -s <APM ServerName> invoke ICIP_SNMPAccessorInterface: DEVSTAT-SNMP-Poller setTrace ICIM_UnitaryComputerSystem::<DeviceName> TRUE
dmctl -s <SAM ServerName> exec dmdebug --clients
command writes client sessions to the logfile with their sessionID
dmctl -s <SAM ServerName> exec dmdebug --disconnect=<SessionID>
Shell script:
for i in `cat routerlist`;do
dmctl -s <APM ServerName> invoke Router::$i remove | tee;
done
Where “routerlist” is just a list of routers as they appear in AM; no commands, just names or IPs.
Make sure the “|tee” follows “remove” or I think you will have to login to the domain 600 times.
sm_service show
sm_service show --cmdline ic-<ServerName>
SAM repository and GUI configuration
sm_config -s <ServerName> export <FileName>
sm_config -s <ServerName> import <FileName>
sm_adapter -s <ServerName> <ASL script>
sm_adapter -s <ServerName> --subscribe=Default/n
sm_adapter -s <ServerName> --subscribe=ALL_NOTIFICATION/n
sm_tpmgr -s <ServerName> --load-conf=discovery.conf
sm_tpmgr -s <ServerName> --show-dm-processes
sm_tpmgr --sizes -s <APM ServerName>
sm_tpmgr -s <APM ServerName> --reloadoid
sm_tpmgr -s <APM ServerName> --seed="/tmp/seedfile" --status --tracelevel=debug --loglevel=debug
sm_tpmgr -s <APM ServerName> --dump-agents --output=seedfile.log
sm_server --version
dynmodel <Filename> to compile a new model file from *.mdl -> *.ldm
brcontrol
brcontrol delete_dm <NAME>
brcontrol add_dm <NAME> <HOST> <PORT> <PID>
For certification, we need to add the System OID to the oid2type_Field.conf in /opt/InCharge7/IP/smarts/local/conf/discovery/oid2type_Field.conf
add : eg.
.1.3.6.1.4.1.1977.1.6.1279.1 {
TYPE = Host
VENDOR = ssmForSun
MODEL = SUN SPARCstation Solaris2
CERTIFICATION = TEMPLATE
INSTRUMENTATION:
Interface-Fault = MIB2
Interface-Performance = MIB2
}
<ctrl><alt>M : gives all hidden classes
<ctrl><alt>S : you can create own objects etc
-c (on the APM -> gives you to what notifications are available to the classes.)
-D com.smarts.maxTopoInstances=10000 extend the amount of instances that can be browsed.
sm_snmp -dest=<IP address APM management server> trap <devicename> .1.3.6.1.4.1.8239.2.1.3.2 6 2 10
Modification in smarts.lic:
#USA
SERVER sinmn11u 83cf9d67 1744
VENDOR sm_lmgrd92 USER_DEFINED port=1745
USE_SERVER
INCREMENT AD_SDI sm_lmgrd92 6.2 permanent 1 9935A866F998 DUP_GROUP=SITE SN=DO394040093 TS_OK
INCREMENT DMC_CORR sm_lmgrd92 6.2 permanent 1 3F5E69D35473 DUP_GROUP=SITE SN=DO394040091 TS_OK
[...]
Another issue I had with escalation policies when I set them up in 6.5.3 was that the filter criteria can be edited via two paths
1. Right click on the escalation policy -> Path ->Edit Properties -> Edit Filter
2. Select Escalation Policy -> Top Menu "Escalation" -> Policy -> Edit Properties -> Edit Filter
What I had found was that the filter via the second path is not the same as the filter via the first path and that caused me issues in the past. Since then I always update the filter via both paths.