Ocsinve...etworks(3)
πΈ NAME πΈ
okay so bestie, welcome to OCSInventory::Agent::Backend::OS::Linux::Network::Networks β it's the network-y functions module, and honestly it's giving "I do all the networking homework and nobody thanks me". π
It lives in the User Contributed Perl Documentation, section 3 of the manual, and yes the header truncated the name to Ocsinve...etworks(3) because apparently even manpage headers get cut off mid-sentence. π
β¨ DESCRIPTION β¨
Literally what it says on the tin: this module retrieves network information. That's the whole vibe. It goes out, it grabs the network deets, it comes back. No cap. π¦
π FUNCTIONS π
here's the whole squad, one by one, no skips, no "you can figure out the rest" energy β we're doing all of them. π«Ά
getSpeed
Returns the speed of the card. ποΈ
getDuplex
Returns the duplex state of the card.
getMTU
Returns the mtu of the card.
getStatus
Returns the status of the card.
getMAC
Returns the mac address. π
getSubnetAddress($address, $mask)
Returns the subnet address for IPv4.
getSubnetAddressIPv6($address, $mask)
Returns the subnet address for IPv6.
getIPNetmask($prefix)
Returns the network mask for IPv4.
getIPNetmaskV6($prefix)
Returns the network mask for IPv6.
getslaves
Returns if card has a bonding. (yes, all lowercase, that's its actual name, respect the lowercase era π)
getIPRoute
Returns the gateway defined in the ip config.
getRouteIfconfig
Returns the gateway defined in the ip config. β and yeah, the original doc literally says "int he ip config" in the other one, which is iconic in a cursed way. We're not fixing it. We're just noting it. π
isSameNetwork
Returns true if both addresses belong to the same network, for IPv4.
isSameNetworkIPv6
Returns true if both addresses belong to the same network, for IPv6.
π POD ERRORS π
not the doc dragging itself, but here we are. The original says, and I quote the vibe: "Hey! The above document had some coding errors, which are explained below" β and the error is:
Around line 979:=backwithout=over
like, the =back showed up to a party with no =over to back it up. awk. π
sign-off β¨ this little masterpiece was rendered by perl v5.32.1 on 2026-06-05, and the header/footer both kept trying to spell Ocsinve...etworks(3) at us, which β slay, honestly. go get those network deets, bestie. π¦ππ
π¦ where this page comes from
- epel 9: perl-Ocsinventory-Agent 2.10.5-2.el9 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms