Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to send ip routing table events to ssh session in Comware 7.

 
Andyo
Occasional Advisor

Unable to send ip routing table events to ssh session in Comware 7.

Hello everybody!

As I read in the manual, the following steps must enable ip routing table events (such as insertion of perfix or deletion prefix) while ssh'ing in the Comware 7 device:

<device> terminal debugging

<device> terminal logging

<device> terminal monitor

<device> debugging ip address event

 

then to verify:

 

[device] display debugging
 IP address event debugging switch is on
[device ]display info-center
Information Center: Enabled
Console: Enabled
Monitor: Enabled
Log host: Enabled
Log buffer: Enabled
    Max buffer size 1024, current buffer size 512
    Current messages 169, dropped messages 0, overwritten messages 0
Log file: Enabled
Security log file: Disabled
Information timestamp format:
    Log host: Date
    Other output destination: Date

 

But when I manipulate by the routing table (by remotely inserting/deleting routes) I cannot see any messages in the session. Do anybody help me with this?

Thank U in advance

3 REPLIES
sdide
Respected Contributor

Re: Unable to send ip routing table events to ssh session in Comware 7.

Hi,

 

Several things here.

1:

If its comware 7, the command "terminal logging" needs more options (at least it does on my 5900's)

e.g.

> terminal logging level 7

 

2:

If you want to debug route changes, you need

> debugging route-<something-relevant> [process/nib]

not

> debugging ip address event

 

Here is how that looks on a 5900.

HP5900>terminal monitor

HP5900>terminal logging level 7

HP5900>debugging route-static nib

 

now, if - from another session, ssh or console - I do (don't cut yourself off here :)) :

HP5900] ip route-static 1.1.1.1 32 10.1.1.1

the first session responds:

 

HP5900>*Jan 7 02:34:23:389 2011 HP5900 USR/7/DEBUG:
Add static route 1.1.1.1/32
*Jan 7 02:34:23:390 2011 HP5900 NIB/7/DEBUG: USR add NIB 0041/0/0/0/0/10.1.1.1, id 11000001 seq 7, errno 0

*Jan 7 02:34:23:440 2011 HP5900 NIB/7/DEBUG:
USR sync NIB 11000001 to RIB, msgtype ADD, bytes 104

*Jan 7 02:34:23:491 2011 HP5900 NIB/7/DEBUG:
USR modify NIB 11000001 with nexthop 10.1.1.1:

 

blablabla.. lots of info revealing my routing table ...

 

*Jan 7 02:34:23:592 2011 HP5900 NIB/7/DEBUG:
USR re-rely route under NIB 11000001

 

and when i remove it again ( HP5900] undo ip ip route-static 1.1.1.1 32)

 

the session debugging responds:

*Jan 7 02:36:48:251 2011 HP5900 NIB/7/DEBUG: USR delete NIB 11000001 with seq 7

*Jan 7 02:36:48:301 2011 HP5900 NIB/7/DEBUG:
USR sync NIB 11000001 to RIB, msgtype DEL, bytes 36

 

So - it should work.

 

Regards

Søren Dideriksen, Network Administrator
Region Midtjylland
Andyo
Occasional Advisor

Re: Unable to send ip routing table events to ssh session in Comware 7.

Thank U man for your input.

U right, "terminal logging" I was written by memory :)

But I found "debugging rib unr" was doing stuff I needed. I'll verify your solution tomorrow.

Thank again for your input!

Andyo
Occasional Advisor

Re: Unable to send ip routing table events to ssh session in Comware 7.

Hello man!

these debug directives:

<HP>debugging route-?
  route-direct
  route-policy
  route-static

only show events regarding directly connected or static routes as well as routes manipulated by route-policies.

U will not see any insertion/deletion route into/from routing table if this route is dinamically learned route and none manipulation by route-policy is done on it.

So really correct directive if someone want to observe events with regard to routing table is "debug rib <whatever-stuff-U-need>

Anyway thank U