How do I search the NetDevice database?
The NetDevice database may be searched bu using the hashpmfetch utility in the mil:/opt/net/devices/directory. For example: /opt/net/devices$ hashpmfetch -h usage: hashpmfetch [ -h ] [ -d delim ] file.pm … -h – shows this usage information (mnemonic: ‘h’elp) To search for IP addresses of ATM switches, you might do this: /opt/net/devices$ hashpmfetch -k ip A*.pm Aag.oobmanagement.ip = 128.104.31.82 Aanimal.sub-switch.1.oobmanagement.ip = 128.104.31.34 Aanimal.sub-switch.2.oobmanagement.ip = 128.104.31.35 … To search for descriptions that mention DoIT, you might do this: /opt/net/devices$ hashpmfetch -p desc *.pm |grep DoIT Ab380.slots.A.ports.2.description = DoIT LANE Router Ewarf.slots.2.ports.2.interfaces.140.1.description = DoIT 6th Floor Rmacc.slots.E0.ports.0.interfaces.7.0.description = DoIT Supercomputer Rmacc.slots.E0.ports.2.interfaces.88.0.description = DoIT SERVICES Rmacc.slots.E1.ports.5.interfaces.58.1.description = DoIT Servers Rmacc.slots.E9.ports.0.interfaces.30.desc