next up previous contents
Next: Logical Ports. Up: Autodiscovery Previous: Physical Modules.

Physical Ports.

The Fore-Switch-MIB implements a hwPortTable containing the information necessary for the discovery of configured physical ports. This table contains two different entries for the port number: one for the "local" port number, i.e. the number of the port within its network module, and the other one for the "global" port number, i.e. the number of the port within the ATM switch. Although the physPort object uses the global number for uniqueness, the local number is used by some traps, so a mapping between both numberings is performed by this rule through the predicate pPortGlobal/5. This autodiscovery rule assigns a dummy logPort object with index 1 to each discovered physical port.
% hwPortModule is local module number
autodiscovery_mapping(
N,
[[hwPortModel, Board, Mod, P] = PT,
[hwPortIfIndex, Board, Mod, P] = I,
[hwPortGlobalIndex, Board, Mod, P] = GI],
MappedObjects
) :-
Board = 4, % not a dummy physPort for CPU
s2enum(hwPortModel, Ptype, PT),
% case of asx1000: make sure N refers to its assigned Board only
physBoard(N, Board, _BType),
concat_atom(['Board', Board, '/', Mod], M),
MappedObjects =
[physPort(N, M, GI, Ptype), % P is local port number
logPort(N, M, GI, 1),
userPoll(mapPortNumber(N, M, P, GI, I))], !
;
MappedObjects = []
.

next up previous contents
Next: Logical Ports. Up: Autodiscovery Previous: Physical Modules.
Copyright Munich Network Management Team