SharedIT | 묻고 답하기(AMP)

시스코 스위치(cisco switch) 프로세스 점검 명령어 관련 문의드립니다

안녕하세요!


시스코 스위치 장비에 대해 궁금한점이 생겨서 여기에 질문드립니다.

스위치 장비에서 돌아가고 있는 주요 프로세스 상태를 확인하는 명령어를 찾고 있는데요, 

스위치 장비 업체에 문의해보니 diagnostic 이라는 명령어를 사용하여 프로세스 상태를 확인할 수 있다는 답변을 받았습니다.

( 명령어 : diagnostic start/monitor, show diagnostic)


그런데 diagnostic 이라는 명령어를 실행하려고 해도 유효하지 않은 명령어로 뜨면서 실행이 안 되네요.

따로 tool 을 설치해야 하는건지, 아니면 해당 스위치의 모델/버전이 안맞아서 그런건지.. 알 수가 없네요.

스위치 모델 및 버전은 다음과 같습니다.(2 종류 입니다)

 - Cisco IOS Software, WS-C2960X-24TS-I, Version 15.2(4)E8

 - Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE(fc1)


질문1. diagnostic 관련 명령어를 사용하기 위한 조건이 있는지 문의드립니다.

질문2. 그밖에 시스코 스위치에서 프로세스의 상태를 확인하는 명령어가 있는지 문의드립니다.

Tags : 태그가 없습니다.

2개의 답변이 있습니다.

wansoo
  0 추천 | 약 3년 전

diagnostic start  명령을 실행하려면, 그에 맞는 권한이 있어야 하는 것 같아 보이네요.


다음 예제와 같이 수행 시키면 되는 걸로 보여지고요.


Examples

The following example shows how to start a suite of basic diagnostic tests for a specified location:

RP/0/0/CPU0:routeradmin
RP/0/0/CPU0:router(admin)# diagnostic start location 0/0/CPU0 test basic
   

The following example shows how to start a suite of minimal bootup tests for devices 1 through 7 at the specified location:

RP/0/0/CPU0:routeradmin
RP/0/0/CPU0:router(admin)# diagnostic start location 0/0/CPU0 test minimal devices 1-7


Diagnostic 명령 관련해서는 아래 링크 자료를 참조하면 도움이 될 것 같고요.

https://www.cisco.com/c/en/us/td/docs/routers/xr12000/software/xr12k_r4-2/interfaces/command/reference/b_interfaces_cr42xr12k_chapter_011.html#wp2762855558




process list를 확인하는 명령은 


show platform software process list

를 사용해도 될 것 같아 보이고요.



Examples

The following example displays information about running processes for Cisco ASR 1000 Series SIP slot 0:

Router# show platform software process list 0


Name Pid PPid Group Id Status Priority Size

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

init 1 0 1 S 20 1974272

ksoftirqd/0 2 1 1 S 39 0

events/0 3 1 1 S 15 0

khelper 4 1 1 S 15 0

kthread 5 1 1 S 15 0

kblockd/0 19 5 1 S 15 0

khubd 23 5 1 S 15 0

pdflush 59 5 1 S 20 0

pdflush 60 5 1 S 20 0

kswapd0 61 5 1 S 15 0

aio/0 62 5 1 S 15 0

xfslogd/0 63 5 1 S 15 0

xfsdatad/0 64 5 1 S 15 0

mtdblockd 626 1 1 S 20 0

loop0 1370 1 1 S 0 0

portmap 1404 1 1404 S 20 2076672

portmap 1406 1 1406 S 20 2076672

loop1 1440 1 1 S 0 0

udevd 2104 1 2104 S 16 1974272

jffs2_gcd_mtd1 2796 1 1 S 30 0

klogd 3093 1 3093 S 20 1728512

automount 3199 1 3199 S 20 2396160

xinetd 3214 1 3214 S 20 3026944

xinetd 3216 1 3216 S 20 3026944

pvp.sh 3540 1 3540 S 20 3678208

inotifywait 3575 3540 3575 S 20 1900544

pman.sh 3614 3540 3614 S 20 3571712

pman.sh 3714 3540 3714 S 20 3571712

btrace_rotate.s 3721 3614 3721 S 20 3133440

agetty 3822 1 3822 S 20 1720320

mcp_chvrf.sh 3823 1 3823 S 20 2990080

sntp 3824 1 3824 S 20 2625536

issu_switchover 3825 1 3825 S 20 3899392

xinetd 3827 3823 3823 S 20 3026944

cmcc 3862 3714 3862 S 20 26710016

pman.sh 3883 3540 3883 S 20 3571712

pman.sh 4014 3540 4014 S 20 3575808

hman 4020 3883 4020 R 20 19615744

imccd 4114 4014 4114 S 20 31539200

inotifywait 4196 3825 3825 S 20 1896448

pman.sh 4351 3540 4351 S 20 3575808

plogd 4492 4351 4492 S 20 22663168

inotifywait 4604 3721 4604 S 20 1900544


The table below describes the significant fields shown in the display.




아래 예와 같이, show proc memory  명령을 사용해도

실행되고 있는 process들을 확인할 수 있는 것 같고요.


Switch#show proc memory

Switch#show proc memory sorted

Switch#show proc memory detailed

Switch#show proc memory detailed process iosd



show 명령은 아래 링크 자료를 참조하면 더 많은 자료를 확인할 수 있을 것 같네요.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/fundamentals/command/cf_command_ref/show_monitor_permit_list_through_show_process_memory.html


차바라기
  0 추천 | 약 3년 전

이전 자료긴 하지만 아래 URL참고 해보세요~~저도 많이 참고를 했습니다.

https://woorilife.tistory.com/7

시스코 스위치 명령어가 거의 비슷하지 않을까 싶네요

https://suminstory.tistory.com/1051

leedh-me | 약 3년 전

정보 감사합니다~