ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

43
www.huawei.com HUAWEI Confidential Security Level: Internal M2000 Management and Maintenance Operations

Transcript of ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

Page 1: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

www.huawei.com

HUAWEI Confidential

Security Level: Internal

M2000 Management and Maintenance Operations

Page 2: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 2HUAWEI Confidential

This document mainly describes the common M2000

maintenance operations, including the M2000

operation commands and the Sybase operation

commands.

Page 3: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 3HUAWEI Confidential

This helps you to familiarize yourself with:

M2000 common operations and common

logs

M2000 common maintenance commands

Page 4: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 4HUAWEI Confidential

References

M2000 Administrator Guide

M2000 Software Installation Guide

OMCAtoStar User Manual

Page 5: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 5HUAWEI Confidential

Chapter 1 Solaris Maintenance CommandsChapter 1 Solaris Maintenance Commands

Chapter 2 Sybase Maintenance Commands

Chapter 3 M2000 Maintenance Commands

Chapter 4 M2000 Logs

Chapter 5 M2000 Log Collection Tool and

Health Check Tool

Page 6: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 6HUAWEI Confidential

Solaris Maintenance Commands

Command Description

ifconfig –a Display the IP address

ping Test if a IP or host is reachable

netstat –an Display the ports status of server

netstat –rn Display the routes of server

df -k Display the amount of disk space

du –k Display the space occupied by files and directory

prstat Display the CPU and memory occupied by process

Page 7: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 7HUAWEI Confidential

ifconfig

Function

Configure or display the network interface parameters. We mainly use it to

display the IP address.

Usage : ifconfig -aroot@osssvr # ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232

index 1

inet 127.0.0.1 netmask ff000000

bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

inet 10.10.10.100 netmask ffffff00 broadcast 10.161.226.255

ether 0:14:4f:90:45:8e

PORT NAME:1 ) Port name vary with server model2 ) IP addresses assigned to one port will be displayed as follows: bge0, bge0:1, bge0:2, ……

Port status, “RUNNING” is normal

Network mask, in hexadecimal, eg: ffffff00 here means 255.255.255.0

Port MAC addr

Port IP addr

Page 8: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 8HUAWEI Confidential

ping

Function

Test if the IP address is reachable

Usage : ping [–s] <ip_addr>root@m2k-server5 # ping -s 10.10.5.207

PING 10.10.5.207: 56 data bytes

64 bytes from 10.10.5.207: icmp_seq=0. time=3.78 ms

64 bytes from 10.10.5.207: icmp_seq=1. time=1.97 ms

64 bytes from 10.10.5.207: icmp_seq=2. time=1.89 ms

^C

----10.10.5.207PING Statistics----

6 packets transmitted, 6 packets received, 0% packet loss

round-trip (ms) min/avg/max/stddev = 1.89/3.53/4.93/1.3

The ping won’t stop untill you press “ctrl+c”

Page 9: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 9HUAWEI Confidential

Netstat -an

Function

Display the port status of server Usage : netstat –an

Normal netstat –an output a lot information, we can use grep to

filter specified port number or IP. Eg, normal NE use port 6001 to

report alarms to M2000, display the status of port 6001 with command:root@osssvr # netstat -an|grep 6001

10.10.10.100.6001 *.* 0 0 49152 0 LISTEN

10.10.10.100.37113 10.10.5.207.6001 5840 0 49640 0 ESTABLISHED

Local port

Local IP

Remote port

(NE port)

Remote IP(NE IP

address)

Port StatusESTABLISHED is

normal

Page 10: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 10HUAWEI Confidential

Netstat -rn

Function

Display the routes of server Usage: netstat –rn

root@osssvr # netstat -rn

Routing Table: IPv4

Destination Gateway Flags Ref Use Interface

-------------------- -------------------- ----- ----- ------ ---------

10.161.224.145 10.161.226.1 UGH 1 0

10.161.226.0 10.161.226.100 U 1 165 eri0

224.0.0.0 10.161.226.100 U 1 0 eri0

default 10.161.226.1 UG 1 1502

127.0.0.1 127.0.0.1 UH 2 3929 lo0

Page 11: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 11HUAWEI Confidential

df -k

Function

Display the disk space Usage: df -k

root@osssvr # df -k

Filesystem kbytes used avail capacity Mounted on

/dev/md/dsk/d100 17146994 14394586 2580939 85% /

/dev/md/dsk/d112 13574307 10957280 2481284 82% /export/home

Total space (KB)

Occupied space(KB)

Available space (KB)

Directory/ is root directory on local disk/export/home is diskarray in general

Usage Ratio

Page 12: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 12HUAWEI Confidential

du -k

Function

Display the space occupied by directory and files Usage: du –k <path>

Display spaces occupied by files and each subdirectory of

<path>, the unit is KB. This command is used to find out the

largest directories when disk usage ratio is too highroot@m2k-server5 # du -k /training

24 /training/files

204802 /training

The above output shows /training occupies total 204820KB

space, its subdirectory /training/files occupies 24KB space. We

can conclude that the files in /training occupy most of the

204802KB space which /training occupy.

Page 13: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 13HUAWEI Confidential

prstat

Function

Display the CPU and memory occupied by processes Usage: prstat [interval [count]]

interval: the sampling interval in seconds

count: number of times that the reports are repeated

By default, prstat reports statistics every 5 seconds until “ctrl+c” press.root@m2k-server5 # prstat

PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP

608 dbuser 1586M 1563M sleep 59 0 4:46:37 4.3% dataserver/39

1953 root 219M 127M sleep 59 0 0:19:33 0.5% imapsvcd/120

1974 root 64M 21M sleep 59 0 0:10:41 0.5% imapsvcd/38

961 root 43M 6536K sleep 59 0 0:03:37 0.3% ResourceMonitor/4

Total: 120 processes, 2323 lwps, load averages: 1.43, 1.62, 1.66PID of porcessUse “ps –ef|grep pid” to find out the porcess name

Total virtual memory size of the process

The percentage of recent CPU time used by the process

Page 14: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 14HUAWEI Confidential

Chapter 1 Solaris Maintenance Commands

Chapter 2 Sybase Maintenance CommandsChapter 2 Sybase Maintenance Commands

Chapter 3 M2000 Maintenance Commands

Chapter 4 M2000 Logs

Chapter 5 M2000 Log Collection Tool and

Health Check Tool

Page 15: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 15HUAWEI Confidential

Sybase Maintenance Commands

Commands Description

showserver Display the status of Sybase database server

isql Start SQL script execution tool

select @@version Display the Sybase version

sp_helpdb Display the status of Sybase database

Page 16: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 16HUAWEI Confidential

showserver

Function

Display the status of Sybase database server Usage: showserver -bash-3.00$ showserver

UID PID PPID C STIME TTY TIME CMD

dbuser 608 606 26 19:29:04 ? 298:25

/opt/sybase/ASE-15_0/bin/dataserver -sSYB -d/export/home/sybdev/master.dat

-e/o

dbuser 919 917 0 19:31:04 ? 0:00

/opt/sybase/ASE-15_0/bin/backupserver -SSYB_back

-e/opt/sybase/ASE-15_0/install

1 ) Must login as dbuser to excute Sybase command, DO NOT use root user

ever.

The prompt of root is like root@hostname #, such as root@osssvr #

The prompt of dbuser is like –bash-3.00$

2 ) Check if both of dataserver and backupserver are running

Page 17: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 17HUAWEI Confidential

isql

Function

Start SQL script execution tool

Usage: isql –S<DB server name> -U<username> -P<password> The default DB server name of M2000 is SYB

Super user of Sybase is sa , default password is emsems

For example-bash-3.00$ isql -SSYB -Usa -Pemsems

1>

2>

3>

If success, prompt “1>” is displayed. Input SQL script after prompt.

go Execute command

quit or exit quit isql

Page 18: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 18HUAWEI Confidential

Display Sybase Version

Execute select @@version in isql

-bash-3.00$ isql -SSYB -Usa -Pemsems

1> select @@version

2> go

--------------------------------------------------------------------------

Adaptive Server Enterprise/15.0.2/EBF 15162 ESD#1 ONE-OFF/P/Sun_svr4/OS

5.8/ase

1502/2493/64-bit/FBO/Mon Oct 15 16:15:21 2007

(1 row affected)

Sybase Version

Sybase Patch

Page 19: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 19HUAWEI Confidential

sp_helpdb

Function

Display the status of Sybase database Usage: sp_helpdb [dbname]

Execute in isql

Without parameter dbname, display the status of all database: check if the status is

“offline”

With dbname, display the specified database space, for example:

Page 20: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 20HUAWEI Confidential

Start Sybase

Single System

Login as dbuser, execute the following commands:

-bash-3.00$ cd /opt/sybase/ASE-15_0/install

-bash-3.00$ ./startserver -f ./RUN_SYB

-bash-3.00$ nohup ./startserver -f ./RUN_SYB_back >/dev/null

HA System

Login as root, execute the following command on active node or

standby node:

root@osssvr-1 # scswitch -e -j sybase_rs

Page 21: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 21HUAWEI Confidential

Stop Sybase Single System

Login as dbuser, execute the following commands:

-bash-3.00$ isql –SSYB -Usa –P[password of sa]

1> shutdown SYB_BACKUP

2> go

1> shutdown

2> go

HA System

Login as root, execute the following command on active node or

standby node:

root@osssvr-1 # scswitch -n -j sybase_rs

Page 22: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 22HUAWEI Confidential

Chapter 1 Solaris Maintenance Commands

Chapter 2 Sybase Maintenance Commands

Chapter 3 M2000 Maintenance CommandsChapter 3 M2000 Maintenance Commands

Chapter 4 M2000 Logs

Chapter 5 M2000 Log Collection Tool and

Health Check Tool

Page 23: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 23HUAWEI Confidential

M2000 Maintenance Commands

Commands Description

start_svc Starting the entire M2000 system, including the system process and the service process (This

command is not applicable to the HA system.)

stop_svc Stopping the service process of the M2000 network management system (This command is

not applicable to the HA system.)

kill_svc Forcibly stopping the process of the M2000 network management system

svc_adm Managing M2000 services, such as starting, stopping, and querying services

displayVersion Display version of M2000 and installed mediation

scswitch Managing the system resource of HA system, such as starting/stop M2000, start/stop Sybase,

query M2000/Sybase

start_daem Starting the M2000 system daemon process (This command is not applicable to the HA

system.)

stop_daem Starting the M2000 system daemon process (This command is not applicable to the HA

system.)

daem_ps Display the status of M2000 system daemon processes

Page 24: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 24HUAWEI Confidential

svc_profile.sh

Function of the Scripts

You need to run the svc_profile.sh script before running the M2000 commands. This script is used

to set users’ working environment such as searching paths through commands and dynamically

searching paths through the database.

Operation Methods

Manual operation and automatic operation

Manual Operation

Taking the default M2000 installation directory /opt/OMC as an example, the method of manually

running the script is as follows:

-bash-3.00$ . /opt/OMC/svc_profile.sh

(There is a space between . and /) Automatic Operation

After the system is correctly installed, this script is added to the .profile file of user omcuser and

user root. If you log in to the server as user omcuser or user root, the system automatically runs the

script.

Page 25: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 25HUAWEI Confidential

Start M2000

Single System

Login as root, execute the following commands:

root@osssvr-1 # start_svc

HA System

Login as root, execute the following command on active node or

standby node:

root@osssvr-1 # scswitch -e -j ossapp_rs

Page 26: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 26HUAWEI Confidential

Stop M2000

Single System

Login as root, execute the following commands: Stop service process of M2000 system:

root@osssvr-1 # stop_svc

Stop daemon process of M2000 system:root@osssvr-1 # stop_daem

Stop the TAO processroot@osssvr-1 # stop_tao_services

HA System

Login as root to active server or standby server, execute the

following command on active node or standby node:

root@osssvr-1 # scswitch -n -j ossapp_rs

Page 27: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 27HUAWEI Confidential

Display Status of M2000 Services

Usage: svc_adm –cmd status

Notice:

Applicable to both of single and HA system root@osssvr # svc_adm -cmd statusHost: 10.10.10.1

Service Agent: 3rdTool_agent [1 service(s)] pid: 11597 3rdToolService [running ]

Service Agent: pm_agent [1 service(s)] pid: 11685 PMService [running ]

.

.

.

[All Services: 45 ] [Running: 45 ] [No License: 0 ] [Not Running: 0 ]

Process name

Service nameOne process may include several

services

Service status

Statistics

Page 28: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 28HUAWEI Confidential

Managing the M2000 Services

Stop specified service: svc_adm –cmd stopsvc [ServiceName]

root@osssvr # svc_adm -cmd stopsvc PMService

This command will stop the service specified by parameter ServiceName, and the services

that depend on it.

Start specified service: svc_adm –cmd startsvc [ServiceName]

root@osssvr # svc_adm -cmd stopsvc PMService

This command will start the service specified by parameter ServiceName, and the services

that it depend on.

Start all services: svc_adm –cmd start If you use svc_adm to stopped a service, it’s suggested to use this command to start the stopped

services.

Page 29: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 29HUAWEI Confidential

Display Version of M2000 and Mediation Usage: displayVersionroot@osssvr-1 # displayVersion

------------------------OMC Version--------------------------

Product Name: iManagerM2000

Version: iManagerM2000V200R006ENGC01B060

Release Date: 11/24/07

-----------------Installed Mediation Version-----------------

<DBS3800>

Match Version : iManagerM2000_DBS3800_MATCH_ENG_V200R005C01B035

NE Version is : DBS3800V100R008ENGC01B071

<RNC>

Match Version : iManagerM2000_RNC_MATCH_ENG_V200R005C01B206

NE Version is : BSC6810V200R009ENGC01B072

root@osssvr-1 #

Page 30: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 30HUAWEI Confidential

Sun Cluster3.0 Commands for Dual Server

Command Description

scstat Querying the status of the cluster

scswitch -z -g oss_rg -h osssvr-2 Switch to osssvr-2 (starting the oss_rg resource group on the osssvr-2

host).

scswitch -e -j sybase_rs Activating the sybase_rs resource and activating the cluster to monitor

the Sybase.

scswitch -n -j sybase_rs Deactivating the sybase_rs resource and stopping the cluster from

monitoring the Sybase.

scswitch -e -j ossapp_rs Activating the ossapp_rs resource and activating the cluster to monitor

the M2000.

scswitch -n -j sybase_rs Deactivating the ossapp_rs resource and activating the cluster to

monitor the M2000.

Page 31: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 31HUAWEI Confidential

Chapter 1 Solaris Maintenance Commands

Chapter 2 Sybase Maintenance Commands

Chapter 3 M2000 Maintenance Commands

Chapter 4 M2000 LogsChapter 4 M2000 Logs

Chapter 5 M2000 Log Collection Tool and

Health Check Tool

Page 32: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 32HUAWEI Confidential

Collecting Information about the M2000 System

Solaris Log

Sybase Log

M2000 Server Log

M2000 Client Log

Core File

Page 33: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 33HUAWEI Confidential

Solaris Log Application Scenarios

Use the message log to familiarize yourself with the starting and stopping process of the system.

The hardware or other devices incur faults, such as the disk light is abnormal or the CPU and the

memory cannot be found.

Brief Introduction of the Log

The log exists under the var/adm/messages directory.

The log records the information about the Sybase starting and stopping process, the operating status

of the hardware and software, and the main error information.

Under the /var/adm/ directory, there are messages, messages.0, messages.1, messages.2 , and

messages.3. Where messages saves the latest logs. Other message files are cyclically recovered.

# ls -al /var/adm/messages*

-rw-r--r-- 1 root root 311912 Dec 27 10:02 messages

-rw-r--r-- 1 root root 7840 Nov 19 15:34 messages.0

-rw-r--r-- 1 root root 101162 Nov 12 16:26 messages.1

-rw-r--r-- 1 root root 8882 Nov 5 16:07 messages.2

-rw-r--r-- 1 root root 170931 Oct 29 10:03 messages.3

Obtaining and Checking the Files

You can download the message log to the local computer through FTP and open it in .txt format.

You can check the files through the unix files such as more and cat.

Page 34: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 34HUAWEI Confidential

Sybase Log

Application Scenarios

Use this log to familiarize yourself with the process of starting and stopping the Sybase.

The Sybase incurs faults, such as the Sybase cannot be started or errors occur during the

operation.

Brief Introduction to the Log

Sybase12 version: The log exists under the /opt/sybase/ASE-12_0/install/ directory.

Sybase15 version: The log exists under the /opt/sybase/ASE-15_0/install/ directory.

The SYB.log and SYB_back.log files record the process of starting and stopping the Sybase

and the main error information.

Obtaining and Checking Files

You can download the log to the local computer through FTP and open it in .txt format.

You can check the files through the unix files such as more and cat.

Page 35: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 35HUAWEI Confidential

M2000 Server Log ( trace) Application Scenarios

Use this log to familiarize yourself with the operating status of the M2000 services and the

information exchange between the services. This log is required when the M2000 is faulty.

M2000 V2R3/V2R5 M2000 V2R6

Current Log /export/home/omc/var/logs

Log file

name

iMAP.root.trace Each log file corresponds to one process , such as:

iMAP.cmserver_agent.trace

iMAP.pm_agent.trace

iMAP.med_agent.trace

……

History

trace

/export/home/omc/var/logs/tracebak/

If log file is larger than 50 MB, the system automatically compresses it and transfers it to the

history trace directory

The file name contains detailed date and time, which refers to the time of the last log in the trace

file, such as:

iMAP.monitor_agent.trace.20080204122937.tar.gz

Page 36: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 36HUAWEI Confidential

M2000 Client Log

Application Scenarios Use this log to familiarize yourself with the operating status of the M2000 client and the operation

records on the client.

The log is required when faults occur to the M2000 (especially when some problems occur only on

the specified client).

Brief Introduction to the Log The log exists under the .\client\tracefile\ directory.

For example, D:\iManagerM2000V200R005C01B024\client\tracefile The file name contains the detailed time, which refers to the recorded time of the first log.

For example, DebugTrace_2007-08-27_16#21#20#991.txt

Obtaining and Checking Files Assume that the M2000 is installed in the D:\iManagerM2000Client directory, then the trace

information about the foreground is saved in the D:\iManagerM2000Client\client\tracefile

directory.

Page 37: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 37HUAWEI Confidential

Core Files

Application Scenarios

Some services are abnormally killed and the core files are generated.

The alarm console is abnormally terminated or alarms of restarting occur.

Brief Introduction to the Log

The log exists under the /export/home/omc/var/logs/ directory.

The logs comprise the core files of all the M2000 services and the core files generated by the

system

The file name contains the detailed time, which refers to the recorded time of the first log. For example, core.imapsvcd.0.11539.1196415653

Obtaining and Checking Files

Collect related information about the core files.

# pmap core.imapsvcd.0.22531.1086 > core.imapsvcd.0.22531.1086.mapinfo

# pstack core.imapsvcd.0.22531.1086 | c++filt > core.imapsvcd.0.22531.1086.stack

# pflags core.imapsvcd.0.22531.1086 > core.imapsvcd.0.22531.1086.pflags

# gtar cvfz core.stack.tar.gz core.xxx.xxx.xxx.stack

Page 38: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 38HUAWEI Confidential

Chapter 1 Solaris Maintenance Commands

Chapter 2 Sybase Maintenance Commands

Chapter 3 M2000 Maintenance Commands

Chapter 4 M2000 Logs

Chapter 5 M2000 Log Collection Tool and Chapter 5 M2000 Log Collection Tool and

Health Check ToolHealth Check Tool

Page 39: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 39HUAWEI Confidential

M2000 Log Collection Tool and Health Check Tool

Tool Default

Installation

Sun

Explorer

Information

Basic

Solaris

Information

Basic

Sybase

Information

Basic M2000

Information

M2000

Trace

Sun Explore Yes Yes Yes No No No

Client

information

collecting tool

Yes No Yes Yes Yes Yes

OMCAutoStar No Optional Yes Yes Yes No

Page 40: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 40HUAWEI Confidential

Sun Explorer Application Scenarios

The Sun Explorer is provided to troubleshoot the faults of the Sun server. The faults comprise

hardware faults and system faults.

Brief Introduction to the Log

Collect the configuration information and operating status of the server hardware and the

Solaris.

The scripts exist under the /opt/SUNWexplo/bin/explorer directory.

By default, the collected results are saved under the /opt/SUNWexplo/output directory.

For example, explorer.837cdded.m2k-server5-2008.01.03.08.31.tar.gz

837cdded refers to the host ID of the server.

m2k-ser5 refers to the host name of the server.

2008.01.03.08.31 refers to the time that the results are generated.

Obtaining and checking files

Run the collectinfo script to collect the information about the Sun Explorer.

Manually run the explorer script to separately collect the information about the Sun Explorer.

Page 41: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 41HUAWEI Confidential

M2000 Client Log Information Collecting Tool

Opening the Interface Program > iManager M2000 client > M2000 log information collecting tool

Configuring Related Information Enter the IP address of the M2000 server. Enter the port number. Enter the FTP user name and the password of the destination server.

Obtaining and Checking Files By default, the files are saved in the M2000 client installation directory

D:\R200R006B060CHS\client\diagnosis\collected files.

Page 42: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 42HUAWEI Confidential

Application Scenarios

It mplements the function of immediate and periodic health check. In addtion, it

automatically analzyes the collected package about the health check information.

On the basis that the Sun Explorer automatically runs, it can collect other log

information about the operating system, Sybase, and applications related to the

M2000. This offers the firsthand information for locating problems when the system

incurs faults.

Detect and clear some useless M2000 data.

How to get OMCAutoStar tool?

Download from support.huawei.com:

Documentation Core Network Product Line Wireless-OSS iManager M2000-II

Technical Guide Quality Check Guide

How to use OMCAutoStar tool? Follow the user manual

OMCAutoStar

Page 43: ENE040905010013 M2000V2 Management and Maintenance Operations-20080701-B-1[1].2.Ppt

HUAWEI TECHNoLOGIES Co., Ltd. Page 43HUAWEI Confidential

Precautions for the M2000 Engineers Record the logs.

Use the log function of the CRT to automatically record all the operations to files.

Perform remote operations rather than local operations. The delivered M2000 commercial servers are without the KVMs.

Use character terminal rather than graphic terminal. Do not edit a file by using the graphic terminal software.

Make the serial port cable ready. Perform serial port operations rather than network port operations.

When performing operations that cannot be rolled back and consume a long time

such as upgrading the M2000 version, perform operations through the serial ports.

This avoids problems because of the sudden power-off of the local PC or the LAN

Switch. The serial port operations refer to the operations performed through the

maintenance serial port of the host or the maintenance network ports. The network port here refers to the network port of the operating system.