Backup the database

root@ISDserver#> smstop Shutting down IBM Director..
root@ISDserver#> smsave -targetDir /ISD_backup -dbTargetDir /ISDbackup -dbUserPwd [resource manager password]
Command is running. Monitor live status and results in /opt/ibm/director/log/smsave.log
ALR1325I: The lightweight runtime has started. Command completed with errors..

 Active services needed

root@ISDserver#> lssrc -a|grep cas
 cas_agent inoperative
 ctcas rsct inoperative
 root@ISDserver#> lssrc -a|grep sim
 root@ISDserver#> lssrc -a|grep cim
 cimsys 4522124 active
 root@ISDserver#> lssrc -a|grep -i plat
 platform_agent 4259982 active

 Which ports are used, and what do we need to see ?

root@ISDserver#> netstat -an|grep 598 ==========================================> CIM
 tcp 0 0 *.5988 *.* LISTEN
 tcp 0 0 *.5989 *.* LISTEN
 root@ISDserver#> netstat -an|grep 427
 tcp 0 0 *.427 *.* LISTEN ===============> SLP
 udp 0 0 *.427 *.*
 root@ISDserver#> ps -aef|grep slp
 root 3997740 1 0 Apr 16 - 0:01 /opt/ibm/director/cimom/bin/tier1slp
 root 5308586 1 0 Apr 16 - 0:04 ./slp_srvreg -D
 root 25886806 27197570 0 13:53:48 pts/3 0:00 grep slp
 root@ISDserver#> netstat -an|grep 951
 tcp 0 0 *.9510 *.* LISTEN
 tcp4 0 0 127.0.0.1.9514 *.* LISTEN
 tcp4 0 0 127.0.0.1.9515 *.* LISTEN

 Show Tivoli GUID

root@ISDserver#> /usr/tivoli/guid/tivguid -Show
 Tivoli GUID utility - Version 1 , Release 3 , Level 4 .
 (C) Copyright IBM Corporation 2002, 2009 All Rights Reserved.

Guid:78.b5.62.3e.42.1b.11.e1.82.20.66.7c.77.8f.63.04

 

root@ISDserver#> cat /opt/ibm/director/lwi/conf/overrides/director.javaopt
 -Xcompressedrefs -Xms512m -Xmx4096m -Xgcpolicy:gencon -Xdump:system:events=gpf+abort -Xdump:java:events=gpf+abort -verbose:gc -Xverbosegclog:verbose_output.xml -DPCL_BASEDIR=/opt/ibm/director/data/base

 Retrieve Agents

root@ISDserver#>/opt/ibm/director/lwi/runtime/agentmanager/toolkit/bin/RetrieveAgents.sh -toolkitPassword [resource manager passwd]

Endpoint deletion

lpar2@root /var/opt/tivoli/ep/runtime/agent/toolkit/bin #> ./checkconn.sh -host ISDserver
 BTC8614I The connection to the agent manager has been established successfully.
 lpar2@root /var/opt/tivoli/ep/runtime/agent/toolkit/bin #> t ISDserver -password resmanid <
 BTC8614I The connection to the agent manager has been established successfully.
 BTC8619I The common agent would register successfully with the given password.
 lpar3@root /root#> /var/opt/tivoli/ep/runtime/agent/toolkit/bin/configure.sh -unmanaged -force

root@ISDserver#>/opt/ibm/director/lwi/runtime/agentmanager/toolkit/bin/LogicallyDeleteAgents.sh -toolkitPassword resmanid -me 85652f3319833ac0abd8297dc95201e6
 CTGEM2407I The total number of agents were successfully uninstalled : 1.
 root@ISDserver#>/opt/ibm/director/lwi/runtime/agentmanager/toolkit/bin/PurgeAgents.sh -toolkitPassword resmanid -me 075c18e4ef7c3cb08327403f276b276e
 CTGEM2408I The total number of agents were successfully removed: 1.
 root@ISDserver#>/opt/ibm/director/lwi/runtime/agentmanager/toolkit/bin/RetrieveAgents.sh -toolkitPassword resmanid

Reset of the whole configuration

root@ISDserver#> smreset
 This operation will revert the IBM Systems Director database and server to the installed state. To continue, type "1" for yes or "0" for no.
 1
 ALR0450W: Waiting for connection to the administration port. 47812

ALR1325I: The lightweight runtime has started.

Command completed successfully

Reset completed successfully.
 root@ISDserver /opt/ibm/director/lwi/runtime/agentmanager/toolkit/bin #> smstart;smstatus -r
 Starting IBM Director...
 The starting process may take a while. Please use smstatus to check if the server is active.

Error
 Starting

Restore configuration

root@ISDserver:/root# smrestore -sourceDir /sauvegardeISD/2013_5_15_12.48.46
 This operation will replace all current data with the specified backup set.
 To continue, type "1" for yes or "0" for no.
 1

Command is running. Monitor live status and results in /opt/ibm/director/log/smrestore.log
 The Director Server is currently active. Please stop the server before running this command.
 root@ISDserver:/root# smstop
 Shutting down IBM Director...
 root@ISDserver:/root# smstop
 Shutting down IBM Director...
 root@ISDserver:/root# smrestore -sourceDir /sauvegardeISD/2013_5_15_12.48.46
 This operation will replace all current data with the specified backup set.
 To continue, type "1" for yes or "0" for no.
 1
 Command is running. Monitor live status and results in /opt/ibm/director/log/smrestore.log
 ALR1325I: The lightweight runtime has started.
 com.ibm.net.SocketKeepAliveParameters

Command completed successfully

Look for a command

root@ISDserver#> smcli lsbundle

Add an endpoint

root@ISDserver#> smcli discover -H lpar1
root@ISDserver#> smcli lssys -sA DisplayName,AccessState|grep Locked
 lpar1: : lpar1, Locked
 lpar2: : lpar2, Locked
 lpar3: : lpar3, Locked
 VIO11: : VIO11, Locked
 VIO12: : VIO12, Locked
 VIO1: : VIO1, Locked
 VIO2: : VIO2, Locked

root@ISDserver#> smcli lssys -w 'AccessState=Locked'
 infadm5c2

root@ISDserver#> smcli accesssys -n lpar1 Type the user ID:root
 Type the password:
 DNZCLI0727I : Waiting for request access to complete on... lpar1 Result Value: DNZCLI0734I : Request access was successful on : lpar1
root@ISDserver#> smcli collectinv -p "All Inventory" -n lpar1
root@ISDserver#> smcli lsinv -l -n lpar1

Managing Users

root@ISDserver#> smcli lsuser -l user2

root@ISDserver#> smcli chuser -m unlock -u user2
 user2 is unlocked.
 chuser completed successfully.

root@ISDserver /opt/ibm/director/lwi/bin > ./lwilog.sh -addlogger -name com.ibm.sdnm.vsn.nsp -level FINEST

Debugging SLP:

root@ISDserver#> ps -aef|grep slp
 root 3997740 1 0 Apr 16 - 0:01 /opt/ibm/director/cimom/bin/tier1slp
 root 5308586 1 0 Apr 16 - 0:05 ./slp_srvreg -D

root@ISDserver#> /usr/bin/slp_query --type="*" --address=10.100.10.11
 0
 12
 62
 URL: service:management-software.IBM:platform-agent://10.100.12.11
 URL: service:management-software.IBM:platform-agent://10.100.11.21
 URL: service:management-software.IBM:platform-agent://10.100.10.11
 URL: service:wbem:http://10.100.10.11:5988
 URL: service:wbem:https://10.100.11.21:5989
 URL: service:wbem:https://10.100.10.11:5989
 URL: service:wbem:https://10.100.12.11:5989
 URL: service:wbem:http://10.100.12.11:5988
 URL: service:wbem:http://10.100.11.21:5988
 URL: service:TivoliCommonAgent://VIO2:9510
 URL: service:management-software.IBM:usma://VIO2
 URL: service:service-agent://10.100.10.11

Debugging CIM :

# cimcli -s -niq -n root/ibmsd -l 10.100.13.34:5989 -u hscroot -p XXXX ni IBMP_LPAR_CS
 root@ISDserver#> ps -aef|grep cim
 root 3997740 1 0 Apr 16 - 0:01 /opt/ibm/director/cimom/bin/tier1slp
 root 4259982 4128810 0 Apr 16 - 0:00 /opt/freeware/cimom/pegasus/bin/cimssys platform_agent
 root 4522124 4128810 0 Apr 16 - 0:00 /opt/freeware/cimom/pegasus/bin/cimssys cimsys
 root 4784346 1 0 Apr 16 - 0:36 [cimserve]
 root 5177358 1 0 Apr 16 - 0:00 /opt/freeware/cimom/pegasus/bin/CIM_diagd
 root 5374142 1 0 Apr 16 - 0:07 /opt/ibm/icc/cimom/bin/dirsnmpd
 root 6226114 1 0 Apr 16 - 0:02 /usr/bin/cimlistener

Restart AGENT on VIO :

as padmin :

stopsvc DIRECTOR_agent
 startsvc DIRECTOR_agent
Share Button
IBM Systems Director cheatsheet

Laisser un commentaire